diff --git a/backend/staticfiles/admin/css/autocomplete.4a81fc4242d0.css b/backend/staticfiles/admin/css/autocomplete.4a81fc4242d0.css
deleted file mode 100644
index 69c94e734..000000000
--- a/backend/staticfiles/admin/css/autocomplete.4a81fc4242d0.css
+++ /dev/null
@@ -1,275 +0,0 @@
-select.admin-autocomplete {
- width: 20em;
-}
-
-.select2-container--admin-autocomplete.select2-container {
- min-height: 30px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single,
-.select2-container--admin-autocomplete .select2-selection--multiple {
- min-height: 30px;
- padding: 0;
-}
-
-.select2-container--admin-autocomplete.select2-container--focus .select2-selection,
-.select2-container--admin-autocomplete.select2-container--open .select2-selection {
- border-color: var(--body-quiet-color);
- min-height: 30px;
-}
-
-.select2-container--admin-autocomplete.select2-container--focus .select2-selection.select2-selection--single,
-.select2-container--admin-autocomplete.select2-container--open .select2-selection.select2-selection--single {
- padding: 0;
-}
-
-.select2-container--admin-autocomplete.select2-container--focus .select2-selection.select2-selection--multiple,
-.select2-container--admin-autocomplete.select2-container--open .select2-selection.select2-selection--multiple {
- padding: 0;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single {
- background-color: var(--body-bg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__rendered {
- color: var(--body-fg);
- line-height: 30px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__placeholder {
- color: var(--body-quiet-color);
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__arrow {
- height: 26px;
- position: absolute;
- top: 1px;
- right: 1px;
- width: 20px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__arrow b {
- border-color: #888 transparent transparent transparent;
- border-style: solid;
- border-width: 5px 4px 0 4px;
- height: 0;
- left: 50%;
- margin-left: -4px;
- margin-top: -2px;
- position: absolute;
- top: 50%;
- width: 0;
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--single .select2-selection__clear {
- float: left;
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--single .select2-selection__arrow {
- left: 1px;
- right: auto;
-}
-
-.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--single {
- background-color: var(--darkened-bg);
- cursor: default;
-}
-
-.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--single .select2-selection__clear {
- display: none;
-}
-
-.select2-container--admin-autocomplete.select2-container--open .select2-selection--single .select2-selection__arrow b {
- border-color: transparent transparent #888 transparent;
- border-width: 0 4px 5px 4px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple {
- background-color: var(--body-bg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
- cursor: text;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__rendered {
- box-sizing: border-box;
- list-style: none;
- margin: 0;
- padding: 0 10px 5px 5px;
- width: 100%;
- display: flex;
- flex-wrap: wrap;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__rendered li {
- list-style: none;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__placeholder {
- color: var(--body-quiet-color);
- margin-top: 5px;
- float: left;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold;
- margin: 5px;
- position: absolute;
- right: 0;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice {
- background-color: var(--darkened-bg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
- cursor: default;
- float: left;
- margin-right: 5px;
- margin-top: 5px;
- padding: 0 5px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice__remove {
- color: var(--body-quiet-color);
- cursor: pointer;
- display: inline-block;
- font-weight: bold;
- margin-right: 2px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice__remove:hover {
- color: var(--body-fg);
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-search--inline {
- float: right;
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
- margin-left: 5px;
- margin-right: auto;
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
- margin-left: 2px;
- margin-right: auto;
-}
-
-.select2-container--admin-autocomplete.select2-container--focus .select2-selection--multiple {
- border: solid var(--body-quiet-color) 1px;
- outline: 0;
-}
-
-.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--multiple {
- background-color: var(--darkened-bg);
- cursor: default;
-}
-
-.select2-container--admin-autocomplete.select2-container--disabled .select2-selection__choice__remove {
- display: none;
-}
-
-.select2-container--admin-autocomplete.select2-container--open.select2-container--above .select2-selection--single, .select2-container--admin-autocomplete.select2-container--open.select2-container--above .select2-selection--multiple {
- border-top-left-radius: 0;
- border-top-right-radius: 0;
-}
-
-.select2-container--admin-autocomplete.select2-container--open.select2-container--below .select2-selection--single, .select2-container--admin-autocomplete.select2-container--open.select2-container--below .select2-selection--multiple {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-}
-
-.select2-container--admin-autocomplete .select2-search--dropdown {
- background: var(--darkened-bg);
-}
-
-.select2-container--admin-autocomplete .select2-search--dropdown .select2-search__field {
- background: var(--body-bg);
- color: var(--body-fg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
-}
-
-.select2-container--admin-autocomplete .select2-search--inline .select2-search__field {
- background: transparent;
- color: var(--body-fg);
- border: none;
- outline: 0;
- box-shadow: none;
- -webkit-appearance: textfield;
-}
-
-.select2-container--admin-autocomplete .select2-results > .select2-results__options {
- max-height: 200px;
- overflow-y: auto;
- color: var(--body-fg);
- background: var(--body-bg);
-}
-
-.select2-container--admin-autocomplete .select2-results__option[role=group] {
- padding: 0;
-}
-
-.select2-container--admin-autocomplete .select2-results__option[aria-disabled=true] {
- color: var(--body-quiet-color);
-}
-
-.select2-container--admin-autocomplete .select2-results__option[aria-selected=true] {
- background-color: var(--selected-bg);
- color: var(--body-fg);
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option {
- padding-left: 1em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__group {
- padding-left: 0;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -1em;
- padding-left: 2em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -2em;
- padding-left: 3em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -3em;
- padding-left: 4em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -4em;
- padding-left: 5em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -5em;
- padding-left: 6em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] {
- background-color: var(--primary);
- color: var(--primary-fg);
-}
-
-.select2-container--admin-autocomplete .select2-results__group {
- cursor: default;
- display: block;
- padding: 6px;
-}
diff --git a/backend/staticfiles/admin/css/autocomplete.4a81fc4242d0.css.gz b/backend/staticfiles/admin/css/autocomplete.4a81fc4242d0.css.gz
deleted file mode 100644
index 7cd12df94..000000000
Binary files a/backend/staticfiles/admin/css/autocomplete.4a81fc4242d0.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/autocomplete.css b/backend/staticfiles/admin/css/autocomplete.css
deleted file mode 100644
index 69c94e734..000000000
--- a/backend/staticfiles/admin/css/autocomplete.css
+++ /dev/null
@@ -1,275 +0,0 @@
-select.admin-autocomplete {
- width: 20em;
-}
-
-.select2-container--admin-autocomplete.select2-container {
- min-height: 30px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single,
-.select2-container--admin-autocomplete .select2-selection--multiple {
- min-height: 30px;
- padding: 0;
-}
-
-.select2-container--admin-autocomplete.select2-container--focus .select2-selection,
-.select2-container--admin-autocomplete.select2-container--open .select2-selection {
- border-color: var(--body-quiet-color);
- min-height: 30px;
-}
-
-.select2-container--admin-autocomplete.select2-container--focus .select2-selection.select2-selection--single,
-.select2-container--admin-autocomplete.select2-container--open .select2-selection.select2-selection--single {
- padding: 0;
-}
-
-.select2-container--admin-autocomplete.select2-container--focus .select2-selection.select2-selection--multiple,
-.select2-container--admin-autocomplete.select2-container--open .select2-selection.select2-selection--multiple {
- padding: 0;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single {
- background-color: var(--body-bg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__rendered {
- color: var(--body-fg);
- line-height: 30px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__placeholder {
- color: var(--body-quiet-color);
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__arrow {
- height: 26px;
- position: absolute;
- top: 1px;
- right: 1px;
- width: 20px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--single .select2-selection__arrow b {
- border-color: #888 transparent transparent transparent;
- border-style: solid;
- border-width: 5px 4px 0 4px;
- height: 0;
- left: 50%;
- margin-left: -4px;
- margin-top: -2px;
- position: absolute;
- top: 50%;
- width: 0;
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--single .select2-selection__clear {
- float: left;
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--single .select2-selection__arrow {
- left: 1px;
- right: auto;
-}
-
-.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--single {
- background-color: var(--darkened-bg);
- cursor: default;
-}
-
-.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--single .select2-selection__clear {
- display: none;
-}
-
-.select2-container--admin-autocomplete.select2-container--open .select2-selection--single .select2-selection__arrow b {
- border-color: transparent transparent #888 transparent;
- border-width: 0 4px 5px 4px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple {
- background-color: var(--body-bg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
- cursor: text;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__rendered {
- box-sizing: border-box;
- list-style: none;
- margin: 0;
- padding: 0 10px 5px 5px;
- width: 100%;
- display: flex;
- flex-wrap: wrap;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__rendered li {
- list-style: none;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__placeholder {
- color: var(--body-quiet-color);
- margin-top: 5px;
- float: left;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold;
- margin: 5px;
- position: absolute;
- right: 0;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice {
- background-color: var(--darkened-bg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
- cursor: default;
- float: left;
- margin-right: 5px;
- margin-top: 5px;
- padding: 0 5px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice__remove {
- color: var(--body-quiet-color);
- cursor: pointer;
- display: inline-block;
- font-weight: bold;
- margin-right: 2px;
-}
-
-.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice__remove:hover {
- color: var(--body-fg);
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-search--inline {
- float: right;
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
- margin-left: 5px;
- margin-right: auto;
-}
-
-.select2-container--admin-autocomplete[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
- margin-left: 2px;
- margin-right: auto;
-}
-
-.select2-container--admin-autocomplete.select2-container--focus .select2-selection--multiple {
- border: solid var(--body-quiet-color) 1px;
- outline: 0;
-}
-
-.select2-container--admin-autocomplete.select2-container--disabled .select2-selection--multiple {
- background-color: var(--darkened-bg);
- cursor: default;
-}
-
-.select2-container--admin-autocomplete.select2-container--disabled .select2-selection__choice__remove {
- display: none;
-}
-
-.select2-container--admin-autocomplete.select2-container--open.select2-container--above .select2-selection--single, .select2-container--admin-autocomplete.select2-container--open.select2-container--above .select2-selection--multiple {
- border-top-left-radius: 0;
- border-top-right-radius: 0;
-}
-
-.select2-container--admin-autocomplete.select2-container--open.select2-container--below .select2-selection--single, .select2-container--admin-autocomplete.select2-container--open.select2-container--below .select2-selection--multiple {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-}
-
-.select2-container--admin-autocomplete .select2-search--dropdown {
- background: var(--darkened-bg);
-}
-
-.select2-container--admin-autocomplete .select2-search--dropdown .select2-search__field {
- background: var(--body-bg);
- color: var(--body-fg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
-}
-
-.select2-container--admin-autocomplete .select2-search--inline .select2-search__field {
- background: transparent;
- color: var(--body-fg);
- border: none;
- outline: 0;
- box-shadow: none;
- -webkit-appearance: textfield;
-}
-
-.select2-container--admin-autocomplete .select2-results > .select2-results__options {
- max-height: 200px;
- overflow-y: auto;
- color: var(--body-fg);
- background: var(--body-bg);
-}
-
-.select2-container--admin-autocomplete .select2-results__option[role=group] {
- padding: 0;
-}
-
-.select2-container--admin-autocomplete .select2-results__option[aria-disabled=true] {
- color: var(--body-quiet-color);
-}
-
-.select2-container--admin-autocomplete .select2-results__option[aria-selected=true] {
- background-color: var(--selected-bg);
- color: var(--body-fg);
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option {
- padding-left: 1em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__group {
- padding-left: 0;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -1em;
- padding-left: 2em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -2em;
- padding-left: 3em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -3em;
- padding-left: 4em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -4em;
- padding-left: 5em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -5em;
- padding-left: 6em;
-}
-
-.select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] {
- background-color: var(--primary);
- color: var(--primary-fg);
-}
-
-.select2-container--admin-autocomplete .select2-results__group {
- cursor: default;
- display: block;
- padding: 6px;
-}
diff --git a/backend/staticfiles/admin/css/autocomplete.css.gz b/backend/staticfiles/admin/css/autocomplete.css.gz
deleted file mode 100644
index 7cd12df94..000000000
Binary files a/backend/staticfiles/admin/css/autocomplete.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/base.1f418065fc2c.css b/backend/staticfiles/admin/css/base.1f418065fc2c.css
deleted file mode 100644
index e7152af90..000000000
--- a/backend/staticfiles/admin/css/base.1f418065fc2c.css
+++ /dev/null
@@ -1,1052 +0,0 @@
-/*
- DJANGO Admin styles
-*/
-
-@import url("fonts.168bab448fee.css");
-
-/* VARIABLE DEFINITIONS */
-:root {
- --primary: #79aec8;
- --secondary: #417690;
- --accent: #f5dd5d;
- --primary-fg: #fff;
-
- --body-fg: #333;
- --body-bg: #fff;
- --body-quiet-color: #666;
- --body-loud-color: #000;
-
- --header-color: #ffc;
- --header-branding-color: var(--accent);
- --header-bg: var(--secondary);
- --header-link-color: var(--primary-fg);
-
- --breadcrumbs-fg: #c4dce8;
- --breadcrumbs-link-fg: var(--body-bg);
- --breadcrumbs-bg: var(--primary);
-
- --link-fg: #447e9b;
- --link-hover-color: #036;
- --link-selected-fg: #5b80b2;
-
- --hairline-color: #e8e8e8;
- --border-color: #ccc;
-
- --error-fg: #ba2121;
-
- --message-success-bg: #dfd;
- --message-warning-bg: #ffc;
- --message-error-bg: #ffefef;
-
- --darkened-bg: #f8f8f8; /* A bit darker than --body-bg */
- --selected-bg: #e4e4e4; /* E.g. selected table cells */
- --selected-row: #ffc;
-
- --button-fg: #fff;
- --button-bg: var(--primary);
- --button-hover-bg: #609ab6;
- --default-button-bg: var(--secondary);
- --default-button-hover-bg: #205067;
- --close-button-bg: #888; /* Previously #bbb, contrast 1.92 */
- --close-button-hover-bg: #747474;
- --delete-button-bg: #ba2121;
- --delete-button-hover-bg: #a41515;
-
- --object-tools-fg: var(--button-fg);
- --object-tools-bg: var(--close-button-bg);
- --object-tools-hover-bg: var(--close-button-hover-bg);
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --primary: #264b5d;
- --primary-fg: #eee;
-
- --body-fg: #eeeeee;
- --body-bg: #121212;
- --body-quiet-color: #e0e0e0;
- --body-loud-color: #ffffff;
-
- --breadcrumbs-link-fg: #e0e0e0;
- --breadcrumbs-bg: var(--primary);
-
- --link-fg: #81d4fa;
- --link-hover-color: #4ac1f7;
- --link-selected-fg: #6f94c6;
-
- --hairline-color: #272727;
- --border-color: #353535;
-
- --error-fg: #e35f5f;
- --message-success-bg: #006b1b;
- --message-warning-bg: #583305;
- --message-error-bg: #570808;
-
- --darkened-bg: #212121;
- --selected-bg: #1b1b1b;
- --selected-row: #00363a;
-
- --close-button-bg: #333333;
- --close-button-hover-bg: #666666;
- }
-}
-
-html, body {
- height: 100%;
-}
-
-body {
- margin: 0;
- padding: 0;
- font-size: 14px;
- font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
- color: var(--body-fg);
- background: var(--body-bg);
-}
-
-/* LINKS */
-
-a:link, a:visited {
- color: var(--link-fg);
- text-decoration: none;
- transition: color 0.15s, background 0.15s;
-}
-
-a:focus, a:hover {
- color: var(--link-hover-color);
-}
-
-a:focus {
- text-decoration: underline;
-}
-
-a img {
- border: none;
-}
-
-a.section:link, a.section:visited {
- color: var(--header-link-color);
- text-decoration: none;
-}
-
-a.section:focus, a.section:hover {
- text-decoration: underline;
-}
-
-/* GLOBAL DEFAULTS */
-
-p, ol, ul, dl {
- margin: .2em 0 .8em 0;
-}
-
-p {
- padding: 0;
- line-height: 140%;
-}
-
-h1,h2,h3,h4,h5 {
- font-weight: bold;
-}
-
-h1 {
- margin: 0 0 20px;
- font-weight: 300;
- font-size: 20px;
- color: var(--body-quiet-color);
-}
-
-h2 {
- font-size: 16px;
- margin: 1em 0 .5em 0;
-}
-
-h2.subhead {
- font-weight: normal;
- margin-top: 0;
-}
-
-h3 {
- font-size: 14px;
- margin: .8em 0 .3em 0;
- color: var(--body-quiet-color);
- font-weight: bold;
-}
-
-h4 {
- font-size: 12px;
- margin: 1em 0 .8em 0;
- padding-bottom: 3px;
-}
-
-h5 {
- font-size: 10px;
- margin: 1.5em 0 .5em 0;
- color: var(--body-quiet-color);
- text-transform: uppercase;
- letter-spacing: 1px;
-}
-
-ul > li {
- list-style-type: square;
- padding: 1px 0;
-}
-
-li ul {
- margin-bottom: 0;
-}
-
-li, dt, dd {
- font-size: 13px;
- line-height: 20px;
-}
-
-dt {
- font-weight: bold;
- margin-top: 4px;
-}
-
-dd {
- margin-left: 0;
-}
-
-form {
- margin: 0;
- padding: 0;
-}
-
-fieldset {
- margin: 0;
- min-width: 0;
- padding: 0;
- border: none;
- border-top: 1px solid var(--hairline-color);
-}
-
-blockquote {
- font-size: 11px;
- color: #777;
- margin-left: 2px;
- padding-left: 10px;
- border-left: 5px solid #ddd;
-}
-
-code, pre {
- font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
- color: var(--body-quiet-color);
- font-size: 12px;
- overflow-x: auto;
-}
-
-pre.literal-block {
- margin: 10px;
- background: var(--darkened-bg);
- padding: 6px 8px;
-}
-
-code strong {
- color: #930;
-}
-
-hr {
- clear: both;
- color: var(--hairline-color);
- background-color: var(--hairline-color);
- height: 1px;
- border: none;
- margin: 0;
- padding: 0;
- font-size: 1px;
- line-height: 1px;
-}
-
-/* TEXT STYLES & MODIFIERS */
-
-.small {
- font-size: 11px;
-}
-
-.mini {
- font-size: 10px;
-}
-
-.help, p.help, form p.help, div.help, form div.help, div.help li {
- font-size: 11px;
- color: var(--body-quiet-color);
-}
-
-div.help ul {
- margin-bottom: 0;
-}
-
-.help-tooltip {
- cursor: help;
-}
-
-p img, h1 img, h2 img, h3 img, h4 img, td img {
- vertical-align: middle;
-}
-
-.quiet, a.quiet:link, a.quiet:visited {
- color: var(--body-quiet-color);
- font-weight: normal;
-}
-
-.clear {
- clear: both;
-}
-
-.nowrap {
- white-space: nowrap;
-}
-
-.hidden {
- display: none;
-}
-
-/* TABLES */
-
-table {
- border-collapse: collapse;
- border-color: var(--border-color);
-}
-
-td, th {
- font-size: 13px;
- line-height: 16px;
- border-bottom: 1px solid var(--hairline-color);
- vertical-align: top;
- padding: 8px;
-}
-
-th {
- font-weight: 600;
- text-align: left;
-}
-
-thead th,
-tfoot td {
- color: var(--body-quiet-color);
- padding: 5px 10px;
- font-size: 11px;
- background: var(--body-bg);
- border: none;
- border-top: 1px solid var(--hairline-color);
- border-bottom: 1px solid var(--hairline-color);
-}
-
-tfoot td {
- border-bottom: none;
- border-top: 1px solid var(--hairline-color);
-}
-
-thead th.required {
- color: var(--body-loud-color);
-}
-
-tr.alt {
- background: var(--darkened-bg);
-}
-
-tr:nth-child(odd), .row-form-errors {
- background: var(--body-bg);
-}
-
-tr:nth-child(even),
-tr:nth-child(even) .errorlist,
-tr:nth-child(odd) + .row-form-errors,
-tr:nth-child(odd) + .row-form-errors .errorlist {
- background: var(--darkened-bg);
-}
-
-/* SORTABLE TABLES */
-
-thead th {
- padding: 5px 10px;
- line-height: normal;
- text-transform: uppercase;
- background: var(--darkened-bg);
-}
-
-thead th a:link, thead th a:visited {
- color: var(--body-quiet-color);
-}
-
-thead th.sorted {
- background: var(--selected-bg);
-}
-
-thead th.sorted .text {
- padding-right: 42px;
-}
-
-table thead th .text span {
- padding: 8px 10px;
- display: block;
-}
-
-table thead th .text a {
- display: block;
- cursor: pointer;
- padding: 8px 10px;
-}
-
-table thead th .text a:focus, table thead th .text a:hover {
- background: var(--selected-bg);
-}
-
-thead th.sorted a.sortremove {
- visibility: hidden;
-}
-
-table thead th.sorted:hover a.sortremove {
- visibility: visible;
-}
-
-table thead th.sorted .sortoptions {
- display: block;
- padding: 9px 5px 0 5px;
- float: right;
- text-align: right;
-}
-
-table thead th.sorted .sortpriority {
- font-size: .8em;
- min-width: 12px;
- text-align: center;
- vertical-align: 3px;
- margin-left: 2px;
- margin-right: 2px;
-}
-
-table thead th.sorted .sortoptions a {
- position: relative;
- width: 14px;
- height: 14px;
- display: inline-block;
- background: url("../img/sorting-icons.3a097b59f104.svg") 0 0 no-repeat;
- background-size: 14px auto;
-}
-
-table thead th.sorted .sortoptions a.sortremove {
- background-position: 0 0;
-}
-
-table thead th.sorted .sortoptions a.sortremove:after {
- content: '\\';
- position: absolute;
- top: -6px;
- left: 3px;
- font-weight: 200;
- font-size: 18px;
- color: var(--body-quiet-color);
-}
-
-table thead th.sorted .sortoptions a.sortremove:focus:after,
-table thead th.sorted .sortoptions a.sortremove:hover:after {
- color: var(--link-fg);
-}
-
-table thead th.sorted .sortoptions a.sortremove:focus,
-table thead th.sorted .sortoptions a.sortremove:hover {
- background-position: 0 -14px;
-}
-
-table thead th.sorted .sortoptions a.ascending {
- background-position: 0 -28px;
-}
-
-table thead th.sorted .sortoptions a.ascending:focus,
-table thead th.sorted .sortoptions a.ascending:hover {
- background-position: 0 -42px;
-}
-
-table thead th.sorted .sortoptions a.descending {
- top: 1px;
- background-position: 0 -56px;
-}
-
-table thead th.sorted .sortoptions a.descending:focus,
-table thead th.sorted .sortoptions a.descending:hover {
- background-position: 0 -70px;
-}
-
-/* FORM DEFAULTS */
-
-input, textarea, select, .form-row p, form .button {
- margin: 2px 0;
- padding: 2px 3px;
- vertical-align: middle;
- font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
- font-weight: normal;
- font-size: 13px;
-}
-.form-row div.help {
- padding: 2px 3px;
-}
-
-textarea {
- vertical-align: top;
-}
-
-input[type=text], input[type=password], input[type=email], input[type=url],
-input[type=number], input[type=tel], textarea, select, .vTextField {
- border: 1px solid var(--border-color);
- border-radius: 4px;
- padding: 5px 6px;
- margin-top: 0;
- color: var(--body-fg);
- background-color: var(--body-bg);
-}
-
-input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
-input[type=url]:focus, input[type=number]:focus, input[type=tel]:focus,
-textarea:focus, select:focus, .vTextField:focus {
- border-color: var(--body-quiet-color);
-}
-
-select {
- height: 30px;
-}
-
-select[multiple] {
- /* Allow HTML size attribute to override the height in the rule above. */
- height: auto;
- min-height: 150px;
-}
-
-/* FORM BUTTONS */
-
-.button, input[type=submit], input[type=button], .submit-row input, a.button {
- background: var(--button-bg);
- padding: 10px 15px;
- border: none;
- border-radius: 4px;
- color: var(--button-fg);
- cursor: pointer;
- transition: background 0.15s;
-}
-
-a.button {
- padding: 4px 5px;
-}
-
-.button:active, input[type=submit]:active, input[type=button]:active,
-.button:focus, input[type=submit]:focus, input[type=button]:focus,
-.button:hover, input[type=submit]:hover, input[type=button]:hover {
- background: var(--button-hover-bg);
-}
-
-.button[disabled], input[type=submit][disabled], input[type=button][disabled] {
- opacity: 0.4;
-}
-
-.button.default, input[type=submit].default, .submit-row input.default {
- float: right;
- border: none;
- font-weight: 400;
- background: var(--default-button-bg);
-}
-
-.button.default:active, input[type=submit].default:active,
-.button.default:focus, input[type=submit].default:focus,
-.button.default:hover, input[type=submit].default:hover {
- background: var(--default-button-hover-bg);
-}
-
-.button[disabled].default,
-input[type=submit][disabled].default,
-input[type=button][disabled].default {
- opacity: 0.4;
-}
-
-
-/* MODULES */
-
-.module {
- border: none;
- margin-bottom: 30px;
- background: var(--body-bg);
-}
-
-.module p, .module ul, .module h3, .module h4, .module dl, .module pre {
- padding-left: 10px;
- padding-right: 10px;
-}
-
-.module blockquote {
- margin-left: 12px;
-}
-
-.module ul, .module ol {
- margin-left: 1.5em;
-}
-
-.module h3 {
- margin-top: .6em;
-}
-
-.module h2, .module caption, .inline-group h2 {
- margin: 0;
- padding: 8px;
- font-weight: 400;
- font-size: 13px;
- text-align: left;
- background: var(--primary);
- color: var(--header-link-color);
-}
-
-.module caption,
-.inline-group h2 {
- font-size: 12px;
- letter-spacing: 0.5px;
- text-transform: uppercase;
-}
-
-.module table {
- border-collapse: collapse;
-}
-
-/* MESSAGES & ERRORS */
-
-ul.messagelist {
- padding: 0;
- margin: 0;
-}
-
-ul.messagelist li {
- display: block;
- font-weight: 400;
- font-size: 13px;
- padding: 10px 10px 10px 65px;
- margin: 0 0 10px 0;
- background: var(--message-success-bg) url("../img/icon-yes.d2f9f035226a.svg") 40px 12px no-repeat;
- background-size: 16px auto;
- color: var(--body-fg);
-}
-
-ul.messagelist li.warning {
- background: var(--message-warning-bg) url("../img/icon-alert.034cc7d8a67f.svg") 40px 14px no-repeat;
- background-size: 14px auto;
-}
-
-ul.messagelist li.error {
- background: var(--message-error-bg) url("../img/icon-no.439e821418cd.svg") 40px 12px no-repeat;
- background-size: 16px auto;
-}
-
-.errornote {
- font-size: 14px;
- font-weight: 700;
- display: block;
- padding: 10px 12px;
- margin: 0 0 10px 0;
- color: var(--error-fg);
- border: 1px solid var(--error-fg);
- border-radius: 4px;
- background-color: var(--body-bg);
- background-position: 5px 12px;
- overflow-wrap: break-word;
-}
-
-ul.errorlist {
- margin: 0 0 4px;
- padding: 0;
- color: var(--error-fg);
- background: var(--body-bg);
-}
-
-ul.errorlist li {
- font-size: 13px;
- display: block;
- margin-bottom: 4px;
- overflow-wrap: break-word;
-}
-
-ul.errorlist li:first-child {
- margin-top: 0;
-}
-
-ul.errorlist li a {
- color: inherit;
- text-decoration: underline;
-}
-
-td ul.errorlist {
- margin: 0;
- padding: 0;
-}
-
-td ul.errorlist li {
- margin: 0;
-}
-
-.form-row.errors {
- margin: 0;
- border: none;
- border-bottom: 1px solid var(--hairline-color);
- background: none;
-}
-
-.form-row.errors ul.errorlist li {
- padding-left: 0;
-}
-
-.errors input, .errors select, .errors textarea,
-td ul.errorlist + input, td ul.errorlist + select, td ul.errorlist + textarea {
- border: 1px solid var(--error-fg);
-}
-
-.description {
- font-size: 12px;
- padding: 5px 0 0 12px;
-}
-
-/* BREADCRUMBS */
-
-div.breadcrumbs {
- background: var(--breadcrumbs-bg);
- padding: 10px 40px;
- border: none;
- color: var(--breadcrumbs-fg);
- text-align: left;
-}
-
-div.breadcrumbs a {
- color: var(--breadcrumbs-link-fg);
-}
-
-div.breadcrumbs a:focus, div.breadcrumbs a:hover {
- color: var(--breadcrumbs-fg);
-}
-
-/* ACTION ICONS */
-
-.viewlink, .inlineviewlink {
- padding-left: 16px;
- background: url("../img/icon-viewlink.41eb31f7826e.svg") 0 1px no-repeat;
-}
-
-.addlink {
- padding-left: 16px;
- background: url("../img/icon-addlink.d519b3bab011.svg") 0 1px no-repeat;
-}
-
-.changelink, .inlinechangelink {
- padding-left: 16px;
- background: url("../img/icon-changelink.18d2fd706348.svg") 0 1px no-repeat;
-}
-
-.deletelink {
- padding-left: 16px;
- background: url("../img/icon-deletelink.564ef9dc3854.svg") 0 1px no-repeat;
-}
-
-a.deletelink:link, a.deletelink:visited {
- color: #CC3434; /* XXX Probably unused? */
-}
-
-a.deletelink:focus, a.deletelink:hover {
- color: #993333; /* XXX Probably unused? */
- text-decoration: none;
-}
-
-/* OBJECT TOOLS */
-
-.object-tools {
- font-size: 10px;
- font-weight: bold;
- padding-left: 0;
- float: right;
- position: relative;
- margin-top: -48px;
-}
-
-.object-tools li {
- display: block;
- float: left;
- margin-left: 5px;
- height: 16px;
-}
-
-.object-tools a {
- border-radius: 15px;
-}
-
-.object-tools a:link, .object-tools a:visited {
- display: block;
- float: left;
- padding: 3px 12px;
- background: var(--object-tools-bg);
- color: var(--object-tools-fg);
- font-weight: 400;
- font-size: 11px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
-}
-
-.object-tools a:focus, .object-tools a:hover {
- background-color: var(--object-tools-hover-bg);
-}
-
-.object-tools a:focus{
- text-decoration: none;
-}
-
-.object-tools a.viewsitelink, .object-tools a.addlink {
- background-repeat: no-repeat;
- background-position: right 7px center;
- padding-right: 26px;
-}
-
-.object-tools a.viewsitelink {
- background-image: url("../img/tooltag-arrowright.bbfb788a849e.svg");
-}
-
-.object-tools a.addlink {
- background-image: url("../img/tooltag-add.e59d620a9742.svg");
-}
-
-/* OBJECT HISTORY */
-
-table#change-history {
- width: 100%;
-}
-
-table#change-history tbody th {
- width: 16em;
-}
-
-/* PAGE STRUCTURE */
-
-#container {
- position: relative;
- width: 100%;
- min-width: 980px;
- padding: 0;
- display: flex;
- flex-direction: column;
- height: 100%;
-}
-
-#container > div {
- flex-shrink: 0;
-}
-
-#container > .main {
- display: flex;
- flex: 1 0 auto;
-}
-
-.main > .content {
- flex: 1 0;
- max-width: 100%;
-}
-
-#content {
- padding: 20px 40px;
-}
-
-.dashboard #content {
- width: 600px;
-}
-
-#content-main {
- float: left;
- width: 100%;
-}
-
-#content-related {
- float: right;
- width: 260px;
- position: relative;
- margin-right: -300px;
-}
-
-#footer {
- clear: both;
- padding: 10px;
-}
-
-/* COLUMN TYPES */
-
-.colMS {
- margin-right: 300px;
-}
-
-.colSM {
- margin-left: 300px;
-}
-
-.colSM #content-related {
- float: left;
- margin-right: 0;
- margin-left: -300px;
-}
-
-.colSM #content-main {
- float: right;
-}
-
-.popup .colM {
- width: auto;
-}
-
-/* HEADER */
-
-#header {
- width: auto;
- height: auto;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 10px 40px;
- background: var(--header-bg);
- color: var(--header-color);
- overflow: hidden;
-}
-
-#header a:link, #header a:visited {
- color: var(--header-link-color);
-}
-
-#header a:focus , #header a:hover {
- text-decoration: underline;
-}
-
-#branding {
- float: left;
-}
-
-#branding h1 {
- padding: 0;
- margin: 0 20px 0 0;
- font-weight: 300;
- font-size: 24px;
- color: var(--accent);
-}
-
-#branding h1, #branding h1 a:link, #branding h1 a:visited {
- color: var(--accent);
-}
-
-#branding h2 {
- padding: 0 10px;
- font-size: 14px;
- margin: -8px 0 8px 0;
- font-weight: normal;
- color: var(--header-color);
-}
-
-#branding a:hover {
- text-decoration: none;
-}
-
-#user-tools {
- float: right;
- padding: 0;
- margin: 0 0 0 20px;
- font-weight: 300;
- font-size: 11px;
- letter-spacing: 0.5px;
- text-transform: uppercase;
- text-align: right;
-}
-
-#user-tools a {
- border-bottom: 1px solid rgba(255, 255, 255, 0.25);
-}
-
-#user-tools a:focus, #user-tools a:hover {
- text-decoration: none;
- border-bottom-color: var(--primary);
- color: var(--primary);
-}
-
-/* SIDEBAR */
-
-#content-related {
- background: var(--darkened-bg);
-}
-
-#content-related .module {
- background: none;
-}
-
-#content-related h3 {
- color: var(--body-quiet-color);
- padding: 0 16px;
- margin: 0 0 16px;
-}
-
-#content-related h4 {
- font-size: 13px;
-}
-
-#content-related p {
- padding-left: 16px;
- padding-right: 16px;
-}
-
-#content-related .actionlist {
- padding: 0;
- margin: 16px;
-}
-
-#content-related .actionlist li {
- line-height: 1.2;
- margin-bottom: 10px;
- padding-left: 18px;
-}
-
-#content-related .module h2 {
- background: none;
- padding: 16px;
- margin-bottom: 16px;
- border-bottom: 1px solid var(--hairline-color);
- font-size: 18px;
- color: var(--body-fg);
-}
-
-.delete-confirmation form input[type="submit"] {
- background: var(--delete-button-bg);
- border-radius: 4px;
- padding: 10px 15px;
- color: var(--button-fg);
-}
-
-.delete-confirmation form input[type="submit"]:active,
-.delete-confirmation form input[type="submit"]:focus,
-.delete-confirmation form input[type="submit"]:hover {
- background: var(--delete-button-hover-bg);
-}
-
-.delete-confirmation form .cancel-link {
- display: inline-block;
- vertical-align: middle;
- height: 15px;
- line-height: 15px;
- border-radius: 4px;
- padding: 10px 15px;
- color: var(--button-fg);
- background: var(--close-button-bg);
- margin: 0 0 0 10px;
-}
-
-.delete-confirmation form .cancel-link:active,
-.delete-confirmation form .cancel-link:focus,
-.delete-confirmation form .cancel-link:hover {
- background: var(--close-button-hover-bg);
-}
-
-/* POPUP */
-.popup #content {
- padding: 20px;
-}
-
-.popup #container {
- min-width: 0;
-}
-
-.popup #header {
- padding: 10px 20px;
-}
diff --git a/backend/staticfiles/admin/css/base.1f418065fc2c.css.gz b/backend/staticfiles/admin/css/base.1f418065fc2c.css.gz
deleted file mode 100644
index f4c29cf7c..000000000
Binary files a/backend/staticfiles/admin/css/base.1f418065fc2c.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/base.css b/backend/staticfiles/admin/css/base.css
deleted file mode 100644
index 1cb3acdbe..000000000
--- a/backend/staticfiles/admin/css/base.css
+++ /dev/null
@@ -1,1052 +0,0 @@
-/*
- DJANGO Admin styles
-*/
-
-@import url(fonts.css);
-
-/* VARIABLE DEFINITIONS */
-:root {
- --primary: #79aec8;
- --secondary: #417690;
- --accent: #f5dd5d;
- --primary-fg: #fff;
-
- --body-fg: #333;
- --body-bg: #fff;
- --body-quiet-color: #666;
- --body-loud-color: #000;
-
- --header-color: #ffc;
- --header-branding-color: var(--accent);
- --header-bg: var(--secondary);
- --header-link-color: var(--primary-fg);
-
- --breadcrumbs-fg: #c4dce8;
- --breadcrumbs-link-fg: var(--body-bg);
- --breadcrumbs-bg: var(--primary);
-
- --link-fg: #447e9b;
- --link-hover-color: #036;
- --link-selected-fg: #5b80b2;
-
- --hairline-color: #e8e8e8;
- --border-color: #ccc;
-
- --error-fg: #ba2121;
-
- --message-success-bg: #dfd;
- --message-warning-bg: #ffc;
- --message-error-bg: #ffefef;
-
- --darkened-bg: #f8f8f8; /* A bit darker than --body-bg */
- --selected-bg: #e4e4e4; /* E.g. selected table cells */
- --selected-row: #ffc;
-
- --button-fg: #fff;
- --button-bg: var(--primary);
- --button-hover-bg: #609ab6;
- --default-button-bg: var(--secondary);
- --default-button-hover-bg: #205067;
- --close-button-bg: #888; /* Previously #bbb, contrast 1.92 */
- --close-button-hover-bg: #747474;
- --delete-button-bg: #ba2121;
- --delete-button-hover-bg: #a41515;
-
- --object-tools-fg: var(--button-fg);
- --object-tools-bg: var(--close-button-bg);
- --object-tools-hover-bg: var(--close-button-hover-bg);
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --primary: #264b5d;
- --primary-fg: #eee;
-
- --body-fg: #eeeeee;
- --body-bg: #121212;
- --body-quiet-color: #e0e0e0;
- --body-loud-color: #ffffff;
-
- --breadcrumbs-link-fg: #e0e0e0;
- --breadcrumbs-bg: var(--primary);
-
- --link-fg: #81d4fa;
- --link-hover-color: #4ac1f7;
- --link-selected-fg: #6f94c6;
-
- --hairline-color: #272727;
- --border-color: #353535;
-
- --error-fg: #e35f5f;
- --message-success-bg: #006b1b;
- --message-warning-bg: #583305;
- --message-error-bg: #570808;
-
- --darkened-bg: #212121;
- --selected-bg: #1b1b1b;
- --selected-row: #00363a;
-
- --close-button-bg: #333333;
- --close-button-hover-bg: #666666;
- }
-}
-
-html, body {
- height: 100%;
-}
-
-body {
- margin: 0;
- padding: 0;
- font-size: 14px;
- font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
- color: var(--body-fg);
- background: var(--body-bg);
-}
-
-/* LINKS */
-
-a:link, a:visited {
- color: var(--link-fg);
- text-decoration: none;
- transition: color 0.15s, background 0.15s;
-}
-
-a:focus, a:hover {
- color: var(--link-hover-color);
-}
-
-a:focus {
- text-decoration: underline;
-}
-
-a img {
- border: none;
-}
-
-a.section:link, a.section:visited {
- color: var(--header-link-color);
- text-decoration: none;
-}
-
-a.section:focus, a.section:hover {
- text-decoration: underline;
-}
-
-/* GLOBAL DEFAULTS */
-
-p, ol, ul, dl {
- margin: .2em 0 .8em 0;
-}
-
-p {
- padding: 0;
- line-height: 140%;
-}
-
-h1,h2,h3,h4,h5 {
- font-weight: bold;
-}
-
-h1 {
- margin: 0 0 20px;
- font-weight: 300;
- font-size: 20px;
- color: var(--body-quiet-color);
-}
-
-h2 {
- font-size: 16px;
- margin: 1em 0 .5em 0;
-}
-
-h2.subhead {
- font-weight: normal;
- margin-top: 0;
-}
-
-h3 {
- font-size: 14px;
- margin: .8em 0 .3em 0;
- color: var(--body-quiet-color);
- font-weight: bold;
-}
-
-h4 {
- font-size: 12px;
- margin: 1em 0 .8em 0;
- padding-bottom: 3px;
-}
-
-h5 {
- font-size: 10px;
- margin: 1.5em 0 .5em 0;
- color: var(--body-quiet-color);
- text-transform: uppercase;
- letter-spacing: 1px;
-}
-
-ul > li {
- list-style-type: square;
- padding: 1px 0;
-}
-
-li ul {
- margin-bottom: 0;
-}
-
-li, dt, dd {
- font-size: 13px;
- line-height: 20px;
-}
-
-dt {
- font-weight: bold;
- margin-top: 4px;
-}
-
-dd {
- margin-left: 0;
-}
-
-form {
- margin: 0;
- padding: 0;
-}
-
-fieldset {
- margin: 0;
- min-width: 0;
- padding: 0;
- border: none;
- border-top: 1px solid var(--hairline-color);
-}
-
-blockquote {
- font-size: 11px;
- color: #777;
- margin-left: 2px;
- padding-left: 10px;
- border-left: 5px solid #ddd;
-}
-
-code, pre {
- font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
- color: var(--body-quiet-color);
- font-size: 12px;
- overflow-x: auto;
-}
-
-pre.literal-block {
- margin: 10px;
- background: var(--darkened-bg);
- padding: 6px 8px;
-}
-
-code strong {
- color: #930;
-}
-
-hr {
- clear: both;
- color: var(--hairline-color);
- background-color: var(--hairline-color);
- height: 1px;
- border: none;
- margin: 0;
- padding: 0;
- font-size: 1px;
- line-height: 1px;
-}
-
-/* TEXT STYLES & MODIFIERS */
-
-.small {
- font-size: 11px;
-}
-
-.mini {
- font-size: 10px;
-}
-
-.help, p.help, form p.help, div.help, form div.help, div.help li {
- font-size: 11px;
- color: var(--body-quiet-color);
-}
-
-div.help ul {
- margin-bottom: 0;
-}
-
-.help-tooltip {
- cursor: help;
-}
-
-p img, h1 img, h2 img, h3 img, h4 img, td img {
- vertical-align: middle;
-}
-
-.quiet, a.quiet:link, a.quiet:visited {
- color: var(--body-quiet-color);
- font-weight: normal;
-}
-
-.clear {
- clear: both;
-}
-
-.nowrap {
- white-space: nowrap;
-}
-
-.hidden {
- display: none;
-}
-
-/* TABLES */
-
-table {
- border-collapse: collapse;
- border-color: var(--border-color);
-}
-
-td, th {
- font-size: 13px;
- line-height: 16px;
- border-bottom: 1px solid var(--hairline-color);
- vertical-align: top;
- padding: 8px;
-}
-
-th {
- font-weight: 600;
- text-align: left;
-}
-
-thead th,
-tfoot td {
- color: var(--body-quiet-color);
- padding: 5px 10px;
- font-size: 11px;
- background: var(--body-bg);
- border: none;
- border-top: 1px solid var(--hairline-color);
- border-bottom: 1px solid var(--hairline-color);
-}
-
-tfoot td {
- border-bottom: none;
- border-top: 1px solid var(--hairline-color);
-}
-
-thead th.required {
- color: var(--body-loud-color);
-}
-
-tr.alt {
- background: var(--darkened-bg);
-}
-
-tr:nth-child(odd), .row-form-errors {
- background: var(--body-bg);
-}
-
-tr:nth-child(even),
-tr:nth-child(even) .errorlist,
-tr:nth-child(odd) + .row-form-errors,
-tr:nth-child(odd) + .row-form-errors .errorlist {
- background: var(--darkened-bg);
-}
-
-/* SORTABLE TABLES */
-
-thead th {
- padding: 5px 10px;
- line-height: normal;
- text-transform: uppercase;
- background: var(--darkened-bg);
-}
-
-thead th a:link, thead th a:visited {
- color: var(--body-quiet-color);
-}
-
-thead th.sorted {
- background: var(--selected-bg);
-}
-
-thead th.sorted .text {
- padding-right: 42px;
-}
-
-table thead th .text span {
- padding: 8px 10px;
- display: block;
-}
-
-table thead th .text a {
- display: block;
- cursor: pointer;
- padding: 8px 10px;
-}
-
-table thead th .text a:focus, table thead th .text a:hover {
- background: var(--selected-bg);
-}
-
-thead th.sorted a.sortremove {
- visibility: hidden;
-}
-
-table thead th.sorted:hover a.sortremove {
- visibility: visible;
-}
-
-table thead th.sorted .sortoptions {
- display: block;
- padding: 9px 5px 0 5px;
- float: right;
- text-align: right;
-}
-
-table thead th.sorted .sortpriority {
- font-size: .8em;
- min-width: 12px;
- text-align: center;
- vertical-align: 3px;
- margin-left: 2px;
- margin-right: 2px;
-}
-
-table thead th.sorted .sortoptions a {
- position: relative;
- width: 14px;
- height: 14px;
- display: inline-block;
- background: url(../img/sorting-icons.svg) 0 0 no-repeat;
- background-size: 14px auto;
-}
-
-table thead th.sorted .sortoptions a.sortremove {
- background-position: 0 0;
-}
-
-table thead th.sorted .sortoptions a.sortremove:after {
- content: '\\';
- position: absolute;
- top: -6px;
- left: 3px;
- font-weight: 200;
- font-size: 18px;
- color: var(--body-quiet-color);
-}
-
-table thead th.sorted .sortoptions a.sortremove:focus:after,
-table thead th.sorted .sortoptions a.sortremove:hover:after {
- color: var(--link-fg);
-}
-
-table thead th.sorted .sortoptions a.sortremove:focus,
-table thead th.sorted .sortoptions a.sortremove:hover {
- background-position: 0 -14px;
-}
-
-table thead th.sorted .sortoptions a.ascending {
- background-position: 0 -28px;
-}
-
-table thead th.sorted .sortoptions a.ascending:focus,
-table thead th.sorted .sortoptions a.ascending:hover {
- background-position: 0 -42px;
-}
-
-table thead th.sorted .sortoptions a.descending {
- top: 1px;
- background-position: 0 -56px;
-}
-
-table thead th.sorted .sortoptions a.descending:focus,
-table thead th.sorted .sortoptions a.descending:hover {
- background-position: 0 -70px;
-}
-
-/* FORM DEFAULTS */
-
-input, textarea, select, .form-row p, form .button {
- margin: 2px 0;
- padding: 2px 3px;
- vertical-align: middle;
- font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
- font-weight: normal;
- font-size: 13px;
-}
-.form-row div.help {
- padding: 2px 3px;
-}
-
-textarea {
- vertical-align: top;
-}
-
-input[type=text], input[type=password], input[type=email], input[type=url],
-input[type=number], input[type=tel], textarea, select, .vTextField {
- border: 1px solid var(--border-color);
- border-radius: 4px;
- padding: 5px 6px;
- margin-top: 0;
- color: var(--body-fg);
- background-color: var(--body-bg);
-}
-
-input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
-input[type=url]:focus, input[type=number]:focus, input[type=tel]:focus,
-textarea:focus, select:focus, .vTextField:focus {
- border-color: var(--body-quiet-color);
-}
-
-select {
- height: 30px;
-}
-
-select[multiple] {
- /* Allow HTML size attribute to override the height in the rule above. */
- height: auto;
- min-height: 150px;
-}
-
-/* FORM BUTTONS */
-
-.button, input[type=submit], input[type=button], .submit-row input, a.button {
- background: var(--button-bg);
- padding: 10px 15px;
- border: none;
- border-radius: 4px;
- color: var(--button-fg);
- cursor: pointer;
- transition: background 0.15s;
-}
-
-a.button {
- padding: 4px 5px;
-}
-
-.button:active, input[type=submit]:active, input[type=button]:active,
-.button:focus, input[type=submit]:focus, input[type=button]:focus,
-.button:hover, input[type=submit]:hover, input[type=button]:hover {
- background: var(--button-hover-bg);
-}
-
-.button[disabled], input[type=submit][disabled], input[type=button][disabled] {
- opacity: 0.4;
-}
-
-.button.default, input[type=submit].default, .submit-row input.default {
- float: right;
- border: none;
- font-weight: 400;
- background: var(--default-button-bg);
-}
-
-.button.default:active, input[type=submit].default:active,
-.button.default:focus, input[type=submit].default:focus,
-.button.default:hover, input[type=submit].default:hover {
- background: var(--default-button-hover-bg);
-}
-
-.button[disabled].default,
-input[type=submit][disabled].default,
-input[type=button][disabled].default {
- opacity: 0.4;
-}
-
-
-/* MODULES */
-
-.module {
- border: none;
- margin-bottom: 30px;
- background: var(--body-bg);
-}
-
-.module p, .module ul, .module h3, .module h4, .module dl, .module pre {
- padding-left: 10px;
- padding-right: 10px;
-}
-
-.module blockquote {
- margin-left: 12px;
-}
-
-.module ul, .module ol {
- margin-left: 1.5em;
-}
-
-.module h3 {
- margin-top: .6em;
-}
-
-.module h2, .module caption, .inline-group h2 {
- margin: 0;
- padding: 8px;
- font-weight: 400;
- font-size: 13px;
- text-align: left;
- background: var(--primary);
- color: var(--header-link-color);
-}
-
-.module caption,
-.inline-group h2 {
- font-size: 12px;
- letter-spacing: 0.5px;
- text-transform: uppercase;
-}
-
-.module table {
- border-collapse: collapse;
-}
-
-/* MESSAGES & ERRORS */
-
-ul.messagelist {
- padding: 0;
- margin: 0;
-}
-
-ul.messagelist li {
- display: block;
- font-weight: 400;
- font-size: 13px;
- padding: 10px 10px 10px 65px;
- margin: 0 0 10px 0;
- background: var(--message-success-bg) url(../img/icon-yes.svg) 40px 12px no-repeat;
- background-size: 16px auto;
- color: var(--body-fg);
-}
-
-ul.messagelist li.warning {
- background: var(--message-warning-bg) url(../img/icon-alert.svg) 40px 14px no-repeat;
- background-size: 14px auto;
-}
-
-ul.messagelist li.error {
- background: var(--message-error-bg) url(../img/icon-no.svg) 40px 12px no-repeat;
- background-size: 16px auto;
-}
-
-.errornote {
- font-size: 14px;
- font-weight: 700;
- display: block;
- padding: 10px 12px;
- margin: 0 0 10px 0;
- color: var(--error-fg);
- border: 1px solid var(--error-fg);
- border-radius: 4px;
- background-color: var(--body-bg);
- background-position: 5px 12px;
- overflow-wrap: break-word;
-}
-
-ul.errorlist {
- margin: 0 0 4px;
- padding: 0;
- color: var(--error-fg);
- background: var(--body-bg);
-}
-
-ul.errorlist li {
- font-size: 13px;
- display: block;
- margin-bottom: 4px;
- overflow-wrap: break-word;
-}
-
-ul.errorlist li:first-child {
- margin-top: 0;
-}
-
-ul.errorlist li a {
- color: inherit;
- text-decoration: underline;
-}
-
-td ul.errorlist {
- margin: 0;
- padding: 0;
-}
-
-td ul.errorlist li {
- margin: 0;
-}
-
-.form-row.errors {
- margin: 0;
- border: none;
- border-bottom: 1px solid var(--hairline-color);
- background: none;
-}
-
-.form-row.errors ul.errorlist li {
- padding-left: 0;
-}
-
-.errors input, .errors select, .errors textarea,
-td ul.errorlist + input, td ul.errorlist + select, td ul.errorlist + textarea {
- border: 1px solid var(--error-fg);
-}
-
-.description {
- font-size: 12px;
- padding: 5px 0 0 12px;
-}
-
-/* BREADCRUMBS */
-
-div.breadcrumbs {
- background: var(--breadcrumbs-bg);
- padding: 10px 40px;
- border: none;
- color: var(--breadcrumbs-fg);
- text-align: left;
-}
-
-div.breadcrumbs a {
- color: var(--breadcrumbs-link-fg);
-}
-
-div.breadcrumbs a:focus, div.breadcrumbs a:hover {
- color: var(--breadcrumbs-fg);
-}
-
-/* ACTION ICONS */
-
-.viewlink, .inlineviewlink {
- padding-left: 16px;
- background: url(../img/icon-viewlink.svg) 0 1px no-repeat;
-}
-
-.addlink {
- padding-left: 16px;
- background: url(../img/icon-addlink.svg) 0 1px no-repeat;
-}
-
-.changelink, .inlinechangelink {
- padding-left: 16px;
- background: url(../img/icon-changelink.svg) 0 1px no-repeat;
-}
-
-.deletelink {
- padding-left: 16px;
- background: url(../img/icon-deletelink.svg) 0 1px no-repeat;
-}
-
-a.deletelink:link, a.deletelink:visited {
- color: #CC3434; /* XXX Probably unused? */
-}
-
-a.deletelink:focus, a.deletelink:hover {
- color: #993333; /* XXX Probably unused? */
- text-decoration: none;
-}
-
-/* OBJECT TOOLS */
-
-.object-tools {
- font-size: 10px;
- font-weight: bold;
- padding-left: 0;
- float: right;
- position: relative;
- margin-top: -48px;
-}
-
-.object-tools li {
- display: block;
- float: left;
- margin-left: 5px;
- height: 16px;
-}
-
-.object-tools a {
- border-radius: 15px;
-}
-
-.object-tools a:link, .object-tools a:visited {
- display: block;
- float: left;
- padding: 3px 12px;
- background: var(--object-tools-bg);
- color: var(--object-tools-fg);
- font-weight: 400;
- font-size: 11px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
-}
-
-.object-tools a:focus, .object-tools a:hover {
- background-color: var(--object-tools-hover-bg);
-}
-
-.object-tools a:focus{
- text-decoration: none;
-}
-
-.object-tools a.viewsitelink, .object-tools a.addlink {
- background-repeat: no-repeat;
- background-position: right 7px center;
- padding-right: 26px;
-}
-
-.object-tools a.viewsitelink {
- background-image: url(../img/tooltag-arrowright.svg);
-}
-
-.object-tools a.addlink {
- background-image: url(../img/tooltag-add.svg);
-}
-
-/* OBJECT HISTORY */
-
-table#change-history {
- width: 100%;
-}
-
-table#change-history tbody th {
- width: 16em;
-}
-
-/* PAGE STRUCTURE */
-
-#container {
- position: relative;
- width: 100%;
- min-width: 980px;
- padding: 0;
- display: flex;
- flex-direction: column;
- height: 100%;
-}
-
-#container > div {
- flex-shrink: 0;
-}
-
-#container > .main {
- display: flex;
- flex: 1 0 auto;
-}
-
-.main > .content {
- flex: 1 0;
- max-width: 100%;
-}
-
-#content {
- padding: 20px 40px;
-}
-
-.dashboard #content {
- width: 600px;
-}
-
-#content-main {
- float: left;
- width: 100%;
-}
-
-#content-related {
- float: right;
- width: 260px;
- position: relative;
- margin-right: -300px;
-}
-
-#footer {
- clear: both;
- padding: 10px;
-}
-
-/* COLUMN TYPES */
-
-.colMS {
- margin-right: 300px;
-}
-
-.colSM {
- margin-left: 300px;
-}
-
-.colSM #content-related {
- float: left;
- margin-right: 0;
- margin-left: -300px;
-}
-
-.colSM #content-main {
- float: right;
-}
-
-.popup .colM {
- width: auto;
-}
-
-/* HEADER */
-
-#header {
- width: auto;
- height: auto;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 10px 40px;
- background: var(--header-bg);
- color: var(--header-color);
- overflow: hidden;
-}
-
-#header a:link, #header a:visited {
- color: var(--header-link-color);
-}
-
-#header a:focus , #header a:hover {
- text-decoration: underline;
-}
-
-#branding {
- float: left;
-}
-
-#branding h1 {
- padding: 0;
- margin: 0 20px 0 0;
- font-weight: 300;
- font-size: 24px;
- color: var(--accent);
-}
-
-#branding h1, #branding h1 a:link, #branding h1 a:visited {
- color: var(--accent);
-}
-
-#branding h2 {
- padding: 0 10px;
- font-size: 14px;
- margin: -8px 0 8px 0;
- font-weight: normal;
- color: var(--header-color);
-}
-
-#branding a:hover {
- text-decoration: none;
-}
-
-#user-tools {
- float: right;
- padding: 0;
- margin: 0 0 0 20px;
- font-weight: 300;
- font-size: 11px;
- letter-spacing: 0.5px;
- text-transform: uppercase;
- text-align: right;
-}
-
-#user-tools a {
- border-bottom: 1px solid rgba(255, 255, 255, 0.25);
-}
-
-#user-tools a:focus, #user-tools a:hover {
- text-decoration: none;
- border-bottom-color: var(--primary);
- color: var(--primary);
-}
-
-/* SIDEBAR */
-
-#content-related {
- background: var(--darkened-bg);
-}
-
-#content-related .module {
- background: none;
-}
-
-#content-related h3 {
- color: var(--body-quiet-color);
- padding: 0 16px;
- margin: 0 0 16px;
-}
-
-#content-related h4 {
- font-size: 13px;
-}
-
-#content-related p {
- padding-left: 16px;
- padding-right: 16px;
-}
-
-#content-related .actionlist {
- padding: 0;
- margin: 16px;
-}
-
-#content-related .actionlist li {
- line-height: 1.2;
- margin-bottom: 10px;
- padding-left: 18px;
-}
-
-#content-related .module h2 {
- background: none;
- padding: 16px;
- margin-bottom: 16px;
- border-bottom: 1px solid var(--hairline-color);
- font-size: 18px;
- color: var(--body-fg);
-}
-
-.delete-confirmation form input[type="submit"] {
- background: var(--delete-button-bg);
- border-radius: 4px;
- padding: 10px 15px;
- color: var(--button-fg);
-}
-
-.delete-confirmation form input[type="submit"]:active,
-.delete-confirmation form input[type="submit"]:focus,
-.delete-confirmation form input[type="submit"]:hover {
- background: var(--delete-button-hover-bg);
-}
-
-.delete-confirmation form .cancel-link {
- display: inline-block;
- vertical-align: middle;
- height: 15px;
- line-height: 15px;
- border-radius: 4px;
- padding: 10px 15px;
- color: var(--button-fg);
- background: var(--close-button-bg);
- margin: 0 0 0 10px;
-}
-
-.delete-confirmation form .cancel-link:active,
-.delete-confirmation form .cancel-link:focus,
-.delete-confirmation form .cancel-link:hover {
- background: var(--close-button-hover-bg);
-}
-
-/* POPUP */
-.popup #content {
- padding: 20px;
-}
-
-.popup #container {
- min-width: 0;
-}
-
-.popup #header {
- padding: 10px 20px;
-}
diff --git a/backend/staticfiles/admin/css/base.css.gz b/backend/staticfiles/admin/css/base.css.gz
deleted file mode 100644
index 44e0b9d66..000000000
Binary files a/backend/staticfiles/admin/css/base.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/changelists.c70d77c47e69.css b/backend/staticfiles/admin/css/changelists.c70d77c47e69.css
deleted file mode 100644
index b4a155788..000000000
--- a/backend/staticfiles/admin/css/changelists.c70d77c47e69.css
+++ /dev/null
@@ -1,351 +0,0 @@
-/* CHANGELISTS */
-
-#changelist {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
-}
-
-#changelist .changelist-form-container {
- flex: 1 1 auto;
- min-width: 0;
-}
-
-#changelist table {
- width: 100%;
-}
-
-.change-list .hiddenfields { display:none; }
-
-.change-list .filtered table {
- border-right: none;
-}
-
-.change-list .filtered {
- min-height: 400px;
-}
-
-.change-list .filtered .results, .change-list .filtered .paginator,
-.filtered #toolbar, .filtered div.xfull {
- width: auto;
-}
-
-.change-list .filtered table tbody th {
- padding-right: 1em;
-}
-
-#changelist-form .results {
- overflow-x: auto;
- width: 100%;
-}
-
-#changelist .toplinks {
- border-bottom: 1px solid var(--hairline-color);
-}
-
-#changelist .paginator {
- color: var(--body-quiet-color);
- border-bottom: 1px solid var(--hairline-color);
- background: var(--body-bg);
- overflow: hidden;
-}
-
-/* CHANGELIST TABLES */
-
-#changelist table thead th {
- padding: 0;
- white-space: nowrap;
- vertical-align: middle;
-}
-
-#changelist table thead th.action-checkbox-column {
- width: 1.5em;
- text-align: center;
-}
-
-#changelist table tbody td.action-checkbox {
- text-align: center;
-}
-
-#changelist table tfoot {
- color: var(--body-quiet-color);
-}
-
-/* TOOLBAR */
-
-#toolbar {
- padding: 8px 10px;
- margin-bottom: 15px;
- border-top: 1px solid var(--hairline-color);
- border-bottom: 1px solid var(--hairline-color);
- background: var(--darkened-bg);
- color: var(--body-quiet-color);
-}
-
-#toolbar form input {
- border-radius: 4px;
- font-size: 14px;
- padding: 5px;
- color: var(--body-fg);
-}
-
-#toolbar #searchbar {
- height: 19px;
- border: 1px solid var(--border-color);
- padding: 2px 5px;
- margin: 0;
- vertical-align: top;
- font-size: 13px;
- max-width: 100%;
-}
-
-#toolbar #searchbar:focus {
- border-color: var(--body-quiet-color);
-}
-
-#toolbar form input[type="submit"] {
- border: 1px solid var(--border-color);
- font-size: 13px;
- padding: 4px 8px;
- margin: 0;
- vertical-align: middle;
- background: var(--body-bg);
- box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
- cursor: pointer;
- color: var(--body-fg);
-}
-
-#toolbar form input[type="submit"]:focus,
-#toolbar form input[type="submit"]:hover {
- border-color: var(--body-quiet-color);
-}
-
-#changelist-search img {
- vertical-align: middle;
- margin-right: 4px;
-}
-
-/* FILTER COLUMN */
-
-#changelist-filter {
- flex: 0 0 240px;
- order: 1;
- background: var(--darkened-bg);
- border-left: none;
- margin: 0 0 0 30px;
-}
-
-#changelist-filter h2 {
- font-size: 14px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- padding: 5px 15px;
- margin-bottom: 12px;
- border-bottom: none;
-}
-
-#changelist-filter h3 {
- font-weight: 400;
- padding: 0 15px;
- margin-bottom: 10px;
-}
-
-#changelist-filter ul {
- margin: 5px 0;
- padding: 0 15px 15px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-#changelist-filter ul:last-child {
- border-bottom: none;
-}
-
-#changelist-filter li {
- list-style-type: none;
- margin-left: 0;
- padding-left: 0;
-}
-
-#changelist-filter a {
- display: block;
- color: var(--body-quiet-color);
- text-overflow: ellipsis;
- overflow-x: hidden;
-}
-
-#changelist-filter li.selected {
- border-left: 5px solid var(--hairline-color);
- padding-left: 10px;
- margin-left: -15px;
-}
-
-#changelist-filter li.selected a {
- color: var(--link-selected-fg);
-}
-
-#changelist-filter a:focus, #changelist-filter a:hover,
-#changelist-filter li.selected a:focus,
-#changelist-filter li.selected a:hover {
- color: var(--link-hover-color);
-}
-
-#changelist-filter #changelist-filter-clear a {
- font-size: 13px;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-/* DATE DRILLDOWN */
-
-.change-list ul.toplinks {
- display: block;
- float: left;
- padding: 0;
- margin: 0;
- width: 100%;
-}
-
-.change-list ul.toplinks li {
- padding: 3px 6px;
- font-weight: bold;
- list-style-type: none;
- display: inline-block;
-}
-
-.change-list ul.toplinks .date-back a {
- color: var(--body-quiet-color);
-}
-
-.change-list ul.toplinks .date-back a:focus,
-.change-list ul.toplinks .date-back a:hover {
- color: var(--link-hover-color);
-}
-
-/* PAGINATOR */
-
-.paginator {
- font-size: 13px;
- padding-top: 10px;
- padding-bottom: 10px;
- line-height: 22px;
- margin: 0;
- border-top: 1px solid var(--hairline-color);
- width: 100%;
-}
-
-.paginator a:link, .paginator a:visited {
- padding: 2px 6px;
- background: var(--button-bg);
- text-decoration: none;
- color: var(--button-fg);
-}
-
-.paginator a.showall {
- border: none;
- background: none;
- color: var(--link-fg);
-}
-
-.paginator a.showall:focus, .paginator a.showall:hover {
- background: none;
- color: var(--link-hover-color);
-}
-
-.paginator .end {
- margin-right: 6px;
-}
-
-.paginator .this-page {
- padding: 2px 6px;
- font-weight: bold;
- font-size: 13px;
- vertical-align: top;
-}
-
-.paginator a:focus, .paginator a:hover {
- color: white;
- background: var(--link-hover-color);
-}
-
-/* ACTIONS */
-
-.filtered .actions {
- border-right: none;
-}
-
-#changelist table input {
- margin: 0;
- vertical-align: baseline;
-}
-
-#changelist table tbody tr.selected {
- background-color: var(--selected-row);
-}
-
-#changelist .actions {
- padding: 10px;
- background: var(--body-bg);
- border-top: none;
- border-bottom: none;
- line-height: 24px;
- color: var(--body-quiet-color);
- width: 100%;
-}
-
-#changelist .actions.selected { /* XXX Probably unused? */
- background: var(--body-bg);
- border-top: 1px solid var(--body-bg);
- border-bottom: 1px solid #edecd6;
-}
-
-#changelist .actions span.all,
-#changelist .actions span.action-counter,
-#changelist .actions span.clear,
-#changelist .actions span.question {
- font-size: 13px;
- margin: 0 0.5em;
-}
-
-#changelist .actions:last-child {
- border-bottom: none;
-}
-
-#changelist .actions select {
- vertical-align: top;
- height: 24px;
- color: var(--body-fg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
- font-size: 14px;
- padding: 0 0 0 4px;
- margin: 0;
- margin-left: 10px;
-}
-
-#changelist .actions select:focus {
- border-color: var(--body-quiet-color);
-}
-
-#changelist .actions label {
- display: inline-block;
- vertical-align: middle;
- font-size: 13px;
-}
-
-#changelist .actions .button {
- font-size: 13px;
- border: 1px solid var(--border-color);
- border-radius: 4px;
- background: var(--body-bg);
- box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
- cursor: pointer;
- height: 24px;
- line-height: 1;
- padding: 4px 8px;
- margin: 0;
- color: var(--body-fg);
-}
-
-#changelist .actions .button:focus, #changelist .actions .button:hover {
- border-color: var(--body-quiet-color);
-}
diff --git a/backend/staticfiles/admin/css/changelists.c70d77c47e69.css.gz b/backend/staticfiles/admin/css/changelists.c70d77c47e69.css.gz
deleted file mode 100644
index f2ae5651b..000000000
Binary files a/backend/staticfiles/admin/css/changelists.c70d77c47e69.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/changelists.css b/backend/staticfiles/admin/css/changelists.css
deleted file mode 100644
index b4a155788..000000000
--- a/backend/staticfiles/admin/css/changelists.css
+++ /dev/null
@@ -1,351 +0,0 @@
-/* CHANGELISTS */
-
-#changelist {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
-}
-
-#changelist .changelist-form-container {
- flex: 1 1 auto;
- min-width: 0;
-}
-
-#changelist table {
- width: 100%;
-}
-
-.change-list .hiddenfields { display:none; }
-
-.change-list .filtered table {
- border-right: none;
-}
-
-.change-list .filtered {
- min-height: 400px;
-}
-
-.change-list .filtered .results, .change-list .filtered .paginator,
-.filtered #toolbar, .filtered div.xfull {
- width: auto;
-}
-
-.change-list .filtered table tbody th {
- padding-right: 1em;
-}
-
-#changelist-form .results {
- overflow-x: auto;
- width: 100%;
-}
-
-#changelist .toplinks {
- border-bottom: 1px solid var(--hairline-color);
-}
-
-#changelist .paginator {
- color: var(--body-quiet-color);
- border-bottom: 1px solid var(--hairline-color);
- background: var(--body-bg);
- overflow: hidden;
-}
-
-/* CHANGELIST TABLES */
-
-#changelist table thead th {
- padding: 0;
- white-space: nowrap;
- vertical-align: middle;
-}
-
-#changelist table thead th.action-checkbox-column {
- width: 1.5em;
- text-align: center;
-}
-
-#changelist table tbody td.action-checkbox {
- text-align: center;
-}
-
-#changelist table tfoot {
- color: var(--body-quiet-color);
-}
-
-/* TOOLBAR */
-
-#toolbar {
- padding: 8px 10px;
- margin-bottom: 15px;
- border-top: 1px solid var(--hairline-color);
- border-bottom: 1px solid var(--hairline-color);
- background: var(--darkened-bg);
- color: var(--body-quiet-color);
-}
-
-#toolbar form input {
- border-radius: 4px;
- font-size: 14px;
- padding: 5px;
- color: var(--body-fg);
-}
-
-#toolbar #searchbar {
- height: 19px;
- border: 1px solid var(--border-color);
- padding: 2px 5px;
- margin: 0;
- vertical-align: top;
- font-size: 13px;
- max-width: 100%;
-}
-
-#toolbar #searchbar:focus {
- border-color: var(--body-quiet-color);
-}
-
-#toolbar form input[type="submit"] {
- border: 1px solid var(--border-color);
- font-size: 13px;
- padding: 4px 8px;
- margin: 0;
- vertical-align: middle;
- background: var(--body-bg);
- box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
- cursor: pointer;
- color: var(--body-fg);
-}
-
-#toolbar form input[type="submit"]:focus,
-#toolbar form input[type="submit"]:hover {
- border-color: var(--body-quiet-color);
-}
-
-#changelist-search img {
- vertical-align: middle;
- margin-right: 4px;
-}
-
-/* FILTER COLUMN */
-
-#changelist-filter {
- flex: 0 0 240px;
- order: 1;
- background: var(--darkened-bg);
- border-left: none;
- margin: 0 0 0 30px;
-}
-
-#changelist-filter h2 {
- font-size: 14px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- padding: 5px 15px;
- margin-bottom: 12px;
- border-bottom: none;
-}
-
-#changelist-filter h3 {
- font-weight: 400;
- padding: 0 15px;
- margin-bottom: 10px;
-}
-
-#changelist-filter ul {
- margin: 5px 0;
- padding: 0 15px 15px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-#changelist-filter ul:last-child {
- border-bottom: none;
-}
-
-#changelist-filter li {
- list-style-type: none;
- margin-left: 0;
- padding-left: 0;
-}
-
-#changelist-filter a {
- display: block;
- color: var(--body-quiet-color);
- text-overflow: ellipsis;
- overflow-x: hidden;
-}
-
-#changelist-filter li.selected {
- border-left: 5px solid var(--hairline-color);
- padding-left: 10px;
- margin-left: -15px;
-}
-
-#changelist-filter li.selected a {
- color: var(--link-selected-fg);
-}
-
-#changelist-filter a:focus, #changelist-filter a:hover,
-#changelist-filter li.selected a:focus,
-#changelist-filter li.selected a:hover {
- color: var(--link-hover-color);
-}
-
-#changelist-filter #changelist-filter-clear a {
- font-size: 13px;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-/* DATE DRILLDOWN */
-
-.change-list ul.toplinks {
- display: block;
- float: left;
- padding: 0;
- margin: 0;
- width: 100%;
-}
-
-.change-list ul.toplinks li {
- padding: 3px 6px;
- font-weight: bold;
- list-style-type: none;
- display: inline-block;
-}
-
-.change-list ul.toplinks .date-back a {
- color: var(--body-quiet-color);
-}
-
-.change-list ul.toplinks .date-back a:focus,
-.change-list ul.toplinks .date-back a:hover {
- color: var(--link-hover-color);
-}
-
-/* PAGINATOR */
-
-.paginator {
- font-size: 13px;
- padding-top: 10px;
- padding-bottom: 10px;
- line-height: 22px;
- margin: 0;
- border-top: 1px solid var(--hairline-color);
- width: 100%;
-}
-
-.paginator a:link, .paginator a:visited {
- padding: 2px 6px;
- background: var(--button-bg);
- text-decoration: none;
- color: var(--button-fg);
-}
-
-.paginator a.showall {
- border: none;
- background: none;
- color: var(--link-fg);
-}
-
-.paginator a.showall:focus, .paginator a.showall:hover {
- background: none;
- color: var(--link-hover-color);
-}
-
-.paginator .end {
- margin-right: 6px;
-}
-
-.paginator .this-page {
- padding: 2px 6px;
- font-weight: bold;
- font-size: 13px;
- vertical-align: top;
-}
-
-.paginator a:focus, .paginator a:hover {
- color: white;
- background: var(--link-hover-color);
-}
-
-/* ACTIONS */
-
-.filtered .actions {
- border-right: none;
-}
-
-#changelist table input {
- margin: 0;
- vertical-align: baseline;
-}
-
-#changelist table tbody tr.selected {
- background-color: var(--selected-row);
-}
-
-#changelist .actions {
- padding: 10px;
- background: var(--body-bg);
- border-top: none;
- border-bottom: none;
- line-height: 24px;
- color: var(--body-quiet-color);
- width: 100%;
-}
-
-#changelist .actions.selected { /* XXX Probably unused? */
- background: var(--body-bg);
- border-top: 1px solid var(--body-bg);
- border-bottom: 1px solid #edecd6;
-}
-
-#changelist .actions span.all,
-#changelist .actions span.action-counter,
-#changelist .actions span.clear,
-#changelist .actions span.question {
- font-size: 13px;
- margin: 0 0.5em;
-}
-
-#changelist .actions:last-child {
- border-bottom: none;
-}
-
-#changelist .actions select {
- vertical-align: top;
- height: 24px;
- color: var(--body-fg);
- border: 1px solid var(--border-color);
- border-radius: 4px;
- font-size: 14px;
- padding: 0 0 0 4px;
- margin: 0;
- margin-left: 10px;
-}
-
-#changelist .actions select:focus {
- border-color: var(--body-quiet-color);
-}
-
-#changelist .actions label {
- display: inline-block;
- vertical-align: middle;
- font-size: 13px;
-}
-
-#changelist .actions .button {
- font-size: 13px;
- border: 1px solid var(--border-color);
- border-radius: 4px;
- background: var(--body-bg);
- box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
- cursor: pointer;
- height: 24px;
- line-height: 1;
- padding: 4px 8px;
- margin: 0;
- color: var(--body-fg);
-}
-
-#changelist .actions .button:focus, #changelist .actions .button:hover {
- border-color: var(--body-quiet-color);
-}
diff --git a/backend/staticfiles/admin/css/changelists.css.gz b/backend/staticfiles/admin/css/changelists.css.gz
deleted file mode 100644
index f2ae5651b..000000000
Binary files a/backend/staticfiles/admin/css/changelists.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/dashboard.be83f13e4369.css b/backend/staticfiles/admin/css/dashboard.be83f13e4369.css
deleted file mode 100644
index 91d6efde8..000000000
--- a/backend/staticfiles/admin/css/dashboard.be83f13e4369.css
+++ /dev/null
@@ -1,26 +0,0 @@
-/* DASHBOARD */
-
-.dashboard .module table th {
- width: 100%;
-}
-
-.dashboard .module table td {
- white-space: nowrap;
-}
-
-.dashboard .module table td a {
- display: block;
- padding-right: .6em;
-}
-
-/* RECENT ACTIONS MODULE */
-
-.module ul.actionlist {
- margin-left: 0;
-}
-
-ul.actionlist li {
- list-style-type: none;
- overflow: hidden;
- text-overflow: ellipsis;
-}
diff --git a/backend/staticfiles/admin/css/dashboard.be83f13e4369.css.gz b/backend/staticfiles/admin/css/dashboard.be83f13e4369.css.gz
deleted file mode 100644
index 372fe7e75..000000000
Binary files a/backend/staticfiles/admin/css/dashboard.be83f13e4369.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/dashboard.css b/backend/staticfiles/admin/css/dashboard.css
deleted file mode 100644
index 91d6efde8..000000000
--- a/backend/staticfiles/admin/css/dashboard.css
+++ /dev/null
@@ -1,26 +0,0 @@
-/* DASHBOARD */
-
-.dashboard .module table th {
- width: 100%;
-}
-
-.dashboard .module table td {
- white-space: nowrap;
-}
-
-.dashboard .module table td a {
- display: block;
- padding-right: .6em;
-}
-
-/* RECENT ACTIONS MODULE */
-
-.module ul.actionlist {
- margin-left: 0;
-}
-
-ul.actionlist li {
- list-style-type: none;
- overflow: hidden;
- text-overflow: ellipsis;
-}
diff --git a/backend/staticfiles/admin/css/dashboard.css.gz b/backend/staticfiles/admin/css/dashboard.css.gz
deleted file mode 100644
index 372fe7e75..000000000
Binary files a/backend/staticfiles/admin/css/dashboard.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/fonts.168bab448fee.css b/backend/staticfiles/admin/css/fonts.168bab448fee.css
deleted file mode 100644
index 835513507..000000000
--- a/backend/staticfiles/admin/css/fonts.168bab448fee.css
+++ /dev/null
@@ -1,20 +0,0 @@
-@font-face {
- font-family: 'Roboto';
- src: url("../fonts/Roboto-Bold-webfont.50d75e48e0a3.woff");
- font-weight: 700;
- font-style: normal;
-}
-
-@font-face {
- font-family: 'Roboto';
- src: url("../fonts/Roboto-Regular-webfont.35b07eb2f871.woff");
- font-weight: 400;
- font-style: normal;
-}
-
-@font-face {
- font-family: 'Roboto';
- src: url("../fonts/Roboto-Light-webfont.c73eb1ceba33.woff");
- font-weight: 300;
- font-style: normal;
-}
diff --git a/backend/staticfiles/admin/css/fonts.168bab448fee.css.gz b/backend/staticfiles/admin/css/fonts.168bab448fee.css.gz
deleted file mode 100644
index 1cb6be85d..000000000
Binary files a/backend/staticfiles/admin/css/fonts.168bab448fee.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/fonts.css b/backend/staticfiles/admin/css/fonts.css
deleted file mode 100644
index c837e017c..000000000
--- a/backend/staticfiles/admin/css/fonts.css
+++ /dev/null
@@ -1,20 +0,0 @@
-@font-face {
- font-family: 'Roboto';
- src: url('../fonts/Roboto-Bold-webfont.woff');
- font-weight: 700;
- font-style: normal;
-}
-
-@font-face {
- font-family: 'Roboto';
- src: url('../fonts/Roboto-Regular-webfont.woff');
- font-weight: 400;
- font-style: normal;
-}
-
-@font-face {
- font-family: 'Roboto';
- src: url('../fonts/Roboto-Light-webfont.woff');
- font-weight: 300;
- font-style: normal;
-}
diff --git a/backend/staticfiles/admin/css/fonts.css.gz b/backend/staticfiles/admin/css/fonts.css.gz
deleted file mode 100644
index 834a4582f..000000000
Binary files a/backend/staticfiles/admin/css/fonts.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/forms.1d89ec6432f5.css b/backend/staticfiles/admin/css/forms.1d89ec6432f5.css
deleted file mode 100644
index 02f9ac0f2..000000000
--- a/backend/staticfiles/admin/css/forms.1d89ec6432f5.css
+++ /dev/null
@@ -1,523 +0,0 @@
-@import url("widgets.694d845b2cb1.css");
-
-/* FORM ROWS */
-
-.form-row {
- overflow: hidden;
- padding: 10px;
- font-size: 13px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-.form-row img, .form-row input {
- vertical-align: middle;
-}
-
-.form-row label input[type="checkbox"] {
- margin-top: 0;
- vertical-align: 0;
-}
-
-form .form-row p {
- padding-left: 0;
-}
-
-/* FORM LABELS */
-
-label {
- font-weight: normal;
- color: var(--body-quiet-color);
- font-size: 13px;
-}
-
-.required label, label.required {
- font-weight: bold;
- color: var(--body-fg);
-}
-
-/* RADIO BUTTONS */
-
-form ul.radiolist li {
- list-style-type: none;
-}
-
-form ul.radiolist label {
- float: none;
- display: inline;
-}
-
-form ul.radiolist input[type="radio"] {
- margin: -2px 4px 0 0;
- padding: 0;
-}
-
-form ul.inline {
- margin-left: 0;
- padding: 0;
-}
-
-form ul.inline li {
- float: left;
- padding-right: 7px;
-}
-
-/* ALIGNED FIELDSETS */
-
-.aligned label {
- display: block;
- padding: 4px 10px 0 0;
- float: left;
- width: 160px;
- word-wrap: break-word;
- line-height: 1;
-}
-
-.aligned label:not(.vCheckboxLabel):after {
- content: '';
- display: inline-block;
- vertical-align: middle;
- height: 26px;
-}
-
-.aligned label + p, .aligned label + div.help, .aligned label + div.readonly {
- padding: 6px 0;
- margin-top: 0;
- margin-bottom: 0;
- margin-left: 170px;
-}
-
-.aligned ul label {
- display: inline;
- float: none;
- width: auto;
-}
-
-.aligned .form-row input {
- margin-bottom: 0;
-}
-
-.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
- width: 350px;
-}
-
-form .aligned ul {
- margin-left: 160px;
- padding-left: 10px;
-}
-
-form .aligned ul.radiolist {
- display: inline-block;
- margin: 0;
- padding: 0;
-}
-
-form .aligned p.help,
-form .aligned div.help {
- clear: left;
- margin-top: 0;
- margin-left: 160px;
- padding-left: 10px;
-}
-
-form .aligned label + p.help,
-form .aligned label + div.help {
- margin-left: 0;
- padding-left: 0;
-}
-
-form .aligned p.help:last-child,
-form .aligned div.help:last-child {
- margin-bottom: 0;
- padding-bottom: 0;
-}
-
-form .aligned input + p.help,
-form .aligned textarea + p.help,
-form .aligned select + p.help,
-form .aligned input + div.help,
-form .aligned textarea + div.help,
-form .aligned select + div.help {
- margin-left: 160px;
- padding-left: 10px;
-}
-
-form .aligned ul li {
- list-style: none;
-}
-
-form .aligned table p {
- margin-left: 0;
- padding-left: 0;
-}
-
-.aligned .vCheckboxLabel {
- float: none;
- width: auto;
- display: inline-block;
- vertical-align: -3px;
- padding: 0 0 5px 5px;
-}
-
-.aligned .vCheckboxLabel + p.help,
-.aligned .vCheckboxLabel + div.help {
- margin-top: -4px;
-}
-
-.colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
- width: 610px;
-}
-
-.checkbox-row p.help,
-.checkbox-row div.help {
- margin-left: 0;
- padding-left: 0;
-}
-
-fieldset .fieldBox {
- float: left;
- margin-right: 20px;
-}
-
-/* WIDE FIELDSETS */
-
-.wide label {
- width: 200px;
-}
-
-form .wide p,
-form .wide input + p.help,
-form .wide input + div.help {
- margin-left: 200px;
-}
-
-form .wide p.help,
-form .wide div.help {
- padding-left: 38px;
-}
-
-form div.help ul {
- padding-left: 0;
- margin-left: 0;
-}
-
-.colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField {
- width: 450px;
-}
-
-/* COLLAPSED FIELDSETS */
-
-fieldset.collapsed * {
- display: none;
-}
-
-fieldset.collapsed h2, fieldset.collapsed {
- display: block;
-}
-
-fieldset.collapsed {
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- overflow: hidden;
-}
-
-fieldset.collapsed h2 {
- background: var(--darkened-bg);
- color: var(--body-quiet-color);
-}
-
-fieldset .collapse-toggle {
- color: var(--header-link-color);
-}
-
-fieldset.collapsed .collapse-toggle {
- background: transparent;
- display: inline;
- color: var(--link-fg);
-}
-
-/* MONOSPACE TEXTAREAS */
-
-fieldset.monospace textarea {
- font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
-}
-
-/* SUBMIT ROW */
-
-.submit-row {
- padding: 12px 14px;
- margin: 0 0 20px;
- background: var(--darkened-bg);
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- text-align: right;
- overflow: hidden;
-}
-
-body.popup .submit-row {
- overflow: auto;
-}
-
-.submit-row input {
- height: 35px;
- line-height: 15px;
- margin: 0 0 0 5px;
-}
-
-.submit-row input.default {
- margin: 0 0 0 8px;
- text-transform: uppercase;
-}
-
-.submit-row p {
- margin: 0.3em;
-}
-
-.submit-row p.deletelink-box {
- float: left;
- margin: 0;
-}
-
-.submit-row a.deletelink {
- display: block;
- background: var(--delete-button-bg);
- border-radius: 4px;
- padding: 10px 15px;
- height: 15px;
- line-height: 15px;
- color: var(--button-fg);
-}
-
-.submit-row a.closelink {
- display: inline-block;
- background: var(--close-button-bg);
- border-radius: 4px;
- padding: 10px 15px;
- height: 15px;
- line-height: 15px;
- margin: 0 0 0 5px;
- color: var(--button-fg);
-}
-
-.submit-row a.deletelink:focus,
-.submit-row a.deletelink:hover,
-.submit-row a.deletelink:active {
- background: var(--delete-button-hover-bg);
-}
-
-.submit-row a.closelink:focus,
-.submit-row a.closelink:hover,
-.submit-row a.closelink:active {
- background: var(--close-button-hover-bg);
-}
-
-/* CUSTOM FORM FIELDS */
-
-.vSelectMultipleField {
- vertical-align: top;
-}
-
-.vCheckboxField {
- border: none;
-}
-
-.vDateField, .vTimeField {
- margin-right: 2px;
- margin-bottom: 4px;
-}
-
-.vDateField {
- min-width: 6.85em;
-}
-
-.vTimeField {
- min-width: 4.7em;
-}
-
-.vURLField {
- width: 30em;
-}
-
-.vLargeTextField, .vXMLLargeTextField {
- width: 48em;
-}
-
-.flatpages-flatpage #id_content {
- height: 40.2em;
-}
-
-.module table .vPositiveSmallIntegerField {
- width: 2.2em;
-}
-
-.vTextField, .vUUIDField {
- width: 20em;
-}
-
-.vIntegerField {
- width: 5em;
-}
-
-.vBigIntegerField {
- width: 10em;
-}
-
-.vForeignKeyRawIdAdminField {
- width: 5em;
-}
-
-/* INLINES */
-
-.inline-group {
- padding: 0;
- margin: 0 0 30px;
-}
-
-.inline-group thead th {
- padding: 8px 10px;
-}
-
-.inline-group .aligned label {
- width: 160px;
-}
-
-.inline-related {
- position: relative;
-}
-
-.inline-related h3 {
- margin: 0;
- color: var(--body-quiet-color);
- padding: 5px;
- font-size: 13px;
- background: var(--darkened-bg);
- border-top: 1px solid var(--hairline-color);
- border-bottom: 1px solid var(--hairline-color);
-}
-
-.inline-related h3 span.delete {
- float: right;
-}
-
-.inline-related h3 span.delete label {
- margin-left: 2px;
- font-size: 11px;
-}
-
-.inline-related fieldset {
- margin: 0;
- background: var(--body-bg);
- border: none;
- width: 100%;
-}
-
-.inline-related fieldset.module h3 {
- margin: 0;
- padding: 2px 5px 3px 5px;
- font-size: 11px;
- text-align: left;
- font-weight: bold;
- background: #bcd;
- color: var(--body-bg);
-}
-
-.inline-group .tabular fieldset.module {
- border: none;
-}
-
-.inline-related.tabular fieldset.module table {
- width: 100%;
- overflow-x: scroll;
-}
-
-.last-related fieldset {
- border: none;
-}
-
-.inline-group .tabular tr.has_original td {
- padding-top: 2em;
-}
-
-.inline-group .tabular tr td.original {
- padding: 2px 0 0 0;
- width: 0;
- _position: relative;
-}
-
-.inline-group .tabular th.original {
- width: 0px;
- padding: 0;
-}
-
-.inline-group .tabular td.original p {
- position: absolute;
- left: 0;
- height: 1.1em;
- padding: 2px 9px;
- overflow: hidden;
- font-size: 9px;
- font-weight: bold;
- color: var(--body-quiet-color);
- _width: 700px;
-}
-
-.inline-group ul.tools {
- padding: 0;
- margin: 0;
- list-style: none;
-}
-
-.inline-group ul.tools li {
- display: inline;
- padding: 0 5px;
-}
-
-.inline-group div.add-row,
-.inline-group .tabular tr.add-row td {
- color: var(--body-quiet-color);
- background: var(--darkened-bg);
- padding: 8px 10px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-.inline-group .tabular tr.add-row td {
- padding: 8px 10px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-.inline-group ul.tools a.add,
-.inline-group div.add-row a,
-.inline-group .tabular tr.add-row td a {
- background: url("../img/icon-addlink.d519b3bab011.svg") 0 1px no-repeat;
- padding-left: 16px;
- font-size: 12px;
-}
-
-.empty-form {
- display: none;
-}
-
-/* RELATED FIELD ADD ONE / LOOKUP */
-
-.related-lookup {
- margin-left: 5px;
- display: inline-block;
- vertical-align: middle;
- background-repeat: no-repeat;
- background-size: 14px;
-}
-
-.related-lookup {
- width: 16px;
- height: 16px;
- background-image: url("../img/search.7cf54ff789c6.svg");
-}
-
-form .related-widget-wrapper ul {
- display: inline-block;
- margin-left: 0;
- padding-left: 0;
-}
-
-.clearable-file-input input {
- margin-top: 0;
-}
diff --git a/backend/staticfiles/admin/css/forms.1d89ec6432f5.css.gz b/backend/staticfiles/admin/css/forms.1d89ec6432f5.css.gz
deleted file mode 100644
index c7a45be1a..000000000
Binary files a/backend/staticfiles/admin/css/forms.1d89ec6432f5.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/forms.css b/backend/staticfiles/admin/css/forms.css
deleted file mode 100644
index 89b227017..000000000
--- a/backend/staticfiles/admin/css/forms.css
+++ /dev/null
@@ -1,523 +0,0 @@
-@import url('widgets.css');
-
-/* FORM ROWS */
-
-.form-row {
- overflow: hidden;
- padding: 10px;
- font-size: 13px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-.form-row img, .form-row input {
- vertical-align: middle;
-}
-
-.form-row label input[type="checkbox"] {
- margin-top: 0;
- vertical-align: 0;
-}
-
-form .form-row p {
- padding-left: 0;
-}
-
-/* FORM LABELS */
-
-label {
- font-weight: normal;
- color: var(--body-quiet-color);
- font-size: 13px;
-}
-
-.required label, label.required {
- font-weight: bold;
- color: var(--body-fg);
-}
-
-/* RADIO BUTTONS */
-
-form ul.radiolist li {
- list-style-type: none;
-}
-
-form ul.radiolist label {
- float: none;
- display: inline;
-}
-
-form ul.radiolist input[type="radio"] {
- margin: -2px 4px 0 0;
- padding: 0;
-}
-
-form ul.inline {
- margin-left: 0;
- padding: 0;
-}
-
-form ul.inline li {
- float: left;
- padding-right: 7px;
-}
-
-/* ALIGNED FIELDSETS */
-
-.aligned label {
- display: block;
- padding: 4px 10px 0 0;
- float: left;
- width: 160px;
- word-wrap: break-word;
- line-height: 1;
-}
-
-.aligned label:not(.vCheckboxLabel):after {
- content: '';
- display: inline-block;
- vertical-align: middle;
- height: 26px;
-}
-
-.aligned label + p, .aligned label + div.help, .aligned label + div.readonly {
- padding: 6px 0;
- margin-top: 0;
- margin-bottom: 0;
- margin-left: 170px;
-}
-
-.aligned ul label {
- display: inline;
- float: none;
- width: auto;
-}
-
-.aligned .form-row input {
- margin-bottom: 0;
-}
-
-.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
- width: 350px;
-}
-
-form .aligned ul {
- margin-left: 160px;
- padding-left: 10px;
-}
-
-form .aligned ul.radiolist {
- display: inline-block;
- margin: 0;
- padding: 0;
-}
-
-form .aligned p.help,
-form .aligned div.help {
- clear: left;
- margin-top: 0;
- margin-left: 160px;
- padding-left: 10px;
-}
-
-form .aligned label + p.help,
-form .aligned label + div.help {
- margin-left: 0;
- padding-left: 0;
-}
-
-form .aligned p.help:last-child,
-form .aligned div.help:last-child {
- margin-bottom: 0;
- padding-bottom: 0;
-}
-
-form .aligned input + p.help,
-form .aligned textarea + p.help,
-form .aligned select + p.help,
-form .aligned input + div.help,
-form .aligned textarea + div.help,
-form .aligned select + div.help {
- margin-left: 160px;
- padding-left: 10px;
-}
-
-form .aligned ul li {
- list-style: none;
-}
-
-form .aligned table p {
- margin-left: 0;
- padding-left: 0;
-}
-
-.aligned .vCheckboxLabel {
- float: none;
- width: auto;
- display: inline-block;
- vertical-align: -3px;
- padding: 0 0 5px 5px;
-}
-
-.aligned .vCheckboxLabel + p.help,
-.aligned .vCheckboxLabel + div.help {
- margin-top: -4px;
-}
-
-.colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
- width: 610px;
-}
-
-.checkbox-row p.help,
-.checkbox-row div.help {
- margin-left: 0;
- padding-left: 0;
-}
-
-fieldset .fieldBox {
- float: left;
- margin-right: 20px;
-}
-
-/* WIDE FIELDSETS */
-
-.wide label {
- width: 200px;
-}
-
-form .wide p,
-form .wide input + p.help,
-form .wide input + div.help {
- margin-left: 200px;
-}
-
-form .wide p.help,
-form .wide div.help {
- padding-left: 38px;
-}
-
-form div.help ul {
- padding-left: 0;
- margin-left: 0;
-}
-
-.colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField {
- width: 450px;
-}
-
-/* COLLAPSED FIELDSETS */
-
-fieldset.collapsed * {
- display: none;
-}
-
-fieldset.collapsed h2, fieldset.collapsed {
- display: block;
-}
-
-fieldset.collapsed {
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- overflow: hidden;
-}
-
-fieldset.collapsed h2 {
- background: var(--darkened-bg);
- color: var(--body-quiet-color);
-}
-
-fieldset .collapse-toggle {
- color: var(--header-link-color);
-}
-
-fieldset.collapsed .collapse-toggle {
- background: transparent;
- display: inline;
- color: var(--link-fg);
-}
-
-/* MONOSPACE TEXTAREAS */
-
-fieldset.monospace textarea {
- font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
-}
-
-/* SUBMIT ROW */
-
-.submit-row {
- padding: 12px 14px;
- margin: 0 0 20px;
- background: var(--darkened-bg);
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- text-align: right;
- overflow: hidden;
-}
-
-body.popup .submit-row {
- overflow: auto;
-}
-
-.submit-row input {
- height: 35px;
- line-height: 15px;
- margin: 0 0 0 5px;
-}
-
-.submit-row input.default {
- margin: 0 0 0 8px;
- text-transform: uppercase;
-}
-
-.submit-row p {
- margin: 0.3em;
-}
-
-.submit-row p.deletelink-box {
- float: left;
- margin: 0;
-}
-
-.submit-row a.deletelink {
- display: block;
- background: var(--delete-button-bg);
- border-radius: 4px;
- padding: 10px 15px;
- height: 15px;
- line-height: 15px;
- color: var(--button-fg);
-}
-
-.submit-row a.closelink {
- display: inline-block;
- background: var(--close-button-bg);
- border-radius: 4px;
- padding: 10px 15px;
- height: 15px;
- line-height: 15px;
- margin: 0 0 0 5px;
- color: var(--button-fg);
-}
-
-.submit-row a.deletelink:focus,
-.submit-row a.deletelink:hover,
-.submit-row a.deletelink:active {
- background: var(--delete-button-hover-bg);
-}
-
-.submit-row a.closelink:focus,
-.submit-row a.closelink:hover,
-.submit-row a.closelink:active {
- background: var(--close-button-hover-bg);
-}
-
-/* CUSTOM FORM FIELDS */
-
-.vSelectMultipleField {
- vertical-align: top;
-}
-
-.vCheckboxField {
- border: none;
-}
-
-.vDateField, .vTimeField {
- margin-right: 2px;
- margin-bottom: 4px;
-}
-
-.vDateField {
- min-width: 6.85em;
-}
-
-.vTimeField {
- min-width: 4.7em;
-}
-
-.vURLField {
- width: 30em;
-}
-
-.vLargeTextField, .vXMLLargeTextField {
- width: 48em;
-}
-
-.flatpages-flatpage #id_content {
- height: 40.2em;
-}
-
-.module table .vPositiveSmallIntegerField {
- width: 2.2em;
-}
-
-.vTextField, .vUUIDField {
- width: 20em;
-}
-
-.vIntegerField {
- width: 5em;
-}
-
-.vBigIntegerField {
- width: 10em;
-}
-
-.vForeignKeyRawIdAdminField {
- width: 5em;
-}
-
-/* INLINES */
-
-.inline-group {
- padding: 0;
- margin: 0 0 30px;
-}
-
-.inline-group thead th {
- padding: 8px 10px;
-}
-
-.inline-group .aligned label {
- width: 160px;
-}
-
-.inline-related {
- position: relative;
-}
-
-.inline-related h3 {
- margin: 0;
- color: var(--body-quiet-color);
- padding: 5px;
- font-size: 13px;
- background: var(--darkened-bg);
- border-top: 1px solid var(--hairline-color);
- border-bottom: 1px solid var(--hairline-color);
-}
-
-.inline-related h3 span.delete {
- float: right;
-}
-
-.inline-related h3 span.delete label {
- margin-left: 2px;
- font-size: 11px;
-}
-
-.inline-related fieldset {
- margin: 0;
- background: var(--body-bg);
- border: none;
- width: 100%;
-}
-
-.inline-related fieldset.module h3 {
- margin: 0;
- padding: 2px 5px 3px 5px;
- font-size: 11px;
- text-align: left;
- font-weight: bold;
- background: #bcd;
- color: var(--body-bg);
-}
-
-.inline-group .tabular fieldset.module {
- border: none;
-}
-
-.inline-related.tabular fieldset.module table {
- width: 100%;
- overflow-x: scroll;
-}
-
-.last-related fieldset {
- border: none;
-}
-
-.inline-group .tabular tr.has_original td {
- padding-top: 2em;
-}
-
-.inline-group .tabular tr td.original {
- padding: 2px 0 0 0;
- width: 0;
- _position: relative;
-}
-
-.inline-group .tabular th.original {
- width: 0px;
- padding: 0;
-}
-
-.inline-group .tabular td.original p {
- position: absolute;
- left: 0;
- height: 1.1em;
- padding: 2px 9px;
- overflow: hidden;
- font-size: 9px;
- font-weight: bold;
- color: var(--body-quiet-color);
- _width: 700px;
-}
-
-.inline-group ul.tools {
- padding: 0;
- margin: 0;
- list-style: none;
-}
-
-.inline-group ul.tools li {
- display: inline;
- padding: 0 5px;
-}
-
-.inline-group div.add-row,
-.inline-group .tabular tr.add-row td {
- color: var(--body-quiet-color);
- background: var(--darkened-bg);
- padding: 8px 10px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-.inline-group .tabular tr.add-row td {
- padding: 8px 10px;
- border-bottom: 1px solid var(--hairline-color);
-}
-
-.inline-group ul.tools a.add,
-.inline-group div.add-row a,
-.inline-group .tabular tr.add-row td a {
- background: url(../img/icon-addlink.svg) 0 1px no-repeat;
- padding-left: 16px;
- font-size: 12px;
-}
-
-.empty-form {
- display: none;
-}
-
-/* RELATED FIELD ADD ONE / LOOKUP */
-
-.related-lookup {
- margin-left: 5px;
- display: inline-block;
- vertical-align: middle;
- background-repeat: no-repeat;
- background-size: 14px;
-}
-
-.related-lookup {
- width: 16px;
- height: 16px;
- background-image: url(../img/search.svg);
-}
-
-form .related-widget-wrapper ul {
- display: inline-block;
- margin-left: 0;
- padding-left: 0;
-}
-
-.clearable-file-input input {
- margin-top: 0;
-}
diff --git a/backend/staticfiles/admin/css/forms.css.gz b/backend/staticfiles/admin/css/forms.css.gz
deleted file mode 100644
index a76a095e8..000000000
Binary files a/backend/staticfiles/admin/css/forms.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/login.c35adf41bb6e.css b/backend/staticfiles/admin/css/login.c35adf41bb6e.css
deleted file mode 100644
index 10d9d2204..000000000
--- a/backend/staticfiles/admin/css/login.c35adf41bb6e.css
+++ /dev/null
@@ -1,60 +0,0 @@
-/* LOGIN FORM */
-
-.login {
- background: var(--darkened-bg);
- height: auto;
-}
-
-.login #header {
- height: auto;
- padding: 15px 16px;
- justify-content: center;
-}
-
-.login #header h1 {
- font-size: 18px;
-}
-
-.login #header h1 a {
- color: var(--header-link-color);
-}
-
-.login #content {
- padding: 20px 20px 0;
-}
-
-.login #container {
- background: var(--body-bg);
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- overflow: hidden;
- width: 28em;
- min-width: 300px;
- margin: 100px auto;
- height: auto;
-}
-
-.login .form-row {
- padding: 4px 0;
-}
-
-.login .form-row label {
- display: block;
- line-height: 2em;
-}
-
-.login .form-row #id_username, .login .form-row #id_password {
- padding: 8px;
- width: 100%;
- box-sizing: border-box;
-}
-
-.login .submit-row {
- padding: 1em 0 0 0;
- margin: 0;
- text-align: center;
-}
-
-.login .password-reset-link {
- text-align: center;
-}
diff --git a/backend/staticfiles/admin/css/login.c35adf41bb6e.css.gz b/backend/staticfiles/admin/css/login.c35adf41bb6e.css.gz
deleted file mode 100644
index 5ffa5aac6..000000000
Binary files a/backend/staticfiles/admin/css/login.c35adf41bb6e.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/login.css b/backend/staticfiles/admin/css/login.css
deleted file mode 100644
index 10d9d2204..000000000
--- a/backend/staticfiles/admin/css/login.css
+++ /dev/null
@@ -1,60 +0,0 @@
-/* LOGIN FORM */
-
-.login {
- background: var(--darkened-bg);
- height: auto;
-}
-
-.login #header {
- height: auto;
- padding: 15px 16px;
- justify-content: center;
-}
-
-.login #header h1 {
- font-size: 18px;
-}
-
-.login #header h1 a {
- color: var(--header-link-color);
-}
-
-.login #content {
- padding: 20px 20px 0;
-}
-
-.login #container {
- background: var(--body-bg);
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- overflow: hidden;
- width: 28em;
- min-width: 300px;
- margin: 100px auto;
- height: auto;
-}
-
-.login .form-row {
- padding: 4px 0;
-}
-
-.login .form-row label {
- display: block;
- line-height: 2em;
-}
-
-.login .form-row #id_username, .login .form-row #id_password {
- padding: 8px;
- width: 100%;
- box-sizing: border-box;
-}
-
-.login .submit-row {
- padding: 1em 0 0 0;
- margin: 0;
- text-align: center;
-}
-
-.login .password-reset-link {
- text-align: center;
-}
diff --git a/backend/staticfiles/admin/css/login.css.gz b/backend/staticfiles/admin/css/login.css.gz
deleted file mode 100644
index 5ffa5aac6..000000000
Binary files a/backend/staticfiles/admin/css/login.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/nav_sidebar.0fd434145f4d.css b/backend/staticfiles/admin/css/nav_sidebar.0fd434145f4d.css
deleted file mode 100644
index f3c2fd804..000000000
--- a/backend/staticfiles/admin/css/nav_sidebar.0fd434145f4d.css
+++ /dev/null
@@ -1,120 +0,0 @@
-.sticky {
- position: sticky;
- top: 0;
- max-height: 100vh;
-}
-
-.toggle-nav-sidebar {
- z-index: 20;
- left: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- flex: 0 0 23px;
- width: 23px;
- border: 0;
- border-right: 1px solid var(--hairline-color);
- background-color: var(--body-bg);
- cursor: pointer;
- font-size: 20px;
- color: var(--link-fg);
- padding: 0;
-}
-
-[dir="rtl"] .toggle-nav-sidebar {
- border-left: 1px solid var(--hairline-color);
- border-right: 0;
-}
-
-.toggle-nav-sidebar:hover,
-.toggle-nav-sidebar:focus {
- background-color: var(--darkened-bg);
-}
-
-#nav-sidebar {
- z-index: 15;
- flex: 0 0 275px;
- left: -276px;
- margin-left: -276px;
- border-top: 1px solid transparent;
- border-right: 1px solid var(--hairline-color);
- background-color: var(--body-bg);
- overflow: auto;
-}
-
-[dir="rtl"] #nav-sidebar {
- border-left: 1px solid var(--hairline-color);
- border-right: 0;
- left: 0;
- margin-left: 0;
- right: -276px;
- margin-right: -276px;
-}
-
-.toggle-nav-sidebar::before {
- content: '\00BB';
-}
-
-.main.shifted .toggle-nav-sidebar::before {
- content: '\00AB';
-}
-
-.main.shifted > #nav-sidebar {
- left: 24px;
- margin-left: 0;
-}
-
-[dir="rtl"] .main.shifted > #nav-sidebar {
- left: 0;
- right: 24px;
- margin-right: 0;
-}
-
-#nav-sidebar .module th {
- width: 100%;
- overflow-wrap: anywhere;
-}
-
-#nav-sidebar .module th,
-#nav-sidebar .module caption {
- padding-left: 16px;
-}
-
-#nav-sidebar .module td {
- white-space: nowrap;
-}
-
-[dir="rtl"] #nav-sidebar .module th,
-[dir="rtl"] #nav-sidebar .module caption {
- padding-left: 8px;
- padding-right: 16px;
-}
-
-#nav-sidebar .current-app .section:link,
-#nav-sidebar .current-app .section:visited {
- color: var(--header-color);
- font-weight: bold;
-}
-
-#nav-sidebar .current-model {
- background: var(--selected-row);
-}
-
-.main > #nav-sidebar + .content {
- max-width: calc(100% - 23px);
-}
-
-.main.shifted > #nav-sidebar + .content {
- max-width: calc(100% - 299px);
-}
-
-@media (max-width: 767px) {
- #nav-sidebar, #toggle-nav-sidebar {
- display: none;
- }
-
- .main > #nav-sidebar + .content,
- .main.shifted > #nav-sidebar + .content {
- max-width: 100%;
- }
-}
diff --git a/backend/staticfiles/admin/css/nav_sidebar.0fd434145f4d.css.gz b/backend/staticfiles/admin/css/nav_sidebar.0fd434145f4d.css.gz
deleted file mode 100644
index 9642e376e..000000000
Binary files a/backend/staticfiles/admin/css/nav_sidebar.0fd434145f4d.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/nav_sidebar.css b/backend/staticfiles/admin/css/nav_sidebar.css
deleted file mode 100644
index f3c2fd804..000000000
--- a/backend/staticfiles/admin/css/nav_sidebar.css
+++ /dev/null
@@ -1,120 +0,0 @@
-.sticky {
- position: sticky;
- top: 0;
- max-height: 100vh;
-}
-
-.toggle-nav-sidebar {
- z-index: 20;
- left: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- flex: 0 0 23px;
- width: 23px;
- border: 0;
- border-right: 1px solid var(--hairline-color);
- background-color: var(--body-bg);
- cursor: pointer;
- font-size: 20px;
- color: var(--link-fg);
- padding: 0;
-}
-
-[dir="rtl"] .toggle-nav-sidebar {
- border-left: 1px solid var(--hairline-color);
- border-right: 0;
-}
-
-.toggle-nav-sidebar:hover,
-.toggle-nav-sidebar:focus {
- background-color: var(--darkened-bg);
-}
-
-#nav-sidebar {
- z-index: 15;
- flex: 0 0 275px;
- left: -276px;
- margin-left: -276px;
- border-top: 1px solid transparent;
- border-right: 1px solid var(--hairline-color);
- background-color: var(--body-bg);
- overflow: auto;
-}
-
-[dir="rtl"] #nav-sidebar {
- border-left: 1px solid var(--hairline-color);
- border-right: 0;
- left: 0;
- margin-left: 0;
- right: -276px;
- margin-right: -276px;
-}
-
-.toggle-nav-sidebar::before {
- content: '\00BB';
-}
-
-.main.shifted .toggle-nav-sidebar::before {
- content: '\00AB';
-}
-
-.main.shifted > #nav-sidebar {
- left: 24px;
- margin-left: 0;
-}
-
-[dir="rtl"] .main.shifted > #nav-sidebar {
- left: 0;
- right: 24px;
- margin-right: 0;
-}
-
-#nav-sidebar .module th {
- width: 100%;
- overflow-wrap: anywhere;
-}
-
-#nav-sidebar .module th,
-#nav-sidebar .module caption {
- padding-left: 16px;
-}
-
-#nav-sidebar .module td {
- white-space: nowrap;
-}
-
-[dir="rtl"] #nav-sidebar .module th,
-[dir="rtl"] #nav-sidebar .module caption {
- padding-left: 8px;
- padding-right: 16px;
-}
-
-#nav-sidebar .current-app .section:link,
-#nav-sidebar .current-app .section:visited {
- color: var(--header-color);
- font-weight: bold;
-}
-
-#nav-sidebar .current-model {
- background: var(--selected-row);
-}
-
-.main > #nav-sidebar + .content {
- max-width: calc(100% - 23px);
-}
-
-.main.shifted > #nav-sidebar + .content {
- max-width: calc(100% - 299px);
-}
-
-@media (max-width: 767px) {
- #nav-sidebar, #toggle-nav-sidebar {
- display: none;
- }
-
- .main > #nav-sidebar + .content,
- .main.shifted > #nav-sidebar + .content {
- max-width: 100%;
- }
-}
diff --git a/backend/staticfiles/admin/css/nav_sidebar.css.gz b/backend/staticfiles/admin/css/nav_sidebar.css.gz
deleted file mode 100644
index 9642e376e..000000000
Binary files a/backend/staticfiles/admin/css/nav_sidebar.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/responsive.b128bdf0edef.css b/backend/staticfiles/admin/css/responsive.b128bdf0edef.css
deleted file mode 100644
index 8c6dd810c..000000000
--- a/backend/staticfiles/admin/css/responsive.b128bdf0edef.css
+++ /dev/null
@@ -1,1003 +0,0 @@
-/* Tablets */
-
-input[type="submit"], button {
- -webkit-appearance: none;
- appearance: none;
-}
-
-@media (max-width: 1024px) {
- /* Basic */
-
- html {
- -webkit-text-size-adjust: 100%;
- }
-
- td, th {
- padding: 10px;
- font-size: 14px;
- }
-
- .small {
- font-size: 12px;
- }
-
- /* Layout */
-
- #container {
- min-width: 0;
- }
-
- #content {
- padding: 20px 30px 30px;
- }
-
- div.breadcrumbs {
- padding: 10px 30px;
- }
-
- /* Header */
-
- #header {
- flex-direction: column;
- padding: 15px 30px;
- justify-content: flex-start;
- }
-
- #branding h1 {
- margin: 0 0 8px;
- font-size: 20px;
- line-height: 1.2;
- }
-
- #user-tools {
- margin: 0;
- font-weight: 400;
- line-height: 1.85;
- text-align: left;
- }
-
- #user-tools a {
- display: inline-block;
- line-height: 1.4;
- }
-
- /* Dashboard */
-
- .dashboard #content {
- width: auto;
- }
-
- #content-related {
- margin-right: -290px;
- }
-
- .colSM #content-related {
- margin-left: -290px;
- }
-
- .colMS {
- margin-right: 290px;
- }
-
- .colSM {
- margin-left: 290px;
- }
-
- .dashboard .module table td a {
- padding-right: 0;
- }
-
- td .changelink, td .addlink {
- font-size: 13px;
- }
-
- /* Changelist */
-
- #toolbar {
- border: none;
- padding: 15px;
- }
-
- #changelist-search > div {
- display: flex;
- flex-wrap: nowrap;
- max-width: 480px;
- }
-
- #changelist-search label {
- line-height: 22px;
- }
-
- #toolbar form #searchbar {
- flex: 1 0 auto;
- width: 0;
- height: 22px;
- margin: 0 10px 0 6px;
- }
-
- #toolbar form input[type=submit] {
- flex: 0 1 auto;
- }
-
- #changelist-search .quiet {
- width: 0;
- flex: 1 0 auto;
- margin: 5px 0 0 25px;
- }
-
- #changelist .actions {
- display: flex;
- flex-wrap: wrap;
- padding: 15px 0;
- }
-
- #changelist .actions.selected {
- border: none;
- }
-
- #changelist .actions label {
- display: flex;
- }
-
- #changelist .actions select {
- background: var(--body-bg);
- }
-
- #changelist .actions .button {
- min-width: 48px;
- margin: 0 10px;
- }
-
- #changelist .actions span.all,
- #changelist .actions span.clear,
- #changelist .actions span.question,
- #changelist .actions span.action-counter {
- font-size: 11px;
- margin: 0 10px 0 0;
- }
-
- #changelist-filter {
- flex-basis: 200px;
- }
-
- .change-list .filtered .results,
- .change-list .filtered .paginator,
- .filtered #toolbar,
- .filtered .actions,
-
- #changelist .paginator {
- border-top-color: var(--hairline-color); /* XXX Is this used at all? */
- }
-
- #changelist .results + .paginator {
- border-top: none;
- }
-
- /* Forms */
-
- label {
- font-size: 14px;
- }
-
- .form-row input[type=text],
- .form-row input[type=password],
- .form-row input[type=email],
- .form-row input[type=url],
- .form-row input[type=tel],
- .form-row input[type=number],
- .form-row textarea,
- .form-row select,
- .form-row .vTextField {
- box-sizing: border-box;
- margin: 0;
- padding: 6px 8px;
- min-height: 36px;
- font-size: 14px;
- }
-
- .form-row select {
- height: 36px;
- }
-
- .form-row select[multiple] {
- height: auto;
- min-height: 0;
- }
-
- fieldset .fieldBox {
- float: none;
- margin: 0 -10px;
- padding: 0 10px;
- }
-
- fieldset .fieldBox + .fieldBox {
- margin-top: 10px;
- padding-top: 10px;
- border-top: 1px solid var(--hairline-color);
- }
-
- textarea {
- max-width: 100%;
- max-height: 120px;
- }
-
- .aligned label {
- padding-top: 6px;
- }
-
- .aligned .related-lookup,
- .aligned .datetimeshortcuts,
- .aligned .related-lookup + strong {
- align-self: center;
- margin-left: 15px;
- }
-
- form .aligned ul.radiolist {
- margin-left: 2px;
- }
-
- /* Related widget */
-
- .related-widget-wrapper {
- float: none;
- }
-
- .related-widget-wrapper-link + .selector {
- max-width: calc(100% - 30px);
- margin-right: 15px;
- }
-
- select + .related-widget-wrapper-link,
- .related-widget-wrapper-link + .related-widget-wrapper-link {
- margin-left: 10px;
- }
-
- /* Selector */
-
- .selector {
- display: flex;
- width: 100%;
- }
-
- .selector .selector-filter {
- display: flex;
- align-items: center;
- }
-
- .selector .selector-filter label {
- margin: 0 8px 0 0;
- }
-
- .selector .selector-filter input {
- width: auto;
- min-height: 0;
- flex: 1 1;
- }
-
- .selector-available, .selector-chosen {
- width: auto;
- flex: 1 1;
- display: flex;
- flex-direction: column;
- }
-
- .selector select {
- width: 100%;
- flex: 1 0 auto;
- margin-bottom: 5px;
- }
-
- .selector ul.selector-chooser {
- width: 26px;
- height: 52px;
- padding: 2px 0;
- margin: auto 15px;
- border-radius: 20px;
- transform: translateY(-10px);
- }
-
- .selector-add, .selector-remove {
- width: 20px;
- height: 20px;
- background-size: 20px auto;
- }
-
- .selector-add {
- background-position: 0 -120px;
- }
-
- .selector-remove {
- background-position: 0 -80px;
- }
-
- a.selector-chooseall, a.selector-clearall {
- align-self: center;
- }
-
- .stacked {
- flex-direction: column;
- max-width: 480px;
- }
-
- .stacked > * {
- flex: 0 1 auto;
- }
-
- .stacked select {
- margin-bottom: 0;
- }
-
- .stacked .selector-available, .stacked .selector-chosen {
- width: auto;
- }
-
- .stacked ul.selector-chooser {
- width: 52px;
- height: 26px;
- padding: 0 2px;
- margin: 15px auto;
- transform: none;
- }
-
- .stacked .selector-chooser li {
- padding: 3px;
- }
-
- .stacked .selector-add, .stacked .selector-remove {
- background-size: 20px auto;
- }
-
- .stacked .selector-add {
- background-position: 0 -40px;
- }
-
- .stacked .active.selector-add {
- background-position: 0 -40px;
- }
-
- .active.selector-add:focus, .active.selector-add:hover {
- background-position: 0 -140px;
- }
-
- .stacked .active.selector-add:focus, .stacked .active.selector-add:hover {
- background-position: 0 -60px;
- }
-
- .stacked .selector-remove {
- background-position: 0 0;
- }
-
- .stacked .active.selector-remove {
- background-position: 0 0;
- }
-
- .active.selector-remove:focus, .active.selector-remove:hover {
- background-position: 0 -100px;
- }
-
- .stacked .active.selector-remove:focus, .stacked .active.selector-remove:hover {
- background-position: 0 -20px;
- }
-
- .help-tooltip, .selector .help-icon {
- display: none;
- }
-
- form .form-row p.datetime {
- width: 100%;
- }
-
- .datetime input {
- width: 50%;
- max-width: 120px;
- }
-
- .datetime span {
- font-size: 13px;
- }
-
- .datetime .timezonewarning {
- display: block;
- font-size: 11px;
- color: var(--body-quiet-color);
- }
-
- .datetimeshortcuts {
- color: var(--border-color); /* XXX Redundant, .datetime span also sets #ccc */
- }
-
- .form-row .datetime input.vDateField, .form-row .datetime input.vTimeField {
- width: 75%;
- }
-
- .inline-group {
- overflow: auto;
- }
-
- /* Messages */
-
- ul.messagelist li {
- padding-left: 55px;
- background-position: 30px 12px;
- }
-
- ul.messagelist li.error {
- background-position: 30px 12px;
- }
-
- ul.messagelist li.warning {
- background-position: 30px 14px;
- }
-
- /* Login */
-
- .login #header {
- padding: 15px 20px;
- }
-
- .login #branding h1 {
- margin: 0;
- }
-
- /* GIS */
-
- div.olMap {
- max-width: calc(100vw - 30px);
- max-height: 300px;
- }
-
- .olMap + .clear_features {
- display: block;
- margin-top: 10px;
- }
-
- /* Docs */
-
- .module table.xfull {
- width: 100%;
- }
-
- pre.literal-block {
- overflow: auto;
- }
-}
-
-/* Mobile */
-
-@media (max-width: 767px) {
- /* Layout */
-
- #header, #content, #footer {
- padding: 15px;
- }
-
- #footer:empty {
- padding: 0;
- }
-
- div.breadcrumbs {
- padding: 10px 15px;
- }
-
- /* Dashboard */
-
- .colMS, .colSM {
- margin: 0;
- }
-
- #content-related, .colSM #content-related {
- width: 100%;
- margin: 0;
- }
-
- #content-related .module {
- margin-bottom: 0;
- }
-
- #content-related .module h2 {
- padding: 10px 15px;
- font-size: 16px;
- }
-
- /* Changelist */
-
- #changelist {
- align-items: stretch;
- flex-direction: column;
- }
-
- #toolbar {
- padding: 10px;
- }
-
- #changelist-filter {
- margin-left: 0;
- }
-
- #changelist .actions label {
- flex: 1 1;
- }
-
- #changelist .actions select {
- flex: 1 0;
- width: 100%;
- }
-
- #changelist .actions span {
- flex: 1 0 100%;
- }
-
- #changelist-filter {
- position: static;
- width: auto;
- margin-top: 30px;
- }
-
- .object-tools {
- float: none;
- margin: 0 0 15px;
- padding: 0;
- overflow: hidden;
- }
-
- .object-tools li {
- height: auto;
- margin-left: 0;
- }
-
- .object-tools li + li {
- margin-left: 15px;
- }
-
- /* Forms */
-
- .form-row {
- padding: 15px 0;
- }
-
- .aligned .form-row,
- .aligned .form-row > div {
- display: flex;
- flex-wrap: wrap;
- max-width: 100vw;
- }
-
- .aligned .form-row > div {
- width: calc(100vw - 30px);
- }
-
- textarea {
- max-width: none;
- }
-
- .vURLField {
- width: auto;
- }
-
- fieldset .fieldBox + .fieldBox {
- margin-top: 15px;
- padding-top: 15px;
- }
-
- fieldset.collapsed .form-row {
- display: none;
- }
-
- .aligned label {
- width: 100%;
- padding: 0 0 10px;
- }
-
- .aligned label:after {
- max-height: 0;
- }
-
- .aligned .form-row input,
- .aligned .form-row select,
- .aligned .form-row textarea {
- flex: 1 1 auto;
- max-width: 100%;
- }
-
- .aligned .checkbox-row {
- align-items: center;
- }
-
- .aligned .checkbox-row input {
- flex: 0 1 auto;
- margin: 0;
- }
-
- .aligned .vCheckboxLabel {
- flex: 1 0;
- padding: 1px 0 0 5px;
- }
-
- .aligned label + p,
- .aligned label + div.help,
- .aligned label + div.readonly {
- padding: 0;
- margin-left: 0;
- }
-
- .aligned p.file-upload {
- margin-left: 0;
- font-size: 13px;
- }
-
- span.clearable-file-input {
- margin-left: 15px;
- }
-
- span.clearable-file-input label {
- font-size: 13px;
- padding-bottom: 0;
- }
-
- .aligned .timezonewarning {
- flex: 1 0 100%;
- margin-top: 5px;
- }
-
- form .aligned .form-row div.help {
- width: 100%;
- margin: 5px 0 0;
- padding: 0;
- }
-
- form .aligned ul {
- margin-left: 0;
- padding-left: 0;
- }
-
- form .aligned ul.radiolist {
- margin-right: 15px;
- margin-bottom: -3px;
- }
-
- form .aligned ul.radiolist:not(.inline) li + li {
- margin-top: 5px;
- }
-
- /* Related widget */
-
- .related-widget-wrapper {
- width: 100%;
- display: flex;
- align-items: flex-start;
- }
-
- .related-widget-wrapper .selector {
- order: 1;
- }
-
- .related-widget-wrapper > a {
- order: 2;
- }
-
- .related-widget-wrapper .radiolist ~ a {
- align-self: flex-end;
- }
-
- .related-widget-wrapper > select ~ a {
- align-self: center;
- }
-
- select + .related-widget-wrapper-link,
- .related-widget-wrapper-link + .related-widget-wrapper-link {
- margin-left: 15px;
- }
-
- /* Selector */
-
- .selector {
- flex-direction: column;
- }
-
- .selector > * {
- float: none;
- }
-
- .selector-available, .selector-chosen {
- margin-bottom: 0;
- flex: 1 1 auto;
- }
-
- .selector select {
- max-height: 96px;
- }
-
- .selector ul.selector-chooser {
- display: block;
- float: none;
- width: 52px;
- height: 26px;
- padding: 0 2px;
- margin: 15px auto 20px;
- transform: none;
- }
-
- .selector ul.selector-chooser li {
- float: left;
- }
-
- .selector-remove {
- background-position: 0 0;
- }
-
- .active.selector-remove:focus, .active.selector-remove:hover {
- background-position: 0 -20px;
- }
-
- .selector-add {
- background-position: 0 -40px;
- }
-
- .active.selector-add:focus, .active.selector-add:hover {
- background-position: 0 -60px;
- }
-
- /* Inlines */
-
- .inline-group[data-inline-type="stacked"] .inline-related {
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- margin-top: 15px;
- overflow: auto;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related > * {
- box-sizing: border-box;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related .module {
- padding: 0 10px;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related .module .form-row {
- border-top: 1px solid var(--hairline-color);
- border-bottom: none;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related .module .form-row:first-child {
- border-top: none;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related h3 {
- padding: 10px;
- border-top-width: 0;
- border-bottom-width: 2px;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related h3 .inline_label {
- margin-right: auto;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related h3 span.delete {
- float: none;
- flex: 1 1 100%;
- margin-top: 5px;
- }
-
- .inline-group[data-inline-type="stacked"] .aligned .form-row > div:not([class]) {
- width: 100%;
- }
-
- .inline-group[data-inline-type="stacked"] .aligned label {
- width: 100%;
- }
-
- .inline-group[data-inline-type="stacked"] div.add-row {
- margin-top: 15px;
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- }
-
- .inline-group div.add-row,
- .inline-group .tabular tr.add-row td {
- padding: 0;
- }
-
- .inline-group div.add-row a,
- .inline-group .tabular tr.add-row td a {
- display: block;
- padding: 8px 10px 8px 26px;
- background-position: 8px 9px;
- }
-
- /* Submit row */
-
- .submit-row {
- padding: 10px 10px 0;
- margin: 0 0 15px;
- display: flex;
- flex-direction: column;
- }
-
- .submit-row > * {
- width: 100%;
- }
-
- .submit-row input, .submit-row input.default, .submit-row a, .submit-row a.closelink {
- float: none;
- margin: 0 0 10px;
- text-align: center;
- }
-
- .submit-row a.closelink {
- padding: 10px 0;
- }
-
- .submit-row p.deletelink-box {
- order: 4;
- }
-
- /* Messages */
-
- ul.messagelist li {
- padding-left: 40px;
- background-position: 15px 12px;
- }
-
- ul.messagelist li.error {
- background-position: 15px 12px;
- }
-
- ul.messagelist li.warning {
- background-position: 15px 14px;
- }
-
- /* Paginator */
-
- .paginator .this-page, .paginator a:link, .paginator a:visited {
- padding: 4px 10px;
- }
-
- /* Login */
-
- body.login {
- padding: 0 15px;
- }
-
- .login #container {
- width: auto;
- max-width: 480px;
- margin: 50px auto;
- }
-
- .login #header,
- .login #content {
- padding: 15px;
- }
-
- .login #content-main {
- float: none;
- }
-
- .login .form-row {
- padding: 0;
- }
-
- .login .form-row + .form-row {
- margin-top: 15px;
- }
-
- .login .form-row label {
- margin: 0 0 5px;
- line-height: 1.2;
- }
-
- .login .submit-row {
- padding: 15px 0 0;
- }
-
- .login br {
- display: none;
- }
-
- .login .submit-row input {
- margin: 0;
- text-transform: uppercase;
- }
-
- .errornote {
- margin: 0 0 20px;
- padding: 8px 12px;
- font-size: 13px;
- }
-
- /* Calendar and clock */
-
- .calendarbox, .clockbox {
- position: fixed !important;
- top: 50% !important;
- left: 50% !important;
- transform: translate(-50%, -50%);
- margin: 0;
- border: none;
- overflow: visible;
- }
-
- .calendarbox:before, .clockbox:before {
- content: '';
- position: fixed;
- top: 50%;
- left: 50%;
- width: 100vw;
- height: 100vh;
- background: rgba(0, 0, 0, 0.75);
- transform: translate(-50%, -50%);
- }
-
- .calendarbox > *, .clockbox > * {
- position: relative;
- z-index: 1;
- }
-
- .calendarbox > div:first-child {
- z-index: 2;
- }
-
- .calendarbox .calendar, .clockbox h2 {
- border-radius: 4px 4px 0 0;
- overflow: hidden;
- }
-
- .calendarbox .calendar-cancel, .clockbox .calendar-cancel {
- border-radius: 0 0 4px 4px;
- overflow: hidden;
- }
-
- .calendar-shortcuts {
- padding: 10px 0;
- font-size: 12px;
- line-height: 12px;
- }
-
- .calendar-shortcuts a {
- margin: 0 4px;
- }
-
- .timelist a {
- background: var(--body-bg);
- padding: 4px;
- }
-
- .calendar-cancel {
- padding: 8px 10px;
- }
-
- .clockbox h2 {
- padding: 8px 15px;
- }
-
- .calendar caption {
- padding: 10px;
- }
-
- .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
- z-index: 1;
- top: 10px;
- }
-
- /* History */
-
- table#change-history tbody th, table#change-history tbody td {
- font-size: 13px;
- word-break: break-word;
- }
-
- table#change-history tbody th {
- width: auto;
- }
-
- /* Docs */
-
- table.model tbody th, table.model tbody td {
- font-size: 13px;
- word-break: break-word;
- }
-}
diff --git a/backend/staticfiles/admin/css/responsive.b128bdf0edef.css.gz b/backend/staticfiles/admin/css/responsive.b128bdf0edef.css.gz
deleted file mode 100644
index 2102288e2..000000000
Binary files a/backend/staticfiles/admin/css/responsive.b128bdf0edef.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/responsive.css b/backend/staticfiles/admin/css/responsive.css
deleted file mode 100644
index 8c6dd810c..000000000
--- a/backend/staticfiles/admin/css/responsive.css
+++ /dev/null
@@ -1,1003 +0,0 @@
-/* Tablets */
-
-input[type="submit"], button {
- -webkit-appearance: none;
- appearance: none;
-}
-
-@media (max-width: 1024px) {
- /* Basic */
-
- html {
- -webkit-text-size-adjust: 100%;
- }
-
- td, th {
- padding: 10px;
- font-size: 14px;
- }
-
- .small {
- font-size: 12px;
- }
-
- /* Layout */
-
- #container {
- min-width: 0;
- }
-
- #content {
- padding: 20px 30px 30px;
- }
-
- div.breadcrumbs {
- padding: 10px 30px;
- }
-
- /* Header */
-
- #header {
- flex-direction: column;
- padding: 15px 30px;
- justify-content: flex-start;
- }
-
- #branding h1 {
- margin: 0 0 8px;
- font-size: 20px;
- line-height: 1.2;
- }
-
- #user-tools {
- margin: 0;
- font-weight: 400;
- line-height: 1.85;
- text-align: left;
- }
-
- #user-tools a {
- display: inline-block;
- line-height: 1.4;
- }
-
- /* Dashboard */
-
- .dashboard #content {
- width: auto;
- }
-
- #content-related {
- margin-right: -290px;
- }
-
- .colSM #content-related {
- margin-left: -290px;
- }
-
- .colMS {
- margin-right: 290px;
- }
-
- .colSM {
- margin-left: 290px;
- }
-
- .dashboard .module table td a {
- padding-right: 0;
- }
-
- td .changelink, td .addlink {
- font-size: 13px;
- }
-
- /* Changelist */
-
- #toolbar {
- border: none;
- padding: 15px;
- }
-
- #changelist-search > div {
- display: flex;
- flex-wrap: nowrap;
- max-width: 480px;
- }
-
- #changelist-search label {
- line-height: 22px;
- }
-
- #toolbar form #searchbar {
- flex: 1 0 auto;
- width: 0;
- height: 22px;
- margin: 0 10px 0 6px;
- }
-
- #toolbar form input[type=submit] {
- flex: 0 1 auto;
- }
-
- #changelist-search .quiet {
- width: 0;
- flex: 1 0 auto;
- margin: 5px 0 0 25px;
- }
-
- #changelist .actions {
- display: flex;
- flex-wrap: wrap;
- padding: 15px 0;
- }
-
- #changelist .actions.selected {
- border: none;
- }
-
- #changelist .actions label {
- display: flex;
- }
-
- #changelist .actions select {
- background: var(--body-bg);
- }
-
- #changelist .actions .button {
- min-width: 48px;
- margin: 0 10px;
- }
-
- #changelist .actions span.all,
- #changelist .actions span.clear,
- #changelist .actions span.question,
- #changelist .actions span.action-counter {
- font-size: 11px;
- margin: 0 10px 0 0;
- }
-
- #changelist-filter {
- flex-basis: 200px;
- }
-
- .change-list .filtered .results,
- .change-list .filtered .paginator,
- .filtered #toolbar,
- .filtered .actions,
-
- #changelist .paginator {
- border-top-color: var(--hairline-color); /* XXX Is this used at all? */
- }
-
- #changelist .results + .paginator {
- border-top: none;
- }
-
- /* Forms */
-
- label {
- font-size: 14px;
- }
-
- .form-row input[type=text],
- .form-row input[type=password],
- .form-row input[type=email],
- .form-row input[type=url],
- .form-row input[type=tel],
- .form-row input[type=number],
- .form-row textarea,
- .form-row select,
- .form-row .vTextField {
- box-sizing: border-box;
- margin: 0;
- padding: 6px 8px;
- min-height: 36px;
- font-size: 14px;
- }
-
- .form-row select {
- height: 36px;
- }
-
- .form-row select[multiple] {
- height: auto;
- min-height: 0;
- }
-
- fieldset .fieldBox {
- float: none;
- margin: 0 -10px;
- padding: 0 10px;
- }
-
- fieldset .fieldBox + .fieldBox {
- margin-top: 10px;
- padding-top: 10px;
- border-top: 1px solid var(--hairline-color);
- }
-
- textarea {
- max-width: 100%;
- max-height: 120px;
- }
-
- .aligned label {
- padding-top: 6px;
- }
-
- .aligned .related-lookup,
- .aligned .datetimeshortcuts,
- .aligned .related-lookup + strong {
- align-self: center;
- margin-left: 15px;
- }
-
- form .aligned ul.radiolist {
- margin-left: 2px;
- }
-
- /* Related widget */
-
- .related-widget-wrapper {
- float: none;
- }
-
- .related-widget-wrapper-link + .selector {
- max-width: calc(100% - 30px);
- margin-right: 15px;
- }
-
- select + .related-widget-wrapper-link,
- .related-widget-wrapper-link + .related-widget-wrapper-link {
- margin-left: 10px;
- }
-
- /* Selector */
-
- .selector {
- display: flex;
- width: 100%;
- }
-
- .selector .selector-filter {
- display: flex;
- align-items: center;
- }
-
- .selector .selector-filter label {
- margin: 0 8px 0 0;
- }
-
- .selector .selector-filter input {
- width: auto;
- min-height: 0;
- flex: 1 1;
- }
-
- .selector-available, .selector-chosen {
- width: auto;
- flex: 1 1;
- display: flex;
- flex-direction: column;
- }
-
- .selector select {
- width: 100%;
- flex: 1 0 auto;
- margin-bottom: 5px;
- }
-
- .selector ul.selector-chooser {
- width: 26px;
- height: 52px;
- padding: 2px 0;
- margin: auto 15px;
- border-radius: 20px;
- transform: translateY(-10px);
- }
-
- .selector-add, .selector-remove {
- width: 20px;
- height: 20px;
- background-size: 20px auto;
- }
-
- .selector-add {
- background-position: 0 -120px;
- }
-
- .selector-remove {
- background-position: 0 -80px;
- }
-
- a.selector-chooseall, a.selector-clearall {
- align-self: center;
- }
-
- .stacked {
- flex-direction: column;
- max-width: 480px;
- }
-
- .stacked > * {
- flex: 0 1 auto;
- }
-
- .stacked select {
- margin-bottom: 0;
- }
-
- .stacked .selector-available, .stacked .selector-chosen {
- width: auto;
- }
-
- .stacked ul.selector-chooser {
- width: 52px;
- height: 26px;
- padding: 0 2px;
- margin: 15px auto;
- transform: none;
- }
-
- .stacked .selector-chooser li {
- padding: 3px;
- }
-
- .stacked .selector-add, .stacked .selector-remove {
- background-size: 20px auto;
- }
-
- .stacked .selector-add {
- background-position: 0 -40px;
- }
-
- .stacked .active.selector-add {
- background-position: 0 -40px;
- }
-
- .active.selector-add:focus, .active.selector-add:hover {
- background-position: 0 -140px;
- }
-
- .stacked .active.selector-add:focus, .stacked .active.selector-add:hover {
- background-position: 0 -60px;
- }
-
- .stacked .selector-remove {
- background-position: 0 0;
- }
-
- .stacked .active.selector-remove {
- background-position: 0 0;
- }
-
- .active.selector-remove:focus, .active.selector-remove:hover {
- background-position: 0 -100px;
- }
-
- .stacked .active.selector-remove:focus, .stacked .active.selector-remove:hover {
- background-position: 0 -20px;
- }
-
- .help-tooltip, .selector .help-icon {
- display: none;
- }
-
- form .form-row p.datetime {
- width: 100%;
- }
-
- .datetime input {
- width: 50%;
- max-width: 120px;
- }
-
- .datetime span {
- font-size: 13px;
- }
-
- .datetime .timezonewarning {
- display: block;
- font-size: 11px;
- color: var(--body-quiet-color);
- }
-
- .datetimeshortcuts {
- color: var(--border-color); /* XXX Redundant, .datetime span also sets #ccc */
- }
-
- .form-row .datetime input.vDateField, .form-row .datetime input.vTimeField {
- width: 75%;
- }
-
- .inline-group {
- overflow: auto;
- }
-
- /* Messages */
-
- ul.messagelist li {
- padding-left: 55px;
- background-position: 30px 12px;
- }
-
- ul.messagelist li.error {
- background-position: 30px 12px;
- }
-
- ul.messagelist li.warning {
- background-position: 30px 14px;
- }
-
- /* Login */
-
- .login #header {
- padding: 15px 20px;
- }
-
- .login #branding h1 {
- margin: 0;
- }
-
- /* GIS */
-
- div.olMap {
- max-width: calc(100vw - 30px);
- max-height: 300px;
- }
-
- .olMap + .clear_features {
- display: block;
- margin-top: 10px;
- }
-
- /* Docs */
-
- .module table.xfull {
- width: 100%;
- }
-
- pre.literal-block {
- overflow: auto;
- }
-}
-
-/* Mobile */
-
-@media (max-width: 767px) {
- /* Layout */
-
- #header, #content, #footer {
- padding: 15px;
- }
-
- #footer:empty {
- padding: 0;
- }
-
- div.breadcrumbs {
- padding: 10px 15px;
- }
-
- /* Dashboard */
-
- .colMS, .colSM {
- margin: 0;
- }
-
- #content-related, .colSM #content-related {
- width: 100%;
- margin: 0;
- }
-
- #content-related .module {
- margin-bottom: 0;
- }
-
- #content-related .module h2 {
- padding: 10px 15px;
- font-size: 16px;
- }
-
- /* Changelist */
-
- #changelist {
- align-items: stretch;
- flex-direction: column;
- }
-
- #toolbar {
- padding: 10px;
- }
-
- #changelist-filter {
- margin-left: 0;
- }
-
- #changelist .actions label {
- flex: 1 1;
- }
-
- #changelist .actions select {
- flex: 1 0;
- width: 100%;
- }
-
- #changelist .actions span {
- flex: 1 0 100%;
- }
-
- #changelist-filter {
- position: static;
- width: auto;
- margin-top: 30px;
- }
-
- .object-tools {
- float: none;
- margin: 0 0 15px;
- padding: 0;
- overflow: hidden;
- }
-
- .object-tools li {
- height: auto;
- margin-left: 0;
- }
-
- .object-tools li + li {
- margin-left: 15px;
- }
-
- /* Forms */
-
- .form-row {
- padding: 15px 0;
- }
-
- .aligned .form-row,
- .aligned .form-row > div {
- display: flex;
- flex-wrap: wrap;
- max-width: 100vw;
- }
-
- .aligned .form-row > div {
- width: calc(100vw - 30px);
- }
-
- textarea {
- max-width: none;
- }
-
- .vURLField {
- width: auto;
- }
-
- fieldset .fieldBox + .fieldBox {
- margin-top: 15px;
- padding-top: 15px;
- }
-
- fieldset.collapsed .form-row {
- display: none;
- }
-
- .aligned label {
- width: 100%;
- padding: 0 0 10px;
- }
-
- .aligned label:after {
- max-height: 0;
- }
-
- .aligned .form-row input,
- .aligned .form-row select,
- .aligned .form-row textarea {
- flex: 1 1 auto;
- max-width: 100%;
- }
-
- .aligned .checkbox-row {
- align-items: center;
- }
-
- .aligned .checkbox-row input {
- flex: 0 1 auto;
- margin: 0;
- }
-
- .aligned .vCheckboxLabel {
- flex: 1 0;
- padding: 1px 0 0 5px;
- }
-
- .aligned label + p,
- .aligned label + div.help,
- .aligned label + div.readonly {
- padding: 0;
- margin-left: 0;
- }
-
- .aligned p.file-upload {
- margin-left: 0;
- font-size: 13px;
- }
-
- span.clearable-file-input {
- margin-left: 15px;
- }
-
- span.clearable-file-input label {
- font-size: 13px;
- padding-bottom: 0;
- }
-
- .aligned .timezonewarning {
- flex: 1 0 100%;
- margin-top: 5px;
- }
-
- form .aligned .form-row div.help {
- width: 100%;
- margin: 5px 0 0;
- padding: 0;
- }
-
- form .aligned ul {
- margin-left: 0;
- padding-left: 0;
- }
-
- form .aligned ul.radiolist {
- margin-right: 15px;
- margin-bottom: -3px;
- }
-
- form .aligned ul.radiolist:not(.inline) li + li {
- margin-top: 5px;
- }
-
- /* Related widget */
-
- .related-widget-wrapper {
- width: 100%;
- display: flex;
- align-items: flex-start;
- }
-
- .related-widget-wrapper .selector {
- order: 1;
- }
-
- .related-widget-wrapper > a {
- order: 2;
- }
-
- .related-widget-wrapper .radiolist ~ a {
- align-self: flex-end;
- }
-
- .related-widget-wrapper > select ~ a {
- align-self: center;
- }
-
- select + .related-widget-wrapper-link,
- .related-widget-wrapper-link + .related-widget-wrapper-link {
- margin-left: 15px;
- }
-
- /* Selector */
-
- .selector {
- flex-direction: column;
- }
-
- .selector > * {
- float: none;
- }
-
- .selector-available, .selector-chosen {
- margin-bottom: 0;
- flex: 1 1 auto;
- }
-
- .selector select {
- max-height: 96px;
- }
-
- .selector ul.selector-chooser {
- display: block;
- float: none;
- width: 52px;
- height: 26px;
- padding: 0 2px;
- margin: 15px auto 20px;
- transform: none;
- }
-
- .selector ul.selector-chooser li {
- float: left;
- }
-
- .selector-remove {
- background-position: 0 0;
- }
-
- .active.selector-remove:focus, .active.selector-remove:hover {
- background-position: 0 -20px;
- }
-
- .selector-add {
- background-position: 0 -40px;
- }
-
- .active.selector-add:focus, .active.selector-add:hover {
- background-position: 0 -60px;
- }
-
- /* Inlines */
-
- .inline-group[data-inline-type="stacked"] .inline-related {
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- margin-top: 15px;
- overflow: auto;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related > * {
- box-sizing: border-box;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related .module {
- padding: 0 10px;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related .module .form-row {
- border-top: 1px solid var(--hairline-color);
- border-bottom: none;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related .module .form-row:first-child {
- border-top: none;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related h3 {
- padding: 10px;
- border-top-width: 0;
- border-bottom-width: 2px;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related h3 .inline_label {
- margin-right: auto;
- }
-
- .inline-group[data-inline-type="stacked"] .inline-related h3 span.delete {
- float: none;
- flex: 1 1 100%;
- margin-top: 5px;
- }
-
- .inline-group[data-inline-type="stacked"] .aligned .form-row > div:not([class]) {
- width: 100%;
- }
-
- .inline-group[data-inline-type="stacked"] .aligned label {
- width: 100%;
- }
-
- .inline-group[data-inline-type="stacked"] div.add-row {
- margin-top: 15px;
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- }
-
- .inline-group div.add-row,
- .inline-group .tabular tr.add-row td {
- padding: 0;
- }
-
- .inline-group div.add-row a,
- .inline-group .tabular tr.add-row td a {
- display: block;
- padding: 8px 10px 8px 26px;
- background-position: 8px 9px;
- }
-
- /* Submit row */
-
- .submit-row {
- padding: 10px 10px 0;
- margin: 0 0 15px;
- display: flex;
- flex-direction: column;
- }
-
- .submit-row > * {
- width: 100%;
- }
-
- .submit-row input, .submit-row input.default, .submit-row a, .submit-row a.closelink {
- float: none;
- margin: 0 0 10px;
- text-align: center;
- }
-
- .submit-row a.closelink {
- padding: 10px 0;
- }
-
- .submit-row p.deletelink-box {
- order: 4;
- }
-
- /* Messages */
-
- ul.messagelist li {
- padding-left: 40px;
- background-position: 15px 12px;
- }
-
- ul.messagelist li.error {
- background-position: 15px 12px;
- }
-
- ul.messagelist li.warning {
- background-position: 15px 14px;
- }
-
- /* Paginator */
-
- .paginator .this-page, .paginator a:link, .paginator a:visited {
- padding: 4px 10px;
- }
-
- /* Login */
-
- body.login {
- padding: 0 15px;
- }
-
- .login #container {
- width: auto;
- max-width: 480px;
- margin: 50px auto;
- }
-
- .login #header,
- .login #content {
- padding: 15px;
- }
-
- .login #content-main {
- float: none;
- }
-
- .login .form-row {
- padding: 0;
- }
-
- .login .form-row + .form-row {
- margin-top: 15px;
- }
-
- .login .form-row label {
- margin: 0 0 5px;
- line-height: 1.2;
- }
-
- .login .submit-row {
- padding: 15px 0 0;
- }
-
- .login br {
- display: none;
- }
-
- .login .submit-row input {
- margin: 0;
- text-transform: uppercase;
- }
-
- .errornote {
- margin: 0 0 20px;
- padding: 8px 12px;
- font-size: 13px;
- }
-
- /* Calendar and clock */
-
- .calendarbox, .clockbox {
- position: fixed !important;
- top: 50% !important;
- left: 50% !important;
- transform: translate(-50%, -50%);
- margin: 0;
- border: none;
- overflow: visible;
- }
-
- .calendarbox:before, .clockbox:before {
- content: '';
- position: fixed;
- top: 50%;
- left: 50%;
- width: 100vw;
- height: 100vh;
- background: rgba(0, 0, 0, 0.75);
- transform: translate(-50%, -50%);
- }
-
- .calendarbox > *, .clockbox > * {
- position: relative;
- z-index: 1;
- }
-
- .calendarbox > div:first-child {
- z-index: 2;
- }
-
- .calendarbox .calendar, .clockbox h2 {
- border-radius: 4px 4px 0 0;
- overflow: hidden;
- }
-
- .calendarbox .calendar-cancel, .clockbox .calendar-cancel {
- border-radius: 0 0 4px 4px;
- overflow: hidden;
- }
-
- .calendar-shortcuts {
- padding: 10px 0;
- font-size: 12px;
- line-height: 12px;
- }
-
- .calendar-shortcuts a {
- margin: 0 4px;
- }
-
- .timelist a {
- background: var(--body-bg);
- padding: 4px;
- }
-
- .calendar-cancel {
- padding: 8px 10px;
- }
-
- .clockbox h2 {
- padding: 8px 15px;
- }
-
- .calendar caption {
- padding: 10px;
- }
-
- .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
- z-index: 1;
- top: 10px;
- }
-
- /* History */
-
- table#change-history tbody th, table#change-history tbody td {
- font-size: 13px;
- word-break: break-word;
- }
-
- table#change-history tbody th {
- width: auto;
- }
-
- /* Docs */
-
- table.model tbody th, table.model tbody td {
- font-size: 13px;
- word-break: break-word;
- }
-}
diff --git a/backend/staticfiles/admin/css/responsive.css.gz b/backend/staticfiles/admin/css/responsive.css.gz
deleted file mode 100644
index 2102288e2..000000000
Binary files a/backend/staticfiles/admin/css/responsive.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/responsive_rtl.css b/backend/staticfiles/admin/css/responsive_rtl.css
deleted file mode 100644
index 66d3c2f9b..000000000
--- a/backend/staticfiles/admin/css/responsive_rtl.css
+++ /dev/null
@@ -1,80 +0,0 @@
-/* TABLETS */
-
-@media (max-width: 1024px) {
- [dir="rtl"] .colMS {
- margin-right: 0;
- }
-
- [dir="rtl"] #user-tools {
- text-align: right;
- }
-
- [dir="rtl"] #changelist .actions label {
- padding-left: 10px;
- padding-right: 0;
- }
-
- [dir="rtl"] #changelist .actions select {
- margin-left: 0;
- margin-right: 15px;
- }
-
- [dir="rtl"] .change-list .filtered .results,
- [dir="rtl"] .change-list .filtered .paginator,
- [dir="rtl"] .filtered #toolbar,
- [dir="rtl"] .filtered div.xfull,
- [dir="rtl"] .filtered .actions,
- [dir="rtl"] #changelist-filter {
- margin-left: 0;
- }
-
- [dir="rtl"] .inline-group ul.tools a.add,
- [dir="rtl"] .inline-group div.add-row a,
- [dir="rtl"] .inline-group .tabular tr.add-row td a {
- padding: 8px 26px 8px 10px;
- background-position: calc(100% - 8px) 9px;
- }
-
- [dir="rtl"] .related-widget-wrapper-link + .selector {
- margin-right: 0;
- margin-left: 15px;
- }
-
- [dir="rtl"] .selector .selector-filter label {
- margin-right: 0;
- margin-left: 8px;
- }
-
- [dir="rtl"] .object-tools li {
- float: right;
- }
-
- [dir="rtl"] .object-tools li + li {
- margin-left: 0;
- margin-right: 15px;
- }
-
- [dir="rtl"] .dashboard .module table td a {
- padding-left: 0;
- padding-right: 16px;
- }
-}
-
-/* MOBILE */
-
-@media (max-width: 767px) {
- [dir="rtl"] .aligned .related-lookup,
- [dir="rtl"] .aligned .datetimeshortcuts {
- margin-left: 0;
- margin-right: 15px;
- }
-
- [dir="rtl"] .aligned ul {
- margin-right: 0;
- }
-
- [dir="rtl"] #changelist-filter {
- margin-left: 0;
- margin-right: 0;
- }
-}
diff --git a/backend/staticfiles/admin/css/responsive_rtl.css.gz b/backend/staticfiles/admin/css/responsive_rtl.css.gz
deleted file mode 100644
index 79b16071d..000000000
Binary files a/backend/staticfiles/admin/css/responsive_rtl.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/responsive_rtl.e13ae754cceb.css b/backend/staticfiles/admin/css/responsive_rtl.e13ae754cceb.css
deleted file mode 100644
index 66d3c2f9b..000000000
--- a/backend/staticfiles/admin/css/responsive_rtl.e13ae754cceb.css
+++ /dev/null
@@ -1,80 +0,0 @@
-/* TABLETS */
-
-@media (max-width: 1024px) {
- [dir="rtl"] .colMS {
- margin-right: 0;
- }
-
- [dir="rtl"] #user-tools {
- text-align: right;
- }
-
- [dir="rtl"] #changelist .actions label {
- padding-left: 10px;
- padding-right: 0;
- }
-
- [dir="rtl"] #changelist .actions select {
- margin-left: 0;
- margin-right: 15px;
- }
-
- [dir="rtl"] .change-list .filtered .results,
- [dir="rtl"] .change-list .filtered .paginator,
- [dir="rtl"] .filtered #toolbar,
- [dir="rtl"] .filtered div.xfull,
- [dir="rtl"] .filtered .actions,
- [dir="rtl"] #changelist-filter {
- margin-left: 0;
- }
-
- [dir="rtl"] .inline-group ul.tools a.add,
- [dir="rtl"] .inline-group div.add-row a,
- [dir="rtl"] .inline-group .tabular tr.add-row td a {
- padding: 8px 26px 8px 10px;
- background-position: calc(100% - 8px) 9px;
- }
-
- [dir="rtl"] .related-widget-wrapper-link + .selector {
- margin-right: 0;
- margin-left: 15px;
- }
-
- [dir="rtl"] .selector .selector-filter label {
- margin-right: 0;
- margin-left: 8px;
- }
-
- [dir="rtl"] .object-tools li {
- float: right;
- }
-
- [dir="rtl"] .object-tools li + li {
- margin-left: 0;
- margin-right: 15px;
- }
-
- [dir="rtl"] .dashboard .module table td a {
- padding-left: 0;
- padding-right: 16px;
- }
-}
-
-/* MOBILE */
-
-@media (max-width: 767px) {
- [dir="rtl"] .aligned .related-lookup,
- [dir="rtl"] .aligned .datetimeshortcuts {
- margin-left: 0;
- margin-right: 15px;
- }
-
- [dir="rtl"] .aligned ul {
- margin-right: 0;
- }
-
- [dir="rtl"] #changelist-filter {
- margin-left: 0;
- margin-right: 0;
- }
-}
diff --git a/backend/staticfiles/admin/css/responsive_rtl.e13ae754cceb.css.gz b/backend/staticfiles/admin/css/responsive_rtl.e13ae754cceb.css.gz
deleted file mode 100644
index 79b16071d..000000000
Binary files a/backend/staticfiles/admin/css/responsive_rtl.e13ae754cceb.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/rtl.4bc23eb90919.css b/backend/staticfiles/admin/css/rtl.4bc23eb90919.css
deleted file mode 100644
index 0447f8938..000000000
--- a/backend/staticfiles/admin/css/rtl.4bc23eb90919.css
+++ /dev/null
@@ -1,227 +0,0 @@
-/* GLOBAL */
-
-th {
- text-align: right;
-}
-
-.module h2, .module caption {
- text-align: right;
-}
-
-.module ul, .module ol {
- margin-left: 0;
- margin-right: 1.5em;
-}
-
-.viewlink, .addlink, .changelink {
- padding-left: 0;
- padding-right: 16px;
- background-position: 100% 1px;
-}
-
-.deletelink {
- padding-left: 0;
- padding-right: 16px;
- background-position: 100% 1px;
-}
-
-.object-tools {
- float: left;
-}
-
-thead th:first-child,
-tfoot td:first-child {
- border-left: none;
-}
-
-/* LAYOUT */
-
-#user-tools {
- right: auto;
- left: 0;
- text-align: left;
-}
-
-div.breadcrumbs {
- text-align: right;
-}
-
-#content-main {
- float: right;
-}
-
-#content-related {
- float: left;
- margin-left: -300px;
- margin-right: auto;
-}
-
-.colMS {
- margin-left: 300px;
- margin-right: 0;
-}
-
-/* SORTABLE TABLES */
-
-table thead th.sorted .sortoptions {
- float: left;
-}
-
-thead th.sorted .text {
- padding-right: 0;
- padding-left: 42px;
-}
-
-/* dashboard styles */
-
-.dashboard .module table td a {
- padding-left: .6em;
- padding-right: 16px;
-}
-
-/* changelists styles */
-
-.change-list .filtered table {
- border-left: none;
- border-right: 0px none;
-}
-
-#changelist-filter {
- border-left: none;
- border-right: none;
- margin-left: 0;
- margin-right: 30px;
-}
-
-#changelist-filter li.selected {
- border-left: none;
- padding-left: 10px;
- margin-left: 0;
- border-right: 5px solid var(--hairline-color);
- padding-right: 10px;
- margin-right: -15px;
-}
-
-#changelist table tbody td:first-child, #changelist table tbody th:first-child {
- border-right: none;
- border-left: none;
-}
-
-/* FORMS */
-
-.aligned label {
- padding: 0 0 3px 1em;
- float: right;
-}
-
-.submit-row {
- text-align: left
-}
-
-.submit-row p.deletelink-box {
- float: right;
-}
-
-.submit-row input.default {
- margin-left: 0;
-}
-
-.vDateField, .vTimeField {
- margin-left: 2px;
-}
-
-.aligned .form-row input {
- margin-left: 5px;
-}
-
-form .aligned p.help, form .aligned div.help {
- clear: right;
-}
-
-form .aligned ul {
- margin-right: 163px;
- margin-left: 0;
-}
-
-form ul.inline li {
- float: right;
- padding-right: 0;
- padding-left: 7px;
-}
-
-input[type=submit].default, .submit-row input.default {
- float: left;
-}
-
-fieldset .fieldBox {
- float: right;
- margin-left: 20px;
- margin-right: 0;
-}
-
-.errorlist li {
- background-position: 100% 12px;
- padding: 0;
-}
-
-.errornote {
- background-position: 100% 12px;
- padding: 10px 12px;
-}
-
-/* WIDGETS */
-
-.calendarnav-previous {
- top: 0;
- left: auto;
- right: 10px;
-}
-
-.calendarnav-next {
- top: 0;
- right: auto;
- left: 10px;
-}
-
-.calendar caption, .calendarbox h2 {
- text-align: center;
-}
-
-.selector {
- float: right;
-}
-
-.selector .selector-filter {
- text-align: right;
-}
-
-.inline-deletelink {
- float: left;
-}
-
-form .form-row p.datetime {
- overflow: hidden;
-}
-
-.related-widget-wrapper {
- float: right;
-}
-
-/* MISC */
-
-.inline-related h2, .inline-group h2 {
- text-align: right
-}
-
-.inline-related h3 span.delete {
- padding-right: 20px;
- padding-left: inherit;
- left: 10px;
- right: inherit;
- float:left;
-}
-
-.inline-related h3 span.delete label {
- margin-left: inherit;
- margin-right: 2px;
-}
diff --git a/backend/staticfiles/admin/css/rtl.4bc23eb90919.css.gz b/backend/staticfiles/admin/css/rtl.4bc23eb90919.css.gz
deleted file mode 100644
index b73ee4ca1..000000000
Binary files a/backend/staticfiles/admin/css/rtl.4bc23eb90919.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/rtl.css b/backend/staticfiles/admin/css/rtl.css
deleted file mode 100644
index 0447f8938..000000000
--- a/backend/staticfiles/admin/css/rtl.css
+++ /dev/null
@@ -1,227 +0,0 @@
-/* GLOBAL */
-
-th {
- text-align: right;
-}
-
-.module h2, .module caption {
- text-align: right;
-}
-
-.module ul, .module ol {
- margin-left: 0;
- margin-right: 1.5em;
-}
-
-.viewlink, .addlink, .changelink {
- padding-left: 0;
- padding-right: 16px;
- background-position: 100% 1px;
-}
-
-.deletelink {
- padding-left: 0;
- padding-right: 16px;
- background-position: 100% 1px;
-}
-
-.object-tools {
- float: left;
-}
-
-thead th:first-child,
-tfoot td:first-child {
- border-left: none;
-}
-
-/* LAYOUT */
-
-#user-tools {
- right: auto;
- left: 0;
- text-align: left;
-}
-
-div.breadcrumbs {
- text-align: right;
-}
-
-#content-main {
- float: right;
-}
-
-#content-related {
- float: left;
- margin-left: -300px;
- margin-right: auto;
-}
-
-.colMS {
- margin-left: 300px;
- margin-right: 0;
-}
-
-/* SORTABLE TABLES */
-
-table thead th.sorted .sortoptions {
- float: left;
-}
-
-thead th.sorted .text {
- padding-right: 0;
- padding-left: 42px;
-}
-
-/* dashboard styles */
-
-.dashboard .module table td a {
- padding-left: .6em;
- padding-right: 16px;
-}
-
-/* changelists styles */
-
-.change-list .filtered table {
- border-left: none;
- border-right: 0px none;
-}
-
-#changelist-filter {
- border-left: none;
- border-right: none;
- margin-left: 0;
- margin-right: 30px;
-}
-
-#changelist-filter li.selected {
- border-left: none;
- padding-left: 10px;
- margin-left: 0;
- border-right: 5px solid var(--hairline-color);
- padding-right: 10px;
- margin-right: -15px;
-}
-
-#changelist table tbody td:first-child, #changelist table tbody th:first-child {
- border-right: none;
- border-left: none;
-}
-
-/* FORMS */
-
-.aligned label {
- padding: 0 0 3px 1em;
- float: right;
-}
-
-.submit-row {
- text-align: left
-}
-
-.submit-row p.deletelink-box {
- float: right;
-}
-
-.submit-row input.default {
- margin-left: 0;
-}
-
-.vDateField, .vTimeField {
- margin-left: 2px;
-}
-
-.aligned .form-row input {
- margin-left: 5px;
-}
-
-form .aligned p.help, form .aligned div.help {
- clear: right;
-}
-
-form .aligned ul {
- margin-right: 163px;
- margin-left: 0;
-}
-
-form ul.inline li {
- float: right;
- padding-right: 0;
- padding-left: 7px;
-}
-
-input[type=submit].default, .submit-row input.default {
- float: left;
-}
-
-fieldset .fieldBox {
- float: right;
- margin-left: 20px;
- margin-right: 0;
-}
-
-.errorlist li {
- background-position: 100% 12px;
- padding: 0;
-}
-
-.errornote {
- background-position: 100% 12px;
- padding: 10px 12px;
-}
-
-/* WIDGETS */
-
-.calendarnav-previous {
- top: 0;
- left: auto;
- right: 10px;
-}
-
-.calendarnav-next {
- top: 0;
- right: auto;
- left: 10px;
-}
-
-.calendar caption, .calendarbox h2 {
- text-align: center;
-}
-
-.selector {
- float: right;
-}
-
-.selector .selector-filter {
- text-align: right;
-}
-
-.inline-deletelink {
- float: left;
-}
-
-form .form-row p.datetime {
- overflow: hidden;
-}
-
-.related-widget-wrapper {
- float: right;
-}
-
-/* MISC */
-
-.inline-related h2, .inline-group h2 {
- text-align: right
-}
-
-.inline-related h3 span.delete {
- padding-right: 20px;
- padding-left: inherit;
- left: 10px;
- right: inherit;
- float:left;
-}
-
-.inline-related h3 span.delete label {
- margin-left: inherit;
- margin-right: 2px;
-}
diff --git a/backend/staticfiles/admin/css/rtl.css.gz b/backend/staticfiles/admin/css/rtl.css.gz
deleted file mode 100644
index b73ee4ca1..000000000
Binary files a/backend/staticfiles/admin/css/rtl.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.f94142512c91.md b/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.f94142512c91.md
deleted file mode 100644
index 8cb8a2b12..000000000
--- a/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.f94142512c91.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.f94142512c91.md.gz b/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.f94142512c91.md.gz
deleted file mode 100644
index 1b839219b..000000000
Binary files a/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.f94142512c91.md.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.md b/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.md
deleted file mode 100644
index 8cb8a2b12..000000000
--- a/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.md.gz b/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.md.gz
deleted file mode 100644
index 1b839219b..000000000
Binary files a/backend/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.md.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/vendor/select2/select2.a2194c262648.css b/backend/staticfiles/admin/css/vendor/select2/select2.a2194c262648.css
deleted file mode 100644
index 750b3207a..000000000
--- a/backend/staticfiles/admin/css/vendor/select2/select2.a2194c262648.css
+++ /dev/null
@@ -1,481 +0,0 @@
-.select2-container {
- box-sizing: border-box;
- display: inline-block;
- margin: 0;
- position: relative;
- vertical-align: middle; }
- .select2-container .select2-selection--single {
- box-sizing: border-box;
- cursor: pointer;
- display: block;
- height: 28px;
- user-select: none;
- -webkit-user-select: none; }
- .select2-container .select2-selection--single .select2-selection__rendered {
- display: block;
- padding-left: 8px;
- padding-right: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap; }
- .select2-container .select2-selection--single .select2-selection__clear {
- position: relative; }
- .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
- padding-right: 8px;
- padding-left: 20px; }
- .select2-container .select2-selection--multiple {
- box-sizing: border-box;
- cursor: pointer;
- display: block;
- min-height: 32px;
- user-select: none;
- -webkit-user-select: none; }
- .select2-container .select2-selection--multiple .select2-selection__rendered {
- display: inline-block;
- overflow: hidden;
- padding-left: 8px;
- text-overflow: ellipsis;
- white-space: nowrap; }
- .select2-container .select2-search--inline {
- float: left; }
- .select2-container .select2-search--inline .select2-search__field {
- box-sizing: border-box;
- border: none;
- font-size: 100%;
- margin-top: 5px;
- padding: 0; }
- .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
- -webkit-appearance: none; }
-
-.select2-dropdown {
- background-color: white;
- border: 1px solid #aaa;
- border-radius: 4px;
- box-sizing: border-box;
- display: block;
- position: absolute;
- left: -100000px;
- width: 100%;
- z-index: 1051; }
-
-.select2-results {
- display: block; }
-
-.select2-results__options {
- list-style: none;
- margin: 0;
- padding: 0; }
-
-.select2-results__option {
- padding: 6px;
- user-select: none;
- -webkit-user-select: none; }
- .select2-results__option[aria-selected] {
- cursor: pointer; }
-
-.select2-container--open .select2-dropdown {
- left: 0; }
-
-.select2-container--open .select2-dropdown--above {
- border-bottom: none;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0; }
-
-.select2-container--open .select2-dropdown--below {
- border-top: none;
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-.select2-search--dropdown {
- display: block;
- padding: 4px; }
- .select2-search--dropdown .select2-search__field {
- padding: 4px;
- width: 100%;
- box-sizing: border-box; }
- .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
- -webkit-appearance: none; }
- .select2-search--dropdown.select2-search--hide {
- display: none; }
-
-.select2-close-mask {
- border: 0;
- margin: 0;
- padding: 0;
- display: block;
- position: fixed;
- left: 0;
- top: 0;
- min-height: 100%;
- min-width: 100%;
- height: auto;
- width: auto;
- opacity: 0;
- z-index: 99;
- background-color: #fff;
- filter: alpha(opacity=0); }
-
-.select2-hidden-accessible {
- border: 0 !important;
- clip: rect(0 0 0 0) !important;
- -webkit-clip-path: inset(50%) !important;
- clip-path: inset(50%) !important;
- height: 1px !important;
- overflow: hidden !important;
- padding: 0 !important;
- position: absolute !important;
- width: 1px !important;
- white-space: nowrap !important; }
-
-.select2-container--default .select2-selection--single {
- background-color: #fff;
- border: 1px solid #aaa;
- border-radius: 4px; }
- .select2-container--default .select2-selection--single .select2-selection__rendered {
- color: #444;
- line-height: 28px; }
- .select2-container--default .select2-selection--single .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold; }
- .select2-container--default .select2-selection--single .select2-selection__placeholder {
- color: #999; }
- .select2-container--default .select2-selection--single .select2-selection__arrow {
- height: 26px;
- position: absolute;
- top: 1px;
- right: 1px;
- width: 20px; }
- .select2-container--default .select2-selection--single .select2-selection__arrow b {
- border-color: #888 transparent transparent transparent;
- border-style: solid;
- border-width: 5px 4px 0 4px;
- height: 0;
- left: 50%;
- margin-left: -4px;
- margin-top: -2px;
- position: absolute;
- top: 50%;
- width: 0; }
-
-.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
- float: left; }
-
-.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
- left: 1px;
- right: auto; }
-
-.select2-container--default.select2-container--disabled .select2-selection--single {
- background-color: #eee;
- cursor: default; }
- .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
- display: none; }
-
-.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
- border-color: transparent transparent #888 transparent;
- border-width: 0 4px 5px 4px; }
-
-.select2-container--default .select2-selection--multiple {
- background-color: white;
- border: 1px solid #aaa;
- border-radius: 4px;
- cursor: text; }
- .select2-container--default .select2-selection--multiple .select2-selection__rendered {
- box-sizing: border-box;
- list-style: none;
- margin: 0;
- padding: 0 5px;
- width: 100%; }
- .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
- list-style: none; }
- .select2-container--default .select2-selection--multiple .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold;
- margin-top: 5px;
- margin-right: 10px;
- padding: 1px; }
- .select2-container--default .select2-selection--multiple .select2-selection__choice {
- background-color: #e4e4e4;
- border: 1px solid #aaa;
- border-radius: 4px;
- cursor: default;
- float: left;
- margin-right: 5px;
- margin-top: 5px;
- padding: 0 5px; }
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
- color: #999;
- cursor: pointer;
- display: inline-block;
- font-weight: bold;
- margin-right: 2px; }
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
- color: #333; }
-
-.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
- float: right; }
-
-.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
- margin-left: 5px;
- margin-right: auto; }
-
-.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
- margin-left: 2px;
- margin-right: auto; }
-
-.select2-container--default.select2-container--focus .select2-selection--multiple {
- border: solid black 1px;
- outline: 0; }
-
-.select2-container--default.select2-container--disabled .select2-selection--multiple {
- background-color: #eee;
- cursor: default; }
-
-.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
- display: none; }
-
-.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0; }
-
-.select2-container--default .select2-search--dropdown .select2-search__field {
- border: 1px solid #aaa; }
-
-.select2-container--default .select2-search--inline .select2-search__field {
- background: transparent;
- border: none;
- outline: 0;
- box-shadow: none;
- -webkit-appearance: textfield; }
-
-.select2-container--default .select2-results > .select2-results__options {
- max-height: 200px;
- overflow-y: auto; }
-
-.select2-container--default .select2-results__option[role=group] {
- padding: 0; }
-
-.select2-container--default .select2-results__option[aria-disabled=true] {
- color: #999; }
-
-.select2-container--default .select2-results__option[aria-selected=true] {
- background-color: #ddd; }
-
-.select2-container--default .select2-results__option .select2-results__option {
- padding-left: 1em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
- padding-left: 0; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -1em;
- padding-left: 2em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -2em;
- padding-left: 3em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -3em;
- padding-left: 4em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -4em;
- padding-left: 5em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -5em;
- padding-left: 6em; }
-
-.select2-container--default .select2-results__option--highlighted[aria-selected] {
- background-color: #5897fb;
- color: white; }
-
-.select2-container--default .select2-results__group {
- cursor: default;
- display: block;
- padding: 6px; }
-
-.select2-container--classic .select2-selection--single {
- background-color: #f7f7f7;
- border: 1px solid #aaa;
- border-radius: 4px;
- outline: 0;
- background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
- background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
- background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
- .select2-container--classic .select2-selection--single:focus {
- border: 1px solid #5897fb; }
- .select2-container--classic .select2-selection--single .select2-selection__rendered {
- color: #444;
- line-height: 28px; }
- .select2-container--classic .select2-selection--single .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold;
- margin-right: 10px; }
- .select2-container--classic .select2-selection--single .select2-selection__placeholder {
- color: #999; }
- .select2-container--classic .select2-selection--single .select2-selection__arrow {
- background-color: #ddd;
- border: none;
- border-left: 1px solid #aaa;
- border-top-right-radius: 4px;
- border-bottom-right-radius: 4px;
- height: 26px;
- position: absolute;
- top: 1px;
- right: 1px;
- width: 20px;
- background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
- background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
- background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
- .select2-container--classic .select2-selection--single .select2-selection__arrow b {
- border-color: #888 transparent transparent transparent;
- border-style: solid;
- border-width: 5px 4px 0 4px;
- height: 0;
- left: 50%;
- margin-left: -4px;
- margin-top: -2px;
- position: absolute;
- top: 50%;
- width: 0; }
-
-.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
- float: left; }
-
-.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
- border: none;
- border-right: 1px solid #aaa;
- border-radius: 0;
- border-top-left-radius: 4px;
- border-bottom-left-radius: 4px;
- left: 1px;
- right: auto; }
-
-.select2-container--classic.select2-container--open .select2-selection--single {
- border: 1px solid #5897fb; }
- .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
- background: transparent;
- border: none; }
- .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
- border-color: transparent transparent #888 transparent;
- border-width: 0 4px 5px 4px; }
-
-.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
- border-top: none;
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
- background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
- background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
-
-.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
- border-bottom: none;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
- background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
- background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
- background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
-
-.select2-container--classic .select2-selection--multiple {
- background-color: white;
- border: 1px solid #aaa;
- border-radius: 4px;
- cursor: text;
- outline: 0; }
- .select2-container--classic .select2-selection--multiple:focus {
- border: 1px solid #5897fb; }
- .select2-container--classic .select2-selection--multiple .select2-selection__rendered {
- list-style: none;
- margin: 0;
- padding: 0 5px; }
- .select2-container--classic .select2-selection--multiple .select2-selection__clear {
- display: none; }
- .select2-container--classic .select2-selection--multiple .select2-selection__choice {
- background-color: #e4e4e4;
- border: 1px solid #aaa;
- border-radius: 4px;
- cursor: default;
- float: left;
- margin-right: 5px;
- margin-top: 5px;
- padding: 0 5px; }
- .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
- color: #888;
- cursor: pointer;
- display: inline-block;
- font-weight: bold;
- margin-right: 2px; }
- .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
- color: #555; }
-
-.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
- float: right;
- margin-left: 5px;
- margin-right: auto; }
-
-.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
- margin-left: 2px;
- margin-right: auto; }
-
-.select2-container--classic.select2-container--open .select2-selection--multiple {
- border: 1px solid #5897fb; }
-
-.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
- border-top: none;
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
- border-bottom: none;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0; }
-
-.select2-container--classic .select2-search--dropdown .select2-search__field {
- border: 1px solid #aaa;
- outline: 0; }
-
-.select2-container--classic .select2-search--inline .select2-search__field {
- outline: 0;
- box-shadow: none; }
-
-.select2-container--classic .select2-dropdown {
- background-color: white;
- border: 1px solid transparent; }
-
-.select2-container--classic .select2-dropdown--above {
- border-bottom: none; }
-
-.select2-container--classic .select2-dropdown--below {
- border-top: none; }
-
-.select2-container--classic .select2-results > .select2-results__options {
- max-height: 200px;
- overflow-y: auto; }
-
-.select2-container--classic .select2-results__option[role=group] {
- padding: 0; }
-
-.select2-container--classic .select2-results__option[aria-disabled=true] {
- color: grey; }
-
-.select2-container--classic .select2-results__option--highlighted[aria-selected] {
- background-color: #3875d7;
- color: white; }
-
-.select2-container--classic .select2-results__group {
- cursor: default;
- display: block;
- padding: 6px; }
-
-.select2-container--classic.select2-container--open .select2-dropdown {
- border-color: #5897fb; }
diff --git a/backend/staticfiles/admin/css/vendor/select2/select2.a2194c262648.css.gz b/backend/staticfiles/admin/css/vendor/select2/select2.a2194c262648.css.gz
deleted file mode 100644
index eb817022c..000000000
Binary files a/backend/staticfiles/admin/css/vendor/select2/select2.a2194c262648.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/vendor/select2/select2.css b/backend/staticfiles/admin/css/vendor/select2/select2.css
deleted file mode 100644
index 750b3207a..000000000
--- a/backend/staticfiles/admin/css/vendor/select2/select2.css
+++ /dev/null
@@ -1,481 +0,0 @@
-.select2-container {
- box-sizing: border-box;
- display: inline-block;
- margin: 0;
- position: relative;
- vertical-align: middle; }
- .select2-container .select2-selection--single {
- box-sizing: border-box;
- cursor: pointer;
- display: block;
- height: 28px;
- user-select: none;
- -webkit-user-select: none; }
- .select2-container .select2-selection--single .select2-selection__rendered {
- display: block;
- padding-left: 8px;
- padding-right: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap; }
- .select2-container .select2-selection--single .select2-selection__clear {
- position: relative; }
- .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
- padding-right: 8px;
- padding-left: 20px; }
- .select2-container .select2-selection--multiple {
- box-sizing: border-box;
- cursor: pointer;
- display: block;
- min-height: 32px;
- user-select: none;
- -webkit-user-select: none; }
- .select2-container .select2-selection--multiple .select2-selection__rendered {
- display: inline-block;
- overflow: hidden;
- padding-left: 8px;
- text-overflow: ellipsis;
- white-space: nowrap; }
- .select2-container .select2-search--inline {
- float: left; }
- .select2-container .select2-search--inline .select2-search__field {
- box-sizing: border-box;
- border: none;
- font-size: 100%;
- margin-top: 5px;
- padding: 0; }
- .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
- -webkit-appearance: none; }
-
-.select2-dropdown {
- background-color: white;
- border: 1px solid #aaa;
- border-radius: 4px;
- box-sizing: border-box;
- display: block;
- position: absolute;
- left: -100000px;
- width: 100%;
- z-index: 1051; }
-
-.select2-results {
- display: block; }
-
-.select2-results__options {
- list-style: none;
- margin: 0;
- padding: 0; }
-
-.select2-results__option {
- padding: 6px;
- user-select: none;
- -webkit-user-select: none; }
- .select2-results__option[aria-selected] {
- cursor: pointer; }
-
-.select2-container--open .select2-dropdown {
- left: 0; }
-
-.select2-container--open .select2-dropdown--above {
- border-bottom: none;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0; }
-
-.select2-container--open .select2-dropdown--below {
- border-top: none;
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-.select2-search--dropdown {
- display: block;
- padding: 4px; }
- .select2-search--dropdown .select2-search__field {
- padding: 4px;
- width: 100%;
- box-sizing: border-box; }
- .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
- -webkit-appearance: none; }
- .select2-search--dropdown.select2-search--hide {
- display: none; }
-
-.select2-close-mask {
- border: 0;
- margin: 0;
- padding: 0;
- display: block;
- position: fixed;
- left: 0;
- top: 0;
- min-height: 100%;
- min-width: 100%;
- height: auto;
- width: auto;
- opacity: 0;
- z-index: 99;
- background-color: #fff;
- filter: alpha(opacity=0); }
-
-.select2-hidden-accessible {
- border: 0 !important;
- clip: rect(0 0 0 0) !important;
- -webkit-clip-path: inset(50%) !important;
- clip-path: inset(50%) !important;
- height: 1px !important;
- overflow: hidden !important;
- padding: 0 !important;
- position: absolute !important;
- width: 1px !important;
- white-space: nowrap !important; }
-
-.select2-container--default .select2-selection--single {
- background-color: #fff;
- border: 1px solid #aaa;
- border-radius: 4px; }
- .select2-container--default .select2-selection--single .select2-selection__rendered {
- color: #444;
- line-height: 28px; }
- .select2-container--default .select2-selection--single .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold; }
- .select2-container--default .select2-selection--single .select2-selection__placeholder {
- color: #999; }
- .select2-container--default .select2-selection--single .select2-selection__arrow {
- height: 26px;
- position: absolute;
- top: 1px;
- right: 1px;
- width: 20px; }
- .select2-container--default .select2-selection--single .select2-selection__arrow b {
- border-color: #888 transparent transparent transparent;
- border-style: solid;
- border-width: 5px 4px 0 4px;
- height: 0;
- left: 50%;
- margin-left: -4px;
- margin-top: -2px;
- position: absolute;
- top: 50%;
- width: 0; }
-
-.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
- float: left; }
-
-.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
- left: 1px;
- right: auto; }
-
-.select2-container--default.select2-container--disabled .select2-selection--single {
- background-color: #eee;
- cursor: default; }
- .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
- display: none; }
-
-.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
- border-color: transparent transparent #888 transparent;
- border-width: 0 4px 5px 4px; }
-
-.select2-container--default .select2-selection--multiple {
- background-color: white;
- border: 1px solid #aaa;
- border-radius: 4px;
- cursor: text; }
- .select2-container--default .select2-selection--multiple .select2-selection__rendered {
- box-sizing: border-box;
- list-style: none;
- margin: 0;
- padding: 0 5px;
- width: 100%; }
- .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
- list-style: none; }
- .select2-container--default .select2-selection--multiple .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold;
- margin-top: 5px;
- margin-right: 10px;
- padding: 1px; }
- .select2-container--default .select2-selection--multiple .select2-selection__choice {
- background-color: #e4e4e4;
- border: 1px solid #aaa;
- border-radius: 4px;
- cursor: default;
- float: left;
- margin-right: 5px;
- margin-top: 5px;
- padding: 0 5px; }
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
- color: #999;
- cursor: pointer;
- display: inline-block;
- font-weight: bold;
- margin-right: 2px; }
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
- color: #333; }
-
-.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
- float: right; }
-
-.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
- margin-left: 5px;
- margin-right: auto; }
-
-.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
- margin-left: 2px;
- margin-right: auto; }
-
-.select2-container--default.select2-container--focus .select2-selection--multiple {
- border: solid black 1px;
- outline: 0; }
-
-.select2-container--default.select2-container--disabled .select2-selection--multiple {
- background-color: #eee;
- cursor: default; }
-
-.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
- display: none; }
-
-.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0; }
-
-.select2-container--default .select2-search--dropdown .select2-search__field {
- border: 1px solid #aaa; }
-
-.select2-container--default .select2-search--inline .select2-search__field {
- background: transparent;
- border: none;
- outline: 0;
- box-shadow: none;
- -webkit-appearance: textfield; }
-
-.select2-container--default .select2-results > .select2-results__options {
- max-height: 200px;
- overflow-y: auto; }
-
-.select2-container--default .select2-results__option[role=group] {
- padding: 0; }
-
-.select2-container--default .select2-results__option[aria-disabled=true] {
- color: #999; }
-
-.select2-container--default .select2-results__option[aria-selected=true] {
- background-color: #ddd; }
-
-.select2-container--default .select2-results__option .select2-results__option {
- padding-left: 1em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
- padding-left: 0; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -1em;
- padding-left: 2em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -2em;
- padding-left: 3em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -3em;
- padding-left: 4em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -4em;
- padding-left: 5em; }
- .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
- margin-left: -5em;
- padding-left: 6em; }
-
-.select2-container--default .select2-results__option--highlighted[aria-selected] {
- background-color: #5897fb;
- color: white; }
-
-.select2-container--default .select2-results__group {
- cursor: default;
- display: block;
- padding: 6px; }
-
-.select2-container--classic .select2-selection--single {
- background-color: #f7f7f7;
- border: 1px solid #aaa;
- border-radius: 4px;
- outline: 0;
- background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
- background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
- background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
- .select2-container--classic .select2-selection--single:focus {
- border: 1px solid #5897fb; }
- .select2-container--classic .select2-selection--single .select2-selection__rendered {
- color: #444;
- line-height: 28px; }
- .select2-container--classic .select2-selection--single .select2-selection__clear {
- cursor: pointer;
- float: right;
- font-weight: bold;
- margin-right: 10px; }
- .select2-container--classic .select2-selection--single .select2-selection__placeholder {
- color: #999; }
- .select2-container--classic .select2-selection--single .select2-selection__arrow {
- background-color: #ddd;
- border: none;
- border-left: 1px solid #aaa;
- border-top-right-radius: 4px;
- border-bottom-right-radius: 4px;
- height: 26px;
- position: absolute;
- top: 1px;
- right: 1px;
- width: 20px;
- background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
- background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
- background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
- .select2-container--classic .select2-selection--single .select2-selection__arrow b {
- border-color: #888 transparent transparent transparent;
- border-style: solid;
- border-width: 5px 4px 0 4px;
- height: 0;
- left: 50%;
- margin-left: -4px;
- margin-top: -2px;
- position: absolute;
- top: 50%;
- width: 0; }
-
-.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
- float: left; }
-
-.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
- border: none;
- border-right: 1px solid #aaa;
- border-radius: 0;
- border-top-left-radius: 4px;
- border-bottom-left-radius: 4px;
- left: 1px;
- right: auto; }
-
-.select2-container--classic.select2-container--open .select2-selection--single {
- border: 1px solid #5897fb; }
- .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
- background: transparent;
- border: none; }
- .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
- border-color: transparent transparent #888 transparent;
- border-width: 0 4px 5px 4px; }
-
-.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
- border-top: none;
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
- background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
- background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
-
-.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
- border-bottom: none;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
- background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
- background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
- background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
-
-.select2-container--classic .select2-selection--multiple {
- background-color: white;
- border: 1px solid #aaa;
- border-radius: 4px;
- cursor: text;
- outline: 0; }
- .select2-container--classic .select2-selection--multiple:focus {
- border: 1px solid #5897fb; }
- .select2-container--classic .select2-selection--multiple .select2-selection__rendered {
- list-style: none;
- margin: 0;
- padding: 0 5px; }
- .select2-container--classic .select2-selection--multiple .select2-selection__clear {
- display: none; }
- .select2-container--classic .select2-selection--multiple .select2-selection__choice {
- background-color: #e4e4e4;
- border: 1px solid #aaa;
- border-radius: 4px;
- cursor: default;
- float: left;
- margin-right: 5px;
- margin-top: 5px;
- padding: 0 5px; }
- .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
- color: #888;
- cursor: pointer;
- display: inline-block;
- font-weight: bold;
- margin-right: 2px; }
- .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
- color: #555; }
-
-.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
- float: right;
- margin-left: 5px;
- margin-right: auto; }
-
-.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
- margin-left: 2px;
- margin-right: auto; }
-
-.select2-container--classic.select2-container--open .select2-selection--multiple {
- border: 1px solid #5897fb; }
-
-.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
- border-top: none;
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
- border-bottom: none;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0; }
-
-.select2-container--classic .select2-search--dropdown .select2-search__field {
- border: 1px solid #aaa;
- outline: 0; }
-
-.select2-container--classic .select2-search--inline .select2-search__field {
- outline: 0;
- box-shadow: none; }
-
-.select2-container--classic .select2-dropdown {
- background-color: white;
- border: 1px solid transparent; }
-
-.select2-container--classic .select2-dropdown--above {
- border-bottom: none; }
-
-.select2-container--classic .select2-dropdown--below {
- border-top: none; }
-
-.select2-container--classic .select2-results > .select2-results__options {
- max-height: 200px;
- overflow-y: auto; }
-
-.select2-container--classic .select2-results__option[role=group] {
- padding: 0; }
-
-.select2-container--classic .select2-results__option[aria-disabled=true] {
- color: grey; }
-
-.select2-container--classic .select2-results__option--highlighted[aria-selected] {
- background-color: #3875d7;
- color: white; }
-
-.select2-container--classic .select2-results__group {
- cursor: default;
- display: block;
- padding: 6px; }
-
-.select2-container--classic.select2-container--open .select2-dropdown {
- border-color: #5897fb; }
diff --git a/backend/staticfiles/admin/css/vendor/select2/select2.css.gz b/backend/staticfiles/admin/css/vendor/select2/select2.css.gz
deleted file mode 100644
index eb817022c..000000000
Binary files a/backend/staticfiles/admin/css/vendor/select2/select2.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/vendor/select2/select2.min.9f54e6414f87.css b/backend/staticfiles/admin/css/vendor/select2/select2.min.9f54e6414f87.css
deleted file mode 100644
index 7c18ad59d..000000000
--- a/backend/staticfiles/admin/css/vendor/select2/select2.min.9f54e6414f87.css
+++ /dev/null
@@ -1 +0,0 @@
-.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
diff --git a/backend/staticfiles/admin/css/vendor/select2/select2.min.9f54e6414f87.css.gz b/backend/staticfiles/admin/css/vendor/select2/select2.min.9f54e6414f87.css.gz
deleted file mode 100644
index a2861a023..000000000
Binary files a/backend/staticfiles/admin/css/vendor/select2/select2.min.9f54e6414f87.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/vendor/select2/select2.min.css b/backend/staticfiles/admin/css/vendor/select2/select2.min.css
deleted file mode 100644
index 7c18ad59d..000000000
--- a/backend/staticfiles/admin/css/vendor/select2/select2.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
diff --git a/backend/staticfiles/admin/css/vendor/select2/select2.min.css.gz b/backend/staticfiles/admin/css/vendor/select2/select2.min.css.gz
deleted file mode 100644
index a2861a023..000000000
Binary files a/backend/staticfiles/admin/css/vendor/select2/select2.min.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/widgets.694d845b2cb1.css b/backend/staticfiles/admin/css/widgets.694d845b2cb1.css
deleted file mode 100644
index d0c850a7d..000000000
--- a/backend/staticfiles/admin/css/widgets.694d845b2cb1.css
+++ /dev/null
@@ -1,574 +0,0 @@
-/* SELECTOR (FILTER INTERFACE) */
-
-.selector {
- width: 800px;
- float: left;
-}
-
-.selector select {
- width: 380px;
- height: 17.2em;
-}
-
-.selector-available, .selector-chosen {
- float: left;
- width: 380px;
- text-align: center;
- margin-bottom: 5px;
-}
-
-.selector-chosen select {
- border-top: none;
-}
-
-.selector-available h2, .selector-chosen h2 {
- border: 1px solid var(--border-color);
- border-radius: 4px 4px 0 0;
-}
-
-.selector-chosen h2 {
- background: var(--primary);
- color: var(--header-link-color);
-}
-
-.selector .selector-available h2 {
- background: var(--darkened-bg);
- color: var(--body-quiet-color);
-}
-
-.selector .selector-filter {
- border: 1px solid var(--border-color);
- border-width: 0 1px;
- padding: 8px;
- color: var(--body-quiet-color);
- font-size: 10px;
- margin: 0;
- text-align: left;
-}
-
-.selector .selector-filter label,
-.inline-group .aligned .selector .selector-filter label {
- float: left;
- margin: 7px 0 0;
- width: 18px;
- height: 18px;
- padding: 0;
- overflow: hidden;
- line-height: 1;
-}
-
-.selector .selector-available input {
- width: 320px;
- margin-left: 8px;
-}
-
-.selector ul.selector-chooser {
- float: left;
- width: 22px;
- background-color: var(--selected-bg);
- border-radius: 10px;
- margin: 10em 5px 0 5px;
- padding: 0;
-}
-
-.selector-chooser li {
- margin: 0;
- padding: 3px;
- list-style-type: none;
-}
-
-.selector select {
- padding: 0 10px;
- margin: 0 0 10px;
- border-radius: 0 0 4px 4px;
-}
-
-.selector-add, .selector-remove {
- width: 16px;
- height: 16px;
- display: block;
- text-indent: -3000px;
- overflow: hidden;
- cursor: default;
- opacity: 0.55;
-}
-
-.active.selector-add, .active.selector-remove {
- opacity: 1;
-}
-
-.active.selector-add:hover, .active.selector-remove:hover {
- cursor: pointer;
-}
-
-.selector-add {
- background: url("../img/selector-icons.b4555096cea2.svg") 0 -96px no-repeat;
-}
-
-.active.selector-add:focus, .active.selector-add:hover {
- background-position: 0 -112px;
-}
-
-.selector-remove {
- background: url("../img/selector-icons.b4555096cea2.svg") 0 -64px no-repeat;
-}
-
-.active.selector-remove:focus, .active.selector-remove:hover {
- background-position: 0 -80px;
-}
-
-a.selector-chooseall, a.selector-clearall {
- display: inline-block;
- height: 16px;
- text-align: left;
- margin: 1px auto 3px;
- overflow: hidden;
- font-weight: bold;
- line-height: 16px;
- color: var(--body-quiet-color);
- text-decoration: none;
- opacity: 0.55;
-}
-
-a.active.selector-chooseall:focus, a.active.selector-clearall:focus,
-a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
- color: var(--link-fg);
-}
-
-a.active.selector-chooseall, a.active.selector-clearall {
- opacity: 1;
-}
-
-a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
- cursor: pointer;
-}
-
-a.selector-chooseall {
- padding: 0 18px 0 0;
- background: url("../img/selector-icons.b4555096cea2.svg") right -160px no-repeat;
- cursor: default;
-}
-
-a.active.selector-chooseall:focus, a.active.selector-chooseall:hover {
- background-position: 100% -176px;
-}
-
-a.selector-clearall {
- padding: 0 0 0 18px;
- background: url("../img/selector-icons.b4555096cea2.svg") 0 -128px no-repeat;
- cursor: default;
-}
-
-a.active.selector-clearall:focus, a.active.selector-clearall:hover {
- background-position: 0 -144px;
-}
-
-/* STACKED SELECTORS */
-
-.stacked {
- float: left;
- width: 490px;
-}
-
-.stacked select {
- width: 480px;
- height: 10.1em;
-}
-
-.stacked .selector-available, .stacked .selector-chosen {
- width: 480px;
-}
-
-.stacked .selector-available {
- margin-bottom: 0;
-}
-
-.stacked .selector-available input {
- width: 422px;
-}
-
-.stacked ul.selector-chooser {
- height: 22px;
- width: 50px;
- margin: 0 0 10px 40%;
- background-color: #eee;
- border-radius: 10px;
-}
-
-.stacked .selector-chooser li {
- float: left;
- padding: 3px 3px 3px 5px;
-}
-
-.stacked .selector-chooseall, .stacked .selector-clearall {
- display: none;
-}
-
-.stacked .selector-add {
- background: url("../img/selector-icons.b4555096cea2.svg") 0 -32px no-repeat;
- cursor: default;
-}
-
-.stacked .active.selector-add {
- background-position: 0 -32px;
- cursor: pointer;
-}
-
-.stacked .active.selector-add:focus, .stacked .active.selector-add:hover {
- background-position: 0 -48px;
- cursor: pointer;
-}
-
-.stacked .selector-remove {
- background: url("../img/selector-icons.b4555096cea2.svg") 0 0 no-repeat;
- cursor: default;
-}
-
-.stacked .active.selector-remove {
- background-position: 0 0px;
- cursor: pointer;
-}
-
-.stacked .active.selector-remove:focus, .stacked .active.selector-remove:hover {
- background-position: 0 -16px;
- cursor: pointer;
-}
-
-.selector .help-icon {
- background: url("../img/icon-unknown.a18cb4398978.svg") 0 0 no-repeat;
- display: inline-block;
- vertical-align: middle;
- margin: -2px 0 0 2px;
- width: 13px;
- height: 13px;
-}
-
-.selector .selector-chosen .help-icon {
- background: url("../img/icon-unknown-alt.81536e128bb6.svg") 0 0 no-repeat;
-}
-
-.selector .search-label-icon {
- background: url("../img/search.7cf54ff789c6.svg") 0 0 no-repeat;
- display: inline-block;
- height: 18px;
- width: 18px;
-}
-
-/* DATE AND TIME */
-
-p.datetime {
- line-height: 20px;
- margin: 0;
- padding: 0;
- color: var(--body-quiet-color);
- font-weight: bold;
-}
-
-.datetime span {
- white-space: nowrap;
- font-weight: normal;
- font-size: 11px;
- color: var(--body-quiet-color);
-}
-
-.datetime input, .form-row .datetime input.vDateField, .form-row .datetime input.vTimeField {
- margin-left: 5px;
- margin-bottom: 4px;
-}
-
-table p.datetime {
- font-size: 11px;
- margin-left: 0;
- padding-left: 0;
-}
-
-.datetimeshortcuts .clock-icon, .datetimeshortcuts .date-icon {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- height: 16px;
- width: 16px;
- overflow: hidden;
-}
-
-.datetimeshortcuts .clock-icon {
- background: url("../img/icon-clock.e1d4dfac3f2b.svg") 0 0 no-repeat;
-}
-
-.datetimeshortcuts a:focus .clock-icon,
-.datetimeshortcuts a:hover .clock-icon {
- background-position: 0 -16px;
-}
-
-.datetimeshortcuts .date-icon {
- background: url("../img/icon-calendar.ac7aea671bea.svg") 0 0 no-repeat;
- top: -1px;
-}
-
-.datetimeshortcuts a:focus .date-icon,
-.datetimeshortcuts a:hover .date-icon {
- background-position: 0 -16px;
-}
-
-.timezonewarning {
- font-size: 11px;
- color: var(--body-quiet-color);
-}
-
-/* URL */
-
-p.url {
- line-height: 20px;
- margin: 0;
- padding: 0;
- color: var(--body-quiet-color);
- font-size: 11px;
- font-weight: bold;
-}
-
-.url a {
- font-weight: normal;
-}
-
-/* FILE UPLOADS */
-
-p.file-upload {
- line-height: 20px;
- margin: 0;
- padding: 0;
- color: var(--body-quiet-color);
- font-size: 11px;
- font-weight: bold;
-}
-
-.aligned p.file-upload {
- margin-left: 170px;
-}
-
-.file-upload a {
- font-weight: normal;
-}
-
-.file-upload .deletelink {
- margin-left: 5px;
-}
-
-span.clearable-file-input label {
- color: var(--body-fg);
- font-size: 11px;
- display: inline;
- float: none;
-}
-
-/* CALENDARS & CLOCKS */
-
-.calendarbox, .clockbox {
- margin: 5px auto;
- font-size: 12px;
- width: 19em;
- text-align: center;
- background: var(--body-bg);
- color: var(--body-fg);
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
- overflow: hidden;
- position: relative;
-}
-
-.clockbox {
- width: auto;
-}
-
-.calendar {
- margin: 0;
- padding: 0;
-}
-
-.calendar table {
- margin: 0;
- padding: 0;
- border-collapse: collapse;
- background: white;
- width: 100%;
-}
-
-.calendar caption, .calendarbox h2 {
- margin: 0;
- text-align: center;
- border-top: none;
- font-weight: 700;
- font-size: 12px;
- color: #333;
- background: var(--accent);
-}
-
-.calendar th {
- padding: 8px 5px;
- background: var(--darkened-bg);
- border-bottom: 1px solid var(--border-color);
- font-weight: 400;
- font-size: 12px;
- text-align: center;
- color: var(--body-quiet-color);
-}
-
-.calendar td {
- font-weight: 400;
- font-size: 12px;
- text-align: center;
- padding: 0;
- border-top: 1px solid var(--hairline-color);
- border-bottom: none;
-}
-
-.calendar td.selected a {
- background: var(--primary);
- color: var(--button-fg);
-}
-
-.calendar td.nonday {
- background: var(--darkened-bg);
-}
-
-.calendar td.today a {
- font-weight: 700;
-}
-
-.calendar td a, .timelist a {
- display: block;
- font-weight: 400;
- padding: 6px;
- text-decoration: none;
- color: var(--body-quiet-color);
-}
-
-.calendar td a:focus, .timelist a:focus,
-.calendar td a:hover, .timelist a:hover {
- background: var(--primary);
- color: white;
-}
-
-.calendar td a:active, .timelist a:active {
- background: var(--header-bg);
- color: white;
-}
-
-.calendarnav {
- font-size: 10px;
- text-align: center;
- color: #ccc;
- margin: 0;
- padding: 1px 3px;
-}
-
-.calendarnav a:link, #calendarnav a:visited,
-#calendarnav a:focus, #calendarnav a:hover {
- color: var(--body-quiet-color);
-}
-
-.calendar-shortcuts {
- background: var(--body-bg);
- color: var(--body-quiet-color);
- font-size: 11px;
- line-height: 11px;
- border-top: 1px solid var(--hairline-color);
- padding: 8px 0;
-}
-
-.calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
- display: block;
- position: absolute;
- top: 8px;
- width: 15px;
- height: 15px;
- text-indent: -9999px;
- padding: 0;
-}
-
-.calendarnav-previous {
- left: 10px;
- background: url("../img/calendar-icons.39b290681a8b.svg") 0 0 no-repeat;
-}
-
-.calendarbox .calendarnav-previous:focus,
-.calendarbox .calendarnav-previous:hover {
- background-position: 0 -15px;
-}
-
-.calendarnav-next {
- right: 10px;
- background: url("../img/calendar-icons.39b290681a8b.svg") 0 -30px no-repeat;
-}
-
-.calendarbox .calendarnav-next:focus,
-.calendarbox .calendarnav-next:hover {
- background-position: 0 -45px;
-}
-
-.calendar-cancel {
- margin: 0;
- padding: 4px 0;
- font-size: 12px;
- background: #eee;
- border-top: 1px solid var(--border-color);
- color: var(--body-fg);
-}
-
-.calendar-cancel:focus, .calendar-cancel:hover {
- background: #ddd;
-}
-
-.calendar-cancel a {
- color: black;
- display: block;
-}
-
-ul.timelist, .timelist li {
- list-style-type: none;
- margin: 0;
- padding: 0;
-}
-
-.timelist a {
- padding: 2px;
-}
-
-/* EDIT INLINE */
-
-.inline-deletelink {
- float: right;
- text-indent: -9999px;
- background: url("../img/inline-delete.fec1b761f254.svg") 0 0 no-repeat;
- width: 16px;
- height: 16px;
- border: 0px none;
-}
-
-.inline-deletelink:focus, .inline-deletelink:hover {
- cursor: pointer;
-}
-
-/* RELATED WIDGET WRAPPER */
-.related-widget-wrapper {
- float: left; /* display properly in form rows with multiple fields */
- overflow: hidden; /* clear floated contents */
-}
-
-.related-widget-wrapper-link {
- opacity: 0.3;
-}
-
-.related-widget-wrapper-link:link {
- opacity: .8;
-}
-
-.related-widget-wrapper-link:link:focus,
-.related-widget-wrapper-link:link:hover {
- opacity: 1;
-}
-
-select + .related-widget-wrapper-link,
-.related-widget-wrapper-link + .related-widget-wrapper-link {
- margin-left: 7px;
-}
diff --git a/backend/staticfiles/admin/css/widgets.694d845b2cb1.css.gz b/backend/staticfiles/admin/css/widgets.694d845b2cb1.css.gz
deleted file mode 100644
index 3a54b0209..000000000
Binary files a/backend/staticfiles/admin/css/widgets.694d845b2cb1.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/css/widgets.css b/backend/staticfiles/admin/css/widgets.css
deleted file mode 100644
index c7d64566d..000000000
--- a/backend/staticfiles/admin/css/widgets.css
+++ /dev/null
@@ -1,574 +0,0 @@
-/* SELECTOR (FILTER INTERFACE) */
-
-.selector {
- width: 800px;
- float: left;
-}
-
-.selector select {
- width: 380px;
- height: 17.2em;
-}
-
-.selector-available, .selector-chosen {
- float: left;
- width: 380px;
- text-align: center;
- margin-bottom: 5px;
-}
-
-.selector-chosen select {
- border-top: none;
-}
-
-.selector-available h2, .selector-chosen h2 {
- border: 1px solid var(--border-color);
- border-radius: 4px 4px 0 0;
-}
-
-.selector-chosen h2 {
- background: var(--primary);
- color: var(--header-link-color);
-}
-
-.selector .selector-available h2 {
- background: var(--darkened-bg);
- color: var(--body-quiet-color);
-}
-
-.selector .selector-filter {
- border: 1px solid var(--border-color);
- border-width: 0 1px;
- padding: 8px;
- color: var(--body-quiet-color);
- font-size: 10px;
- margin: 0;
- text-align: left;
-}
-
-.selector .selector-filter label,
-.inline-group .aligned .selector .selector-filter label {
- float: left;
- margin: 7px 0 0;
- width: 18px;
- height: 18px;
- padding: 0;
- overflow: hidden;
- line-height: 1;
-}
-
-.selector .selector-available input {
- width: 320px;
- margin-left: 8px;
-}
-
-.selector ul.selector-chooser {
- float: left;
- width: 22px;
- background-color: var(--selected-bg);
- border-radius: 10px;
- margin: 10em 5px 0 5px;
- padding: 0;
-}
-
-.selector-chooser li {
- margin: 0;
- padding: 3px;
- list-style-type: none;
-}
-
-.selector select {
- padding: 0 10px;
- margin: 0 0 10px;
- border-radius: 0 0 4px 4px;
-}
-
-.selector-add, .selector-remove {
- width: 16px;
- height: 16px;
- display: block;
- text-indent: -3000px;
- overflow: hidden;
- cursor: default;
- opacity: 0.55;
-}
-
-.active.selector-add, .active.selector-remove {
- opacity: 1;
-}
-
-.active.selector-add:hover, .active.selector-remove:hover {
- cursor: pointer;
-}
-
-.selector-add {
- background: url(../img/selector-icons.svg) 0 -96px no-repeat;
-}
-
-.active.selector-add:focus, .active.selector-add:hover {
- background-position: 0 -112px;
-}
-
-.selector-remove {
- background: url(../img/selector-icons.svg) 0 -64px no-repeat;
-}
-
-.active.selector-remove:focus, .active.selector-remove:hover {
- background-position: 0 -80px;
-}
-
-a.selector-chooseall, a.selector-clearall {
- display: inline-block;
- height: 16px;
- text-align: left;
- margin: 1px auto 3px;
- overflow: hidden;
- font-weight: bold;
- line-height: 16px;
- color: var(--body-quiet-color);
- text-decoration: none;
- opacity: 0.55;
-}
-
-a.active.selector-chooseall:focus, a.active.selector-clearall:focus,
-a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
- color: var(--link-fg);
-}
-
-a.active.selector-chooseall, a.active.selector-clearall {
- opacity: 1;
-}
-
-a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
- cursor: pointer;
-}
-
-a.selector-chooseall {
- padding: 0 18px 0 0;
- background: url(../img/selector-icons.svg) right -160px no-repeat;
- cursor: default;
-}
-
-a.active.selector-chooseall:focus, a.active.selector-chooseall:hover {
- background-position: 100% -176px;
-}
-
-a.selector-clearall {
- padding: 0 0 0 18px;
- background: url(../img/selector-icons.svg) 0 -128px no-repeat;
- cursor: default;
-}
-
-a.active.selector-clearall:focus, a.active.selector-clearall:hover {
- background-position: 0 -144px;
-}
-
-/* STACKED SELECTORS */
-
-.stacked {
- float: left;
- width: 490px;
-}
-
-.stacked select {
- width: 480px;
- height: 10.1em;
-}
-
-.stacked .selector-available, .stacked .selector-chosen {
- width: 480px;
-}
-
-.stacked .selector-available {
- margin-bottom: 0;
-}
-
-.stacked .selector-available input {
- width: 422px;
-}
-
-.stacked ul.selector-chooser {
- height: 22px;
- width: 50px;
- margin: 0 0 10px 40%;
- background-color: #eee;
- border-radius: 10px;
-}
-
-.stacked .selector-chooser li {
- float: left;
- padding: 3px 3px 3px 5px;
-}
-
-.stacked .selector-chooseall, .stacked .selector-clearall {
- display: none;
-}
-
-.stacked .selector-add {
- background: url(../img/selector-icons.svg) 0 -32px no-repeat;
- cursor: default;
-}
-
-.stacked .active.selector-add {
- background-position: 0 -32px;
- cursor: pointer;
-}
-
-.stacked .active.selector-add:focus, .stacked .active.selector-add:hover {
- background-position: 0 -48px;
- cursor: pointer;
-}
-
-.stacked .selector-remove {
- background: url(../img/selector-icons.svg) 0 0 no-repeat;
- cursor: default;
-}
-
-.stacked .active.selector-remove {
- background-position: 0 0px;
- cursor: pointer;
-}
-
-.stacked .active.selector-remove:focus, .stacked .active.selector-remove:hover {
- background-position: 0 -16px;
- cursor: pointer;
-}
-
-.selector .help-icon {
- background: url(../img/icon-unknown.svg) 0 0 no-repeat;
- display: inline-block;
- vertical-align: middle;
- margin: -2px 0 0 2px;
- width: 13px;
- height: 13px;
-}
-
-.selector .selector-chosen .help-icon {
- background: url(../img/icon-unknown-alt.svg) 0 0 no-repeat;
-}
-
-.selector .search-label-icon {
- background: url(../img/search.svg) 0 0 no-repeat;
- display: inline-block;
- height: 18px;
- width: 18px;
-}
-
-/* DATE AND TIME */
-
-p.datetime {
- line-height: 20px;
- margin: 0;
- padding: 0;
- color: var(--body-quiet-color);
- font-weight: bold;
-}
-
-.datetime span {
- white-space: nowrap;
- font-weight: normal;
- font-size: 11px;
- color: var(--body-quiet-color);
-}
-
-.datetime input, .form-row .datetime input.vDateField, .form-row .datetime input.vTimeField {
- margin-left: 5px;
- margin-bottom: 4px;
-}
-
-table p.datetime {
- font-size: 11px;
- margin-left: 0;
- padding-left: 0;
-}
-
-.datetimeshortcuts .clock-icon, .datetimeshortcuts .date-icon {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- height: 16px;
- width: 16px;
- overflow: hidden;
-}
-
-.datetimeshortcuts .clock-icon {
- background: url(../img/icon-clock.svg) 0 0 no-repeat;
-}
-
-.datetimeshortcuts a:focus .clock-icon,
-.datetimeshortcuts a:hover .clock-icon {
- background-position: 0 -16px;
-}
-
-.datetimeshortcuts .date-icon {
- background: url(../img/icon-calendar.svg) 0 0 no-repeat;
- top: -1px;
-}
-
-.datetimeshortcuts a:focus .date-icon,
-.datetimeshortcuts a:hover .date-icon {
- background-position: 0 -16px;
-}
-
-.timezonewarning {
- font-size: 11px;
- color: var(--body-quiet-color);
-}
-
-/* URL */
-
-p.url {
- line-height: 20px;
- margin: 0;
- padding: 0;
- color: var(--body-quiet-color);
- font-size: 11px;
- font-weight: bold;
-}
-
-.url a {
- font-weight: normal;
-}
-
-/* FILE UPLOADS */
-
-p.file-upload {
- line-height: 20px;
- margin: 0;
- padding: 0;
- color: var(--body-quiet-color);
- font-size: 11px;
- font-weight: bold;
-}
-
-.aligned p.file-upload {
- margin-left: 170px;
-}
-
-.file-upload a {
- font-weight: normal;
-}
-
-.file-upload .deletelink {
- margin-left: 5px;
-}
-
-span.clearable-file-input label {
- color: var(--body-fg);
- font-size: 11px;
- display: inline;
- float: none;
-}
-
-/* CALENDARS & CLOCKS */
-
-.calendarbox, .clockbox {
- margin: 5px auto;
- font-size: 12px;
- width: 19em;
- text-align: center;
- background: var(--body-bg);
- color: var(--body-fg);
- border: 1px solid var(--hairline-color);
- border-radius: 4px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
- overflow: hidden;
- position: relative;
-}
-
-.clockbox {
- width: auto;
-}
-
-.calendar {
- margin: 0;
- padding: 0;
-}
-
-.calendar table {
- margin: 0;
- padding: 0;
- border-collapse: collapse;
- background: white;
- width: 100%;
-}
-
-.calendar caption, .calendarbox h2 {
- margin: 0;
- text-align: center;
- border-top: none;
- font-weight: 700;
- font-size: 12px;
- color: #333;
- background: var(--accent);
-}
-
-.calendar th {
- padding: 8px 5px;
- background: var(--darkened-bg);
- border-bottom: 1px solid var(--border-color);
- font-weight: 400;
- font-size: 12px;
- text-align: center;
- color: var(--body-quiet-color);
-}
-
-.calendar td {
- font-weight: 400;
- font-size: 12px;
- text-align: center;
- padding: 0;
- border-top: 1px solid var(--hairline-color);
- border-bottom: none;
-}
-
-.calendar td.selected a {
- background: var(--primary);
- color: var(--button-fg);
-}
-
-.calendar td.nonday {
- background: var(--darkened-bg);
-}
-
-.calendar td.today a {
- font-weight: 700;
-}
-
-.calendar td a, .timelist a {
- display: block;
- font-weight: 400;
- padding: 6px;
- text-decoration: none;
- color: var(--body-quiet-color);
-}
-
-.calendar td a:focus, .timelist a:focus,
-.calendar td a:hover, .timelist a:hover {
- background: var(--primary);
- color: white;
-}
-
-.calendar td a:active, .timelist a:active {
- background: var(--header-bg);
- color: white;
-}
-
-.calendarnav {
- font-size: 10px;
- text-align: center;
- color: #ccc;
- margin: 0;
- padding: 1px 3px;
-}
-
-.calendarnav a:link, #calendarnav a:visited,
-#calendarnav a:focus, #calendarnav a:hover {
- color: var(--body-quiet-color);
-}
-
-.calendar-shortcuts {
- background: var(--body-bg);
- color: var(--body-quiet-color);
- font-size: 11px;
- line-height: 11px;
- border-top: 1px solid var(--hairline-color);
- padding: 8px 0;
-}
-
-.calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
- display: block;
- position: absolute;
- top: 8px;
- width: 15px;
- height: 15px;
- text-indent: -9999px;
- padding: 0;
-}
-
-.calendarnav-previous {
- left: 10px;
- background: url(../img/calendar-icons.svg) 0 0 no-repeat;
-}
-
-.calendarbox .calendarnav-previous:focus,
-.calendarbox .calendarnav-previous:hover {
- background-position: 0 -15px;
-}
-
-.calendarnav-next {
- right: 10px;
- background: url(../img/calendar-icons.svg) 0 -30px no-repeat;
-}
-
-.calendarbox .calendarnav-next:focus,
-.calendarbox .calendarnav-next:hover {
- background-position: 0 -45px;
-}
-
-.calendar-cancel {
- margin: 0;
- padding: 4px 0;
- font-size: 12px;
- background: #eee;
- border-top: 1px solid var(--border-color);
- color: var(--body-fg);
-}
-
-.calendar-cancel:focus, .calendar-cancel:hover {
- background: #ddd;
-}
-
-.calendar-cancel a {
- color: black;
- display: block;
-}
-
-ul.timelist, .timelist li {
- list-style-type: none;
- margin: 0;
- padding: 0;
-}
-
-.timelist a {
- padding: 2px;
-}
-
-/* EDIT INLINE */
-
-.inline-deletelink {
- float: right;
- text-indent: -9999px;
- background: url(../img/inline-delete.svg) 0 0 no-repeat;
- width: 16px;
- height: 16px;
- border: 0px none;
-}
-
-.inline-deletelink:focus, .inline-deletelink:hover {
- cursor: pointer;
-}
-
-/* RELATED WIDGET WRAPPER */
-.related-widget-wrapper {
- float: left; /* display properly in form rows with multiple fields */
- overflow: hidden; /* clear floated contents */
-}
-
-.related-widget-wrapper-link {
- opacity: 0.3;
-}
-
-.related-widget-wrapper-link:link {
- opacity: .8;
-}
-
-.related-widget-wrapper-link:link:focus,
-.related-widget-wrapper-link:link:hover {
- opacity: 1;
-}
-
-select + .related-widget-wrapper-link,
-.related-widget-wrapper-link + .related-widget-wrapper-link {
- margin-left: 7px;
-}
diff --git a/backend/staticfiles/admin/css/widgets.css.gz b/backend/staticfiles/admin/css/widgets.css.gz
deleted file mode 100644
index 341016ea9..000000000
Binary files a/backend/staticfiles/admin/css/widgets.css.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/LICENSE.d273d63619c9.txt b/backend/staticfiles/admin/fonts/LICENSE.d273d63619c9.txt
deleted file mode 100644
index 75b52484e..000000000
--- a/backend/staticfiles/admin/fonts/LICENSE.d273d63619c9.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/backend/staticfiles/admin/fonts/LICENSE.d273d63619c9.txt.gz b/backend/staticfiles/admin/fonts/LICENSE.d273d63619c9.txt.gz
deleted file mode 100644
index d3fd59265..000000000
Binary files a/backend/staticfiles/admin/fonts/LICENSE.d273d63619c9.txt.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/LICENSE.txt b/backend/staticfiles/admin/fonts/LICENSE.txt
deleted file mode 100644
index 75b52484e..000000000
--- a/backend/staticfiles/admin/fonts/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/backend/staticfiles/admin/fonts/LICENSE.txt.gz b/backend/staticfiles/admin/fonts/LICENSE.txt.gz
deleted file mode 100644
index d3fd59265..000000000
Binary files a/backend/staticfiles/admin/fonts/LICENSE.txt.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/README.ab99e6b541ea.txt b/backend/staticfiles/admin/fonts/README.ab99e6b541ea.txt
deleted file mode 100644
index b247bef33..000000000
--- a/backend/staticfiles/admin/fonts/README.ab99e6b541ea.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Roboto webfont source: https://www.google.com/fonts/specimen/Roboto
-WOFF files extracted using https://github.com/majodev/google-webfonts-helper
-Weights used in this project: Light (300), Regular (400), Bold (700)
diff --git a/backend/staticfiles/admin/fonts/README.ab99e6b541ea.txt.gz b/backend/staticfiles/admin/fonts/README.ab99e6b541ea.txt.gz
deleted file mode 100644
index 5c802db4f..000000000
Binary files a/backend/staticfiles/admin/fonts/README.ab99e6b541ea.txt.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/README.txt b/backend/staticfiles/admin/fonts/README.txt
deleted file mode 100644
index b247bef33..000000000
--- a/backend/staticfiles/admin/fonts/README.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Roboto webfont source: https://www.google.com/fonts/specimen/Roboto
-WOFF files extracted using https://github.com/majodev/google-webfonts-helper
-Weights used in this project: Light (300), Regular (400), Bold (700)
diff --git a/backend/staticfiles/admin/fonts/README.txt.gz b/backend/staticfiles/admin/fonts/README.txt.gz
deleted file mode 100644
index 5c802db4f..000000000
Binary files a/backend/staticfiles/admin/fonts/README.txt.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/Roboto-Bold-webfont.50d75e48e0a3.woff b/backend/staticfiles/admin/fonts/Roboto-Bold-webfont.50d75e48e0a3.woff
deleted file mode 100644
index 6e0f56267..000000000
Binary files a/backend/staticfiles/admin/fonts/Roboto-Bold-webfont.50d75e48e0a3.woff and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/Roboto-Bold-webfont.woff b/backend/staticfiles/admin/fonts/Roboto-Bold-webfont.woff
deleted file mode 100644
index 6e0f56267..000000000
Binary files a/backend/staticfiles/admin/fonts/Roboto-Bold-webfont.woff and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/Roboto-Light-webfont.c73eb1ceba33.woff b/backend/staticfiles/admin/fonts/Roboto-Light-webfont.c73eb1ceba33.woff
deleted file mode 100644
index b9e99185c..000000000
Binary files a/backend/staticfiles/admin/fonts/Roboto-Light-webfont.c73eb1ceba33.woff and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/Roboto-Light-webfont.woff b/backend/staticfiles/admin/fonts/Roboto-Light-webfont.woff
deleted file mode 100644
index b9e99185c..000000000
Binary files a/backend/staticfiles/admin/fonts/Roboto-Light-webfont.woff and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/Roboto-Regular-webfont.35b07eb2f871.woff b/backend/staticfiles/admin/fonts/Roboto-Regular-webfont.35b07eb2f871.woff
deleted file mode 100644
index 96c1986f0..000000000
Binary files a/backend/staticfiles/admin/fonts/Roboto-Regular-webfont.35b07eb2f871.woff and /dev/null differ
diff --git a/backend/staticfiles/admin/fonts/Roboto-Regular-webfont.woff b/backend/staticfiles/admin/fonts/Roboto-Regular-webfont.woff
deleted file mode 100644
index 96c1986f0..000000000
Binary files a/backend/staticfiles/admin/fonts/Roboto-Regular-webfont.woff and /dev/null differ
diff --git a/backend/staticfiles/admin/img/LICENSE b/backend/staticfiles/admin/img/LICENSE
deleted file mode 100644
index a4faaa1df..000000000
--- a/backend/staticfiles/admin/img/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Code Charm Ltd
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/backend/staticfiles/admin/img/LICENSE.2c54f4e1ca1c b/backend/staticfiles/admin/img/LICENSE.2c54f4e1ca1c
deleted file mode 100644
index a4faaa1df..000000000
--- a/backend/staticfiles/admin/img/LICENSE.2c54f4e1ca1c
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Code Charm Ltd
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/backend/staticfiles/admin/img/LICENSE.2c54f4e1ca1c.gz b/backend/staticfiles/admin/img/LICENSE.2c54f4e1ca1c.gz
deleted file mode 100644
index 9306e29e3..000000000
Binary files a/backend/staticfiles/admin/img/LICENSE.2c54f4e1ca1c.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/LICENSE.gz b/backend/staticfiles/admin/img/LICENSE.gz
deleted file mode 100644
index 9306e29e3..000000000
Binary files a/backend/staticfiles/admin/img/LICENSE.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/README.a70711a38d87.txt b/backend/staticfiles/admin/img/README.a70711a38d87.txt
deleted file mode 100644
index 4eb2e492a..000000000
--- a/backend/staticfiles/admin/img/README.a70711a38d87.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-All icons are taken from Font Awesome (http://fontawesome.io/) project.
-The Font Awesome font is licensed under the SIL OFL 1.1:
-- https://scripts.sil.org/OFL
-
-SVG icons source: https://github.com/encharm/Font-Awesome-SVG-PNG
-Font-Awesome-SVG-PNG is licensed under the MIT license (see file license
-in current folder).
diff --git a/backend/staticfiles/admin/img/README.a70711a38d87.txt.gz b/backend/staticfiles/admin/img/README.a70711a38d87.txt.gz
deleted file mode 100644
index d3afcbd6b..000000000
Binary files a/backend/staticfiles/admin/img/README.a70711a38d87.txt.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/README.txt b/backend/staticfiles/admin/img/README.txt
deleted file mode 100644
index 4eb2e492a..000000000
--- a/backend/staticfiles/admin/img/README.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-All icons are taken from Font Awesome (http://fontawesome.io/) project.
-The Font Awesome font is licensed under the SIL OFL 1.1:
-- https://scripts.sil.org/OFL
-
-SVG icons source: https://github.com/encharm/Font-Awesome-SVG-PNG
-Font-Awesome-SVG-PNG is licensed under the MIT license (see file license
-in current folder).
diff --git a/backend/staticfiles/admin/img/README.txt.gz b/backend/staticfiles/admin/img/README.txt.gz
deleted file mode 100644
index d3afcbd6b..000000000
Binary files a/backend/staticfiles/admin/img/README.txt.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/calendar-icons.39b290681a8b.svg b/backend/staticfiles/admin/img/calendar-icons.39b290681a8b.svg
deleted file mode 100644
index dbf21c39d..000000000
--- a/backend/staticfiles/admin/img/calendar-icons.39b290681a8b.svg
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/calendar-icons.39b290681a8b.svg.gz b/backend/staticfiles/admin/img/calendar-icons.39b290681a8b.svg.gz
deleted file mode 100644
index bef7ce14c..000000000
Binary files a/backend/staticfiles/admin/img/calendar-icons.39b290681a8b.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/calendar-icons.svg b/backend/staticfiles/admin/img/calendar-icons.svg
deleted file mode 100644
index dbf21c39d..000000000
--- a/backend/staticfiles/admin/img/calendar-icons.svg
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/calendar-icons.svg.gz b/backend/staticfiles/admin/img/calendar-icons.svg.gz
deleted file mode 100644
index bef7ce14c..000000000
Binary files a/backend/staticfiles/admin/img/calendar-icons.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/gis/move_vertex_off.7a23bf31ef8a.svg b/backend/staticfiles/admin/img/gis/move_vertex_off.7a23bf31ef8a.svg
deleted file mode 100644
index 228854f3b..000000000
--- a/backend/staticfiles/admin/img/gis/move_vertex_off.7a23bf31ef8a.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/backend/staticfiles/admin/img/gis/move_vertex_off.7a23bf31ef8a.svg.gz b/backend/staticfiles/admin/img/gis/move_vertex_off.7a23bf31ef8a.svg.gz
deleted file mode 100644
index f17ecfbdc..000000000
Binary files a/backend/staticfiles/admin/img/gis/move_vertex_off.7a23bf31ef8a.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/gis/move_vertex_off.svg b/backend/staticfiles/admin/img/gis/move_vertex_off.svg
deleted file mode 100644
index 228854f3b..000000000
--- a/backend/staticfiles/admin/img/gis/move_vertex_off.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/backend/staticfiles/admin/img/gis/move_vertex_off.svg.gz b/backend/staticfiles/admin/img/gis/move_vertex_off.svg.gz
deleted file mode 100644
index f17ecfbdc..000000000
Binary files a/backend/staticfiles/admin/img/gis/move_vertex_off.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/gis/move_vertex_on.0047eba25b67.svg b/backend/staticfiles/admin/img/gis/move_vertex_on.0047eba25b67.svg
deleted file mode 100644
index 96b87fdd7..000000000
--- a/backend/staticfiles/admin/img/gis/move_vertex_on.0047eba25b67.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/backend/staticfiles/admin/img/gis/move_vertex_on.0047eba25b67.svg.gz b/backend/staticfiles/admin/img/gis/move_vertex_on.0047eba25b67.svg.gz
deleted file mode 100644
index 8047dfd8d..000000000
Binary files a/backend/staticfiles/admin/img/gis/move_vertex_on.0047eba25b67.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/gis/move_vertex_on.svg b/backend/staticfiles/admin/img/gis/move_vertex_on.svg
deleted file mode 100644
index 96b87fdd7..000000000
--- a/backend/staticfiles/admin/img/gis/move_vertex_on.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/backend/staticfiles/admin/img/gis/move_vertex_on.svg.gz b/backend/staticfiles/admin/img/gis/move_vertex_on.svg.gz
deleted file mode 100644
index 8047dfd8d..000000000
Binary files a/backend/staticfiles/admin/img/gis/move_vertex_on.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-addlink.d519b3bab011.svg b/backend/staticfiles/admin/img/icon-addlink.d519b3bab011.svg
deleted file mode 100644
index e004fb162..000000000
--- a/backend/staticfiles/admin/img/icon-addlink.d519b3bab011.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-addlink.d519b3bab011.svg.gz b/backend/staticfiles/admin/img/icon-addlink.d519b3bab011.svg.gz
deleted file mode 100644
index 81cea0d94..000000000
Binary files a/backend/staticfiles/admin/img/icon-addlink.d519b3bab011.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-addlink.svg b/backend/staticfiles/admin/img/icon-addlink.svg
deleted file mode 100644
index e004fb162..000000000
--- a/backend/staticfiles/admin/img/icon-addlink.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-addlink.svg.gz b/backend/staticfiles/admin/img/icon-addlink.svg.gz
deleted file mode 100644
index 81cea0d94..000000000
Binary files a/backend/staticfiles/admin/img/icon-addlink.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-alert.034cc7d8a67f.svg b/backend/staticfiles/admin/img/icon-alert.034cc7d8a67f.svg
deleted file mode 100644
index e51ea83f5..000000000
--- a/backend/staticfiles/admin/img/icon-alert.034cc7d8a67f.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-alert.034cc7d8a67f.svg.gz b/backend/staticfiles/admin/img/icon-alert.034cc7d8a67f.svg.gz
deleted file mode 100644
index a7e64ac06..000000000
Binary files a/backend/staticfiles/admin/img/icon-alert.034cc7d8a67f.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-alert.svg b/backend/staticfiles/admin/img/icon-alert.svg
deleted file mode 100644
index e51ea83f5..000000000
--- a/backend/staticfiles/admin/img/icon-alert.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-alert.svg.gz b/backend/staticfiles/admin/img/icon-alert.svg.gz
deleted file mode 100644
index a7e64ac06..000000000
Binary files a/backend/staticfiles/admin/img/icon-alert.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-calendar.ac7aea671bea.svg b/backend/staticfiles/admin/img/icon-calendar.ac7aea671bea.svg
deleted file mode 100644
index 97910a994..000000000
--- a/backend/staticfiles/admin/img/icon-calendar.ac7aea671bea.svg
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-calendar.ac7aea671bea.svg.gz b/backend/staticfiles/admin/img/icon-calendar.ac7aea671bea.svg.gz
deleted file mode 100644
index 18b5080b6..000000000
Binary files a/backend/staticfiles/admin/img/icon-calendar.ac7aea671bea.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-calendar.svg b/backend/staticfiles/admin/img/icon-calendar.svg
deleted file mode 100644
index 97910a994..000000000
--- a/backend/staticfiles/admin/img/icon-calendar.svg
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-calendar.svg.gz b/backend/staticfiles/admin/img/icon-calendar.svg.gz
deleted file mode 100644
index 18b5080b6..000000000
Binary files a/backend/staticfiles/admin/img/icon-calendar.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-changelink.18d2fd706348.svg b/backend/staticfiles/admin/img/icon-changelink.18d2fd706348.svg
deleted file mode 100644
index bbb137aa0..000000000
--- a/backend/staticfiles/admin/img/icon-changelink.18d2fd706348.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-changelink.18d2fd706348.svg.gz b/backend/staticfiles/admin/img/icon-changelink.18d2fd706348.svg.gz
deleted file mode 100644
index 48960ffe0..000000000
Binary files a/backend/staticfiles/admin/img/icon-changelink.18d2fd706348.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-changelink.svg b/backend/staticfiles/admin/img/icon-changelink.svg
deleted file mode 100644
index bbb137aa0..000000000
--- a/backend/staticfiles/admin/img/icon-changelink.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-changelink.svg.gz b/backend/staticfiles/admin/img/icon-changelink.svg.gz
deleted file mode 100644
index 48960ffe0..000000000
Binary files a/backend/staticfiles/admin/img/icon-changelink.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-clock.e1d4dfac3f2b.svg b/backend/staticfiles/admin/img/icon-clock.e1d4dfac3f2b.svg
deleted file mode 100644
index bf9985d3f..000000000
--- a/backend/staticfiles/admin/img/icon-clock.e1d4dfac3f2b.svg
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-clock.e1d4dfac3f2b.svg.gz b/backend/staticfiles/admin/img/icon-clock.e1d4dfac3f2b.svg.gz
deleted file mode 100644
index c21e7e790..000000000
Binary files a/backend/staticfiles/admin/img/icon-clock.e1d4dfac3f2b.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-clock.svg b/backend/staticfiles/admin/img/icon-clock.svg
deleted file mode 100644
index bf9985d3f..000000000
--- a/backend/staticfiles/admin/img/icon-clock.svg
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-clock.svg.gz b/backend/staticfiles/admin/img/icon-clock.svg.gz
deleted file mode 100644
index c21e7e790..000000000
Binary files a/backend/staticfiles/admin/img/icon-clock.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-deletelink.564ef9dc3854.svg b/backend/staticfiles/admin/img/icon-deletelink.564ef9dc3854.svg
deleted file mode 100644
index 4059b1554..000000000
--- a/backend/staticfiles/admin/img/icon-deletelink.564ef9dc3854.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-deletelink.564ef9dc3854.svg.gz b/backend/staticfiles/admin/img/icon-deletelink.564ef9dc3854.svg.gz
deleted file mode 100644
index 4b93e9f3b..000000000
Binary files a/backend/staticfiles/admin/img/icon-deletelink.564ef9dc3854.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-deletelink.svg b/backend/staticfiles/admin/img/icon-deletelink.svg
deleted file mode 100644
index 4059b1554..000000000
--- a/backend/staticfiles/admin/img/icon-deletelink.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-deletelink.svg.gz b/backend/staticfiles/admin/img/icon-deletelink.svg.gz
deleted file mode 100644
index 4b93e9f3b..000000000
Binary files a/backend/staticfiles/admin/img/icon-deletelink.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-no.439e821418cd.svg b/backend/staticfiles/admin/img/icon-no.439e821418cd.svg
deleted file mode 100644
index 2e0d3832c..000000000
--- a/backend/staticfiles/admin/img/icon-no.439e821418cd.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-no.439e821418cd.svg.gz b/backend/staticfiles/admin/img/icon-no.439e821418cd.svg.gz
deleted file mode 100644
index 251b7df99..000000000
Binary files a/backend/staticfiles/admin/img/icon-no.439e821418cd.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-no.svg b/backend/staticfiles/admin/img/icon-no.svg
deleted file mode 100644
index 2e0d3832c..000000000
--- a/backend/staticfiles/admin/img/icon-no.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-no.svg.gz b/backend/staticfiles/admin/img/icon-no.svg.gz
deleted file mode 100644
index 251b7df99..000000000
Binary files a/backend/staticfiles/admin/img/icon-no.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-unknown-alt.81536e128bb6.svg b/backend/staticfiles/admin/img/icon-unknown-alt.81536e128bb6.svg
deleted file mode 100644
index 1c6b99fc0..000000000
--- a/backend/staticfiles/admin/img/icon-unknown-alt.81536e128bb6.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-unknown-alt.81536e128bb6.svg.gz b/backend/staticfiles/admin/img/icon-unknown-alt.81536e128bb6.svg.gz
deleted file mode 100644
index 3f254adb0..000000000
Binary files a/backend/staticfiles/admin/img/icon-unknown-alt.81536e128bb6.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-unknown-alt.svg b/backend/staticfiles/admin/img/icon-unknown-alt.svg
deleted file mode 100644
index 1c6b99fc0..000000000
--- a/backend/staticfiles/admin/img/icon-unknown-alt.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-unknown-alt.svg.gz b/backend/staticfiles/admin/img/icon-unknown-alt.svg.gz
deleted file mode 100644
index 3f254adb0..000000000
Binary files a/backend/staticfiles/admin/img/icon-unknown-alt.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-unknown.a18cb4398978.svg b/backend/staticfiles/admin/img/icon-unknown.a18cb4398978.svg
deleted file mode 100644
index 50b4f9727..000000000
--- a/backend/staticfiles/admin/img/icon-unknown.a18cb4398978.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-unknown.a18cb4398978.svg.gz b/backend/staticfiles/admin/img/icon-unknown.a18cb4398978.svg.gz
deleted file mode 100644
index 5710ee7fd..000000000
Binary files a/backend/staticfiles/admin/img/icon-unknown.a18cb4398978.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-unknown.svg b/backend/staticfiles/admin/img/icon-unknown.svg
deleted file mode 100644
index 50b4f9727..000000000
--- a/backend/staticfiles/admin/img/icon-unknown.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-unknown.svg.gz b/backend/staticfiles/admin/img/icon-unknown.svg.gz
deleted file mode 100644
index 5710ee7fd..000000000
Binary files a/backend/staticfiles/admin/img/icon-unknown.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-viewlink.41eb31f7826e.svg b/backend/staticfiles/admin/img/icon-viewlink.41eb31f7826e.svg
deleted file mode 100644
index a1ca1d3f4..000000000
--- a/backend/staticfiles/admin/img/icon-viewlink.41eb31f7826e.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-viewlink.41eb31f7826e.svg.gz b/backend/staticfiles/admin/img/icon-viewlink.41eb31f7826e.svg.gz
deleted file mode 100644
index a965b0994..000000000
Binary files a/backend/staticfiles/admin/img/icon-viewlink.41eb31f7826e.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-viewlink.svg b/backend/staticfiles/admin/img/icon-viewlink.svg
deleted file mode 100644
index a1ca1d3f4..000000000
--- a/backend/staticfiles/admin/img/icon-viewlink.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-viewlink.svg.gz b/backend/staticfiles/admin/img/icon-viewlink.svg.gz
deleted file mode 100644
index a965b0994..000000000
Binary files a/backend/staticfiles/admin/img/icon-viewlink.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-yes.d2f9f035226a.svg b/backend/staticfiles/admin/img/icon-yes.d2f9f035226a.svg
deleted file mode 100644
index 5883d877e..000000000
--- a/backend/staticfiles/admin/img/icon-yes.d2f9f035226a.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-yes.d2f9f035226a.svg.gz b/backend/staticfiles/admin/img/icon-yes.d2f9f035226a.svg.gz
deleted file mode 100644
index c35e8df0c..000000000
Binary files a/backend/staticfiles/admin/img/icon-yes.d2f9f035226a.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/icon-yes.svg b/backend/staticfiles/admin/img/icon-yes.svg
deleted file mode 100644
index 5883d877e..000000000
--- a/backend/staticfiles/admin/img/icon-yes.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/icon-yes.svg.gz b/backend/staticfiles/admin/img/icon-yes.svg.gz
deleted file mode 100644
index c35e8df0c..000000000
Binary files a/backend/staticfiles/admin/img/icon-yes.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/inline-delete.fec1b761f254.svg b/backend/staticfiles/admin/img/inline-delete.fec1b761f254.svg
deleted file mode 100644
index 17d1ad67c..000000000
--- a/backend/staticfiles/admin/img/inline-delete.fec1b761f254.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/inline-delete.fec1b761f254.svg.gz b/backend/staticfiles/admin/img/inline-delete.fec1b761f254.svg.gz
deleted file mode 100644
index 75f97b7db..000000000
Binary files a/backend/staticfiles/admin/img/inline-delete.fec1b761f254.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/inline-delete.svg b/backend/staticfiles/admin/img/inline-delete.svg
deleted file mode 100644
index 17d1ad67c..000000000
--- a/backend/staticfiles/admin/img/inline-delete.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/inline-delete.svg.gz b/backend/staticfiles/admin/img/inline-delete.svg.gz
deleted file mode 100644
index 75f97b7db..000000000
Binary files a/backend/staticfiles/admin/img/inline-delete.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/search.7cf54ff789c6.svg b/backend/staticfiles/admin/img/search.7cf54ff789c6.svg
deleted file mode 100644
index c8c69b2ac..000000000
--- a/backend/staticfiles/admin/img/search.7cf54ff789c6.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/search.7cf54ff789c6.svg.gz b/backend/staticfiles/admin/img/search.7cf54ff789c6.svg.gz
deleted file mode 100644
index 28c49b8e4..000000000
Binary files a/backend/staticfiles/admin/img/search.7cf54ff789c6.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/search.svg b/backend/staticfiles/admin/img/search.svg
deleted file mode 100644
index c8c69b2ac..000000000
--- a/backend/staticfiles/admin/img/search.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/search.svg.gz b/backend/staticfiles/admin/img/search.svg.gz
deleted file mode 100644
index 28c49b8e4..000000000
Binary files a/backend/staticfiles/admin/img/search.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/selector-icons.b4555096cea2.svg b/backend/staticfiles/admin/img/selector-icons.b4555096cea2.svg
deleted file mode 100644
index 926b8e21b..000000000
--- a/backend/staticfiles/admin/img/selector-icons.b4555096cea2.svg
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/selector-icons.b4555096cea2.svg.gz b/backend/staticfiles/admin/img/selector-icons.b4555096cea2.svg.gz
deleted file mode 100644
index 99fe6212f..000000000
Binary files a/backend/staticfiles/admin/img/selector-icons.b4555096cea2.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/selector-icons.svg b/backend/staticfiles/admin/img/selector-icons.svg
deleted file mode 100644
index 926b8e21b..000000000
--- a/backend/staticfiles/admin/img/selector-icons.svg
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/selector-icons.svg.gz b/backend/staticfiles/admin/img/selector-icons.svg.gz
deleted file mode 100644
index 99fe6212f..000000000
Binary files a/backend/staticfiles/admin/img/selector-icons.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/sorting-icons.3a097b59f104.svg b/backend/staticfiles/admin/img/sorting-icons.3a097b59f104.svg
deleted file mode 100644
index 7c31ec911..000000000
--- a/backend/staticfiles/admin/img/sorting-icons.3a097b59f104.svg
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/sorting-icons.3a097b59f104.svg.gz b/backend/staticfiles/admin/img/sorting-icons.3a097b59f104.svg.gz
deleted file mode 100644
index f5a302d3e..000000000
Binary files a/backend/staticfiles/admin/img/sorting-icons.3a097b59f104.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/sorting-icons.svg b/backend/staticfiles/admin/img/sorting-icons.svg
deleted file mode 100644
index 7c31ec911..000000000
--- a/backend/staticfiles/admin/img/sorting-icons.svg
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/backend/staticfiles/admin/img/sorting-icons.svg.gz b/backend/staticfiles/admin/img/sorting-icons.svg.gz
deleted file mode 100644
index f5a302d3e..000000000
Binary files a/backend/staticfiles/admin/img/sorting-icons.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/tooltag-add.e59d620a9742.svg b/backend/staticfiles/admin/img/tooltag-add.e59d620a9742.svg
deleted file mode 100644
index 1ca64ae5b..000000000
--- a/backend/staticfiles/admin/img/tooltag-add.e59d620a9742.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/tooltag-add.e59d620a9742.svg.gz b/backend/staticfiles/admin/img/tooltag-add.e59d620a9742.svg.gz
deleted file mode 100644
index dcd1df184..000000000
Binary files a/backend/staticfiles/admin/img/tooltag-add.e59d620a9742.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/tooltag-add.svg b/backend/staticfiles/admin/img/tooltag-add.svg
deleted file mode 100644
index 1ca64ae5b..000000000
--- a/backend/staticfiles/admin/img/tooltag-add.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/tooltag-add.svg.gz b/backend/staticfiles/admin/img/tooltag-add.svg.gz
deleted file mode 100644
index dcd1df184..000000000
Binary files a/backend/staticfiles/admin/img/tooltag-add.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/tooltag-arrowright.bbfb788a849e.svg b/backend/staticfiles/admin/img/tooltag-arrowright.bbfb788a849e.svg
deleted file mode 100644
index b664d6193..000000000
--- a/backend/staticfiles/admin/img/tooltag-arrowright.bbfb788a849e.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/tooltag-arrowright.bbfb788a849e.svg.gz b/backend/staticfiles/admin/img/tooltag-arrowright.bbfb788a849e.svg.gz
deleted file mode 100644
index 54b1c3f51..000000000
Binary files a/backend/staticfiles/admin/img/tooltag-arrowright.bbfb788a849e.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/img/tooltag-arrowright.svg b/backend/staticfiles/admin/img/tooltag-arrowright.svg
deleted file mode 100644
index b664d6193..000000000
--- a/backend/staticfiles/admin/img/tooltag-arrowright.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/backend/staticfiles/admin/img/tooltag-arrowright.svg.gz b/backend/staticfiles/admin/img/tooltag-arrowright.svg.gz
deleted file mode 100644
index 54b1c3f51..000000000
Binary files a/backend/staticfiles/admin/img/tooltag-arrowright.svg.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/SelectBox.8161741c7647.js b/backend/staticfiles/admin/js/SelectBox.8161741c7647.js
deleted file mode 100644
index ace6d9dfb..000000000
--- a/backend/staticfiles/admin/js/SelectBox.8161741c7647.js
+++ /dev/null
@@ -1,112 +0,0 @@
-'use strict';
-{
- const SelectBox = {
- cache: {},
- init: function(id) {
- const box = document.getElementById(id);
- SelectBox.cache[id] = [];
- const cache = SelectBox.cache[id];
- for (const node of box.options) {
- cache.push({value: node.value, text: node.text, displayed: 1});
- }
- },
- redisplay: function(id) {
- // Repopulate HTML select box from cache
- const box = document.getElementById(id);
- const scroll_value_from_top = box.scrollTop;
- box.innerHTML = '';
- for (const node of SelectBox.cache[id]) {
- if (node.displayed) {
- const new_option = new Option(node.text, node.value, false, false);
- // Shows a tooltip when hovering over the option
- new_option.title = node.text;
- box.appendChild(new_option);
- }
- }
- box.scrollTop = scroll_value_from_top;
- },
- filter: function(id, text) {
- // Redisplay the HTML select box, displaying only the choices containing ALL
- // the words in text. (It's an AND search.)
- const tokens = text.toLowerCase().split(/\s+/);
- for (const node of SelectBox.cache[id]) {
- node.displayed = 1;
- const node_text = node.text.toLowerCase();
- for (const token of tokens) {
- if (!node_text.includes(token)) {
- node.displayed = 0;
- break; // Once the first token isn't found we're done
- }
- }
- }
- SelectBox.redisplay(id);
- },
- delete_from_cache: function(id, value) {
- let delete_index = null;
- const cache = SelectBox.cache[id];
- for (const [i, node] of cache.entries()) {
- if (node.value === value) {
- delete_index = i;
- break;
- }
- }
- cache.splice(delete_index, 1);
- },
- add_to_cache: function(id, option) {
- SelectBox.cache[id].push({value: option.value, text: option.text, displayed: 1});
- },
- cache_contains: function(id, value) {
- // Check if an item is contained in the cache
- for (const node of SelectBox.cache[id]) {
- if (node.value === value) {
- return true;
- }
- }
- return false;
- },
- move: function(from, to) {
- const from_box = document.getElementById(from);
- for (const option of from_box.options) {
- const option_value = option.value;
- if (option.selected && SelectBox.cache_contains(from, option_value)) {
- SelectBox.add_to_cache(to, {value: option_value, text: option.text, displayed: 1});
- SelectBox.delete_from_cache(from, option_value);
- }
- }
- SelectBox.redisplay(from);
- SelectBox.redisplay(to);
- },
- move_all: function(from, to) {
- const from_box = document.getElementById(from);
- for (const option of from_box.options) {
- const option_value = option.value;
- if (SelectBox.cache_contains(from, option_value)) {
- SelectBox.add_to_cache(to, {value: option_value, text: option.text, displayed: 1});
- SelectBox.delete_from_cache(from, option_value);
- }
- }
- SelectBox.redisplay(from);
- SelectBox.redisplay(to);
- },
- sort: function(id) {
- SelectBox.cache[id].sort(function(a, b) {
- a = a.text.toLowerCase();
- b = b.text.toLowerCase();
- if (a > b) {
- return 1;
- }
- if (a < b) {
- return -1;
- }
- return 0;
- } );
- },
- select_all: function(id) {
- const box = document.getElementById(id);
- for (const option of box.options) {
- option.selected = true;
- }
- }
- };
- window.SelectBox = SelectBox;
-}
diff --git a/backend/staticfiles/admin/js/SelectBox.8161741c7647.js.gz b/backend/staticfiles/admin/js/SelectBox.8161741c7647.js.gz
deleted file mode 100644
index 5a25140a6..000000000
Binary files a/backend/staticfiles/admin/js/SelectBox.8161741c7647.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/SelectBox.js b/backend/staticfiles/admin/js/SelectBox.js
deleted file mode 100644
index ace6d9dfb..000000000
--- a/backend/staticfiles/admin/js/SelectBox.js
+++ /dev/null
@@ -1,112 +0,0 @@
-'use strict';
-{
- const SelectBox = {
- cache: {},
- init: function(id) {
- const box = document.getElementById(id);
- SelectBox.cache[id] = [];
- const cache = SelectBox.cache[id];
- for (const node of box.options) {
- cache.push({value: node.value, text: node.text, displayed: 1});
- }
- },
- redisplay: function(id) {
- // Repopulate HTML select box from cache
- const box = document.getElementById(id);
- const scroll_value_from_top = box.scrollTop;
- box.innerHTML = '';
- for (const node of SelectBox.cache[id]) {
- if (node.displayed) {
- const new_option = new Option(node.text, node.value, false, false);
- // Shows a tooltip when hovering over the option
- new_option.title = node.text;
- box.appendChild(new_option);
- }
- }
- box.scrollTop = scroll_value_from_top;
- },
- filter: function(id, text) {
- // Redisplay the HTML select box, displaying only the choices containing ALL
- // the words in text. (It's an AND search.)
- const tokens = text.toLowerCase().split(/\s+/);
- for (const node of SelectBox.cache[id]) {
- node.displayed = 1;
- const node_text = node.text.toLowerCase();
- for (const token of tokens) {
- if (!node_text.includes(token)) {
- node.displayed = 0;
- break; // Once the first token isn't found we're done
- }
- }
- }
- SelectBox.redisplay(id);
- },
- delete_from_cache: function(id, value) {
- let delete_index = null;
- const cache = SelectBox.cache[id];
- for (const [i, node] of cache.entries()) {
- if (node.value === value) {
- delete_index = i;
- break;
- }
- }
- cache.splice(delete_index, 1);
- },
- add_to_cache: function(id, option) {
- SelectBox.cache[id].push({value: option.value, text: option.text, displayed: 1});
- },
- cache_contains: function(id, value) {
- // Check if an item is contained in the cache
- for (const node of SelectBox.cache[id]) {
- if (node.value === value) {
- return true;
- }
- }
- return false;
- },
- move: function(from, to) {
- const from_box = document.getElementById(from);
- for (const option of from_box.options) {
- const option_value = option.value;
- if (option.selected && SelectBox.cache_contains(from, option_value)) {
- SelectBox.add_to_cache(to, {value: option_value, text: option.text, displayed: 1});
- SelectBox.delete_from_cache(from, option_value);
- }
- }
- SelectBox.redisplay(from);
- SelectBox.redisplay(to);
- },
- move_all: function(from, to) {
- const from_box = document.getElementById(from);
- for (const option of from_box.options) {
- const option_value = option.value;
- if (SelectBox.cache_contains(from, option_value)) {
- SelectBox.add_to_cache(to, {value: option_value, text: option.text, displayed: 1});
- SelectBox.delete_from_cache(from, option_value);
- }
- }
- SelectBox.redisplay(from);
- SelectBox.redisplay(to);
- },
- sort: function(id) {
- SelectBox.cache[id].sort(function(a, b) {
- a = a.text.toLowerCase();
- b = b.text.toLowerCase();
- if (a > b) {
- return 1;
- }
- if (a < b) {
- return -1;
- }
- return 0;
- } );
- },
- select_all: function(id) {
- const box = document.getElementById(id);
- for (const option of box.options) {
- option.selected = true;
- }
- }
- };
- window.SelectBox = SelectBox;
-}
diff --git a/backend/staticfiles/admin/js/SelectBox.js.gz b/backend/staticfiles/admin/js/SelectBox.js.gz
deleted file mode 100644
index 5a25140a6..000000000
Binary files a/backend/staticfiles/admin/js/SelectBox.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/SelectFilter2.d250dcb52a9a.js b/backend/staticfiles/admin/js/SelectFilter2.d250dcb52a9a.js
deleted file mode 100644
index 6c709a08c..000000000
--- a/backend/staticfiles/admin/js/SelectFilter2.d250dcb52a9a.js
+++ /dev/null
@@ -1,236 +0,0 @@
-/*global SelectBox, gettext, interpolate, quickElement, SelectFilter*/
-/*
-SelectFilter2 - Turns a multiple-select box into a filter interface.
-
-Requires core.js and SelectBox.js.
-*/
-'use strict';
-{
- window.SelectFilter = {
- init: function(field_id, field_name, is_stacked) {
- if (field_id.match(/__prefix__/)) {
- // Don't initialize on empty forms.
- return;
- }
- const from_box = document.getElementById(field_id);
- from_box.id += '_from'; // change its ID
- from_box.className = 'filtered';
-
- for (const p of from_box.parentNode.getElementsByTagName('p')) {
- if (p.classList.contains("info")) {
- // Remove
, because it just gets in the way.
- from_box.parentNode.removeChild(p);
- } else if (p.classList.contains("help")) {
- // Move help text up to the top so it isn't below the select
- // boxes or wrapped off on the side to the right of the add
- // button:
- from_box.parentNode.insertBefore(p, from_box.parentNode.firstChild);
- }
- }
-
- //
or
- const selector_div = quickElement('div', from_box.parentNode);
- selector_div.className = is_stacked ? 'selector stacked' : 'selector';
-
- //
- const selector_available = quickElement('div', selector_div);
- selector_available.className = 'selector-available';
- const title_available = quickElement('h2', selector_available, interpolate(gettext('Available %s') + ' ', [field_name]));
- quickElement(
- 'span', title_available, '',
- 'class', 'help help-tooltip help-icon',
- 'title', interpolate(
- gettext(
- 'This is the list of available %s. You may choose some by ' +
- 'selecting them in the box below and then clicking the ' +
- '"Choose" arrow between the two boxes.'
- ),
- [field_name]
- )
- );
-
- const filter_p = quickElement('p', selector_available, '', 'id', field_id + '_filter');
- filter_p.className = 'selector-filter';
-
- const search_filter_label = quickElement('label', filter_p, '', 'for', field_id + '_input');
-
- quickElement(
- 'span', search_filter_label, '',
- 'class', 'help-tooltip search-label-icon',
- 'title', interpolate(gettext("Type into this box to filter down the list of available %s."), [field_name])
- );
-
- filter_p.appendChild(document.createTextNode(' '));
-
- const filter_input = quickElement('input', filter_p, '', 'type', 'text', 'placeholder', gettext("Filter"));
- filter_input.id = field_id + '_input';
-
- selector_available.appendChild(from_box);
- const choose_all = quickElement('a', selector_available, gettext('Choose all'), 'title', interpolate(gettext('Click to choose all %s at once.'), [field_name]), 'href', '#', 'id', field_id + '_add_all_link');
- choose_all.className = 'selector-chooseall';
-
- //
- const selector_chooser = quickElement('ul', selector_div);
- selector_chooser.className = 'selector-chooser';
- const add_link = quickElement('a', quickElement('li', selector_chooser), gettext('Choose'), 'title', gettext('Choose'), 'href', '#', 'id', field_id + '_add_link');
- add_link.className = 'selector-add';
- const remove_link = quickElement('a', quickElement('li', selector_chooser), gettext('Remove'), 'title', gettext('Remove'), 'href', '#', 'id', field_id + '_remove_link');
- remove_link.className = 'selector-remove';
-
- //
- const selector_chosen = quickElement('div', selector_div);
- selector_chosen.className = 'selector-chosen';
- const title_chosen = quickElement('h2', selector_chosen, interpolate(gettext('Chosen %s') + ' ', [field_name]));
- quickElement(
- 'span', title_chosen, '',
- 'class', 'help help-tooltip help-icon',
- 'title', interpolate(
- gettext(
- 'This is the list of chosen %s. You may remove some by ' +
- 'selecting them in the box below and then clicking the ' +
- '"Remove" arrow between the two boxes.'
- ),
- [field_name]
- )
- );
-
- const to_box = quickElement('select', selector_chosen, '', 'id', field_id + '_to', 'multiple', '', 'size', from_box.size, 'name', from_box.name);
- to_box.className = 'filtered';
- const clear_all = quickElement('a', selector_chosen, gettext('Remove all'), 'title', interpolate(gettext('Click to remove all chosen %s at once.'), [field_name]), 'href', '#', 'id', field_id + '_remove_all_link');
- clear_all.className = 'selector-clearall';
-
- from_box.name = from_box.name + '_old';
-
- // Set up the JavaScript event handlers for the select box filter interface
- const move_selection = function(e, elem, move_func, from, to) {
- if (elem.classList.contains('active')) {
- move_func(from, to);
- SelectFilter.refresh_icons(field_id);
- }
- e.preventDefault();
- };
- choose_all.addEventListener('click', function(e) {
- move_selection(e, this, SelectBox.move_all, field_id + '_from', field_id + '_to');
- });
- add_link.addEventListener('click', function(e) {
- move_selection(e, this, SelectBox.move, field_id + '_from', field_id + '_to');
- });
- remove_link.addEventListener('click', function(e) {
- move_selection(e, this, SelectBox.move, field_id + '_to', field_id + '_from');
- });
- clear_all.addEventListener('click', function(e) {
- move_selection(e, this, SelectBox.move_all, field_id + '_to', field_id + '_from');
- });
- filter_input.addEventListener('keypress', function(e) {
- SelectFilter.filter_key_press(e, field_id);
- });
- filter_input.addEventListener('keyup', function(e) {
- SelectFilter.filter_key_up(e, field_id);
- });
- filter_input.addEventListener('keydown', function(e) {
- SelectFilter.filter_key_down(e, field_id);
- });
- selector_div.addEventListener('change', function(e) {
- if (e.target.tagName === 'SELECT') {
- SelectFilter.refresh_icons(field_id);
- }
- });
- selector_div.addEventListener('dblclick', function(e) {
- if (e.target.tagName === 'OPTION') {
- if (e.target.closest('select').id === field_id + '_to') {
- SelectBox.move(field_id + '_to', field_id + '_from');
- } else {
- SelectBox.move(field_id + '_from', field_id + '_to');
- }
- SelectFilter.refresh_icons(field_id);
- }
- });
- from_box.closest('form').addEventListener('submit', function() {
- SelectBox.select_all(field_id + '_to');
- });
- SelectBox.init(field_id + '_from');
- SelectBox.init(field_id + '_to');
- // Move selected from_box options to to_box
- SelectBox.move(field_id + '_from', field_id + '_to');
-
- if (!is_stacked) {
- // In horizontal mode, give the same height to the two boxes.
- const j_from_box = document.getElementById(field_id + '_from');
- const j_to_box = document.getElementById(field_id + '_to');
- let height = filter_p.offsetHeight + j_from_box.offsetHeight;
-
- const j_to_box_style = window.getComputedStyle(j_to_box);
- if (j_to_box_style.getPropertyValue('box-sizing') === 'border-box') {
- // Add the padding and border to the final height.
- height += parseInt(j_to_box_style.getPropertyValue('padding-top'), 10)
- + parseInt(j_to_box_style.getPropertyValue('padding-bottom'), 10)
- + parseInt(j_to_box_style.getPropertyValue('border-top-width'), 10)
- + parseInt(j_to_box_style.getPropertyValue('border-bottom-width'), 10);
- }
-
- j_to_box.style.height = height + 'px';
- }
-
- // Initial icon refresh
- SelectFilter.refresh_icons(field_id);
- },
- any_selected: function(field) {
- // Temporarily add the required attribute and check validity.
- field.required = true;
- const any_selected = field.checkValidity();
- field.required = false;
- return any_selected;
- },
- refresh_icons: function(field_id) {
- const from = document.getElementById(field_id + '_from');
- const to = document.getElementById(field_id + '_to');
- // Active if at least one item is selected
- document.getElementById(field_id + '_add_link').classList.toggle('active', SelectFilter.any_selected(from));
- document.getElementById(field_id + '_remove_link').classList.toggle('active', SelectFilter.any_selected(to));
- // Active if the corresponding box isn't empty
- document.getElementById(field_id + '_add_all_link').classList.toggle('active', from.querySelector('option'));
- document.getElementById(field_id + '_remove_all_link').classList.toggle('active', to.querySelector('option'));
- },
- filter_key_press: function(event, field_id) {
- const from = document.getElementById(field_id + '_from');
- // don't submit form if user pressed Enter
- if ((event.which && event.which === 13) || (event.keyCode && event.keyCode === 13)) {
- from.selectedIndex = 0;
- SelectBox.move(field_id + '_from', field_id + '_to');
- from.selectedIndex = 0;
- event.preventDefault();
- }
- },
- filter_key_up: function(event, field_id) {
- const from = document.getElementById(field_id + '_from');
- const temp = from.selectedIndex;
- SelectBox.filter(field_id + '_from', document.getElementById(field_id + '_input').value);
- from.selectedIndex = temp;
- },
- filter_key_down: function(event, field_id) {
- const from = document.getElementById(field_id + '_from');
- // right arrow -- move across
- if ((event.which && event.which === 39) || (event.keyCode && event.keyCode === 39)) {
- const old_index = from.selectedIndex;
- SelectBox.move(field_id + '_from', field_id + '_to');
- from.selectedIndex = (old_index === from.length) ? from.length - 1 : old_index;
- return;
- }
- // down arrow -- wrap around
- if ((event.which && event.which === 40) || (event.keyCode && event.keyCode === 40)) {
- from.selectedIndex = (from.length === from.selectedIndex + 1) ? 0 : from.selectedIndex + 1;
- }
- // up arrow -- wrap around
- if ((event.which && event.which === 38) || (event.keyCode && event.keyCode === 38)) {
- from.selectedIndex = (from.selectedIndex === 0) ? from.length - 1 : from.selectedIndex - 1;
- }
- }
- };
-
- window.addEventListener('load', function(e) {
- document.querySelectorAll('select.selectfilter, select.selectfilterstacked').forEach(function(el) {
- const data = el.dataset;
- SelectFilter.init(el.id, data.fieldName, parseInt(data.isStacked, 10));
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/SelectFilter2.d250dcb52a9a.js.gz b/backend/staticfiles/admin/js/SelectFilter2.d250dcb52a9a.js.gz
deleted file mode 100644
index 858a1c6d1..000000000
Binary files a/backend/staticfiles/admin/js/SelectFilter2.d250dcb52a9a.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/SelectFilter2.js b/backend/staticfiles/admin/js/SelectFilter2.js
deleted file mode 100644
index 6c709a08c..000000000
--- a/backend/staticfiles/admin/js/SelectFilter2.js
+++ /dev/null
@@ -1,236 +0,0 @@
-/*global SelectBox, gettext, interpolate, quickElement, SelectFilter*/
-/*
-SelectFilter2 - Turns a multiple-select box into a filter interface.
-
-Requires core.js and SelectBox.js.
-*/
-'use strict';
-{
- window.SelectFilter = {
- init: function(field_id, field_name, is_stacked) {
- if (field_id.match(/__prefix__/)) {
- // Don't initialize on empty forms.
- return;
- }
- const from_box = document.getElementById(field_id);
- from_box.id += '_from'; // change its ID
- from_box.className = 'filtered';
-
- for (const p of from_box.parentNode.getElementsByTagName('p')) {
- if (p.classList.contains("info")) {
- // Remove
, because it just gets in the way.
- from_box.parentNode.removeChild(p);
- } else if (p.classList.contains("help")) {
- // Move help text up to the top so it isn't below the select
- // boxes or wrapped off on the side to the right of the add
- // button:
- from_box.parentNode.insertBefore(p, from_box.parentNode.firstChild);
- }
- }
-
- //
or
- const selector_div = quickElement('div', from_box.parentNode);
- selector_div.className = is_stacked ? 'selector stacked' : 'selector';
-
- //
- const selector_available = quickElement('div', selector_div);
- selector_available.className = 'selector-available';
- const title_available = quickElement('h2', selector_available, interpolate(gettext('Available %s') + ' ', [field_name]));
- quickElement(
- 'span', title_available, '',
- 'class', 'help help-tooltip help-icon',
- 'title', interpolate(
- gettext(
- 'This is the list of available %s. You may choose some by ' +
- 'selecting them in the box below and then clicking the ' +
- '"Choose" arrow between the two boxes.'
- ),
- [field_name]
- )
- );
-
- const filter_p = quickElement('p', selector_available, '', 'id', field_id + '_filter');
- filter_p.className = 'selector-filter';
-
- const search_filter_label = quickElement('label', filter_p, '', 'for', field_id + '_input');
-
- quickElement(
- 'span', search_filter_label, '',
- 'class', 'help-tooltip search-label-icon',
- 'title', interpolate(gettext("Type into this box to filter down the list of available %s."), [field_name])
- );
-
- filter_p.appendChild(document.createTextNode(' '));
-
- const filter_input = quickElement('input', filter_p, '', 'type', 'text', 'placeholder', gettext("Filter"));
- filter_input.id = field_id + '_input';
-
- selector_available.appendChild(from_box);
- const choose_all = quickElement('a', selector_available, gettext('Choose all'), 'title', interpolate(gettext('Click to choose all %s at once.'), [field_name]), 'href', '#', 'id', field_id + '_add_all_link');
- choose_all.className = 'selector-chooseall';
-
- //
- const selector_chooser = quickElement('ul', selector_div);
- selector_chooser.className = 'selector-chooser';
- const add_link = quickElement('a', quickElement('li', selector_chooser), gettext('Choose'), 'title', gettext('Choose'), 'href', '#', 'id', field_id + '_add_link');
- add_link.className = 'selector-add';
- const remove_link = quickElement('a', quickElement('li', selector_chooser), gettext('Remove'), 'title', gettext('Remove'), 'href', '#', 'id', field_id + '_remove_link');
- remove_link.className = 'selector-remove';
-
- //
- const selector_chosen = quickElement('div', selector_div);
- selector_chosen.className = 'selector-chosen';
- const title_chosen = quickElement('h2', selector_chosen, interpolate(gettext('Chosen %s') + ' ', [field_name]));
- quickElement(
- 'span', title_chosen, '',
- 'class', 'help help-tooltip help-icon',
- 'title', interpolate(
- gettext(
- 'This is the list of chosen %s. You may remove some by ' +
- 'selecting them in the box below and then clicking the ' +
- '"Remove" arrow between the two boxes.'
- ),
- [field_name]
- )
- );
-
- const to_box = quickElement('select', selector_chosen, '', 'id', field_id + '_to', 'multiple', '', 'size', from_box.size, 'name', from_box.name);
- to_box.className = 'filtered';
- const clear_all = quickElement('a', selector_chosen, gettext('Remove all'), 'title', interpolate(gettext('Click to remove all chosen %s at once.'), [field_name]), 'href', '#', 'id', field_id + '_remove_all_link');
- clear_all.className = 'selector-clearall';
-
- from_box.name = from_box.name + '_old';
-
- // Set up the JavaScript event handlers for the select box filter interface
- const move_selection = function(e, elem, move_func, from, to) {
- if (elem.classList.contains('active')) {
- move_func(from, to);
- SelectFilter.refresh_icons(field_id);
- }
- e.preventDefault();
- };
- choose_all.addEventListener('click', function(e) {
- move_selection(e, this, SelectBox.move_all, field_id + '_from', field_id + '_to');
- });
- add_link.addEventListener('click', function(e) {
- move_selection(e, this, SelectBox.move, field_id + '_from', field_id + '_to');
- });
- remove_link.addEventListener('click', function(e) {
- move_selection(e, this, SelectBox.move, field_id + '_to', field_id + '_from');
- });
- clear_all.addEventListener('click', function(e) {
- move_selection(e, this, SelectBox.move_all, field_id + '_to', field_id + '_from');
- });
- filter_input.addEventListener('keypress', function(e) {
- SelectFilter.filter_key_press(e, field_id);
- });
- filter_input.addEventListener('keyup', function(e) {
- SelectFilter.filter_key_up(e, field_id);
- });
- filter_input.addEventListener('keydown', function(e) {
- SelectFilter.filter_key_down(e, field_id);
- });
- selector_div.addEventListener('change', function(e) {
- if (e.target.tagName === 'SELECT') {
- SelectFilter.refresh_icons(field_id);
- }
- });
- selector_div.addEventListener('dblclick', function(e) {
- if (e.target.tagName === 'OPTION') {
- if (e.target.closest('select').id === field_id + '_to') {
- SelectBox.move(field_id + '_to', field_id + '_from');
- } else {
- SelectBox.move(field_id + '_from', field_id + '_to');
- }
- SelectFilter.refresh_icons(field_id);
- }
- });
- from_box.closest('form').addEventListener('submit', function() {
- SelectBox.select_all(field_id + '_to');
- });
- SelectBox.init(field_id + '_from');
- SelectBox.init(field_id + '_to');
- // Move selected from_box options to to_box
- SelectBox.move(field_id + '_from', field_id + '_to');
-
- if (!is_stacked) {
- // In horizontal mode, give the same height to the two boxes.
- const j_from_box = document.getElementById(field_id + '_from');
- const j_to_box = document.getElementById(field_id + '_to');
- let height = filter_p.offsetHeight + j_from_box.offsetHeight;
-
- const j_to_box_style = window.getComputedStyle(j_to_box);
- if (j_to_box_style.getPropertyValue('box-sizing') === 'border-box') {
- // Add the padding and border to the final height.
- height += parseInt(j_to_box_style.getPropertyValue('padding-top'), 10)
- + parseInt(j_to_box_style.getPropertyValue('padding-bottom'), 10)
- + parseInt(j_to_box_style.getPropertyValue('border-top-width'), 10)
- + parseInt(j_to_box_style.getPropertyValue('border-bottom-width'), 10);
- }
-
- j_to_box.style.height = height + 'px';
- }
-
- // Initial icon refresh
- SelectFilter.refresh_icons(field_id);
- },
- any_selected: function(field) {
- // Temporarily add the required attribute and check validity.
- field.required = true;
- const any_selected = field.checkValidity();
- field.required = false;
- return any_selected;
- },
- refresh_icons: function(field_id) {
- const from = document.getElementById(field_id + '_from');
- const to = document.getElementById(field_id + '_to');
- // Active if at least one item is selected
- document.getElementById(field_id + '_add_link').classList.toggle('active', SelectFilter.any_selected(from));
- document.getElementById(field_id + '_remove_link').classList.toggle('active', SelectFilter.any_selected(to));
- // Active if the corresponding box isn't empty
- document.getElementById(field_id + '_add_all_link').classList.toggle('active', from.querySelector('option'));
- document.getElementById(field_id + '_remove_all_link').classList.toggle('active', to.querySelector('option'));
- },
- filter_key_press: function(event, field_id) {
- const from = document.getElementById(field_id + '_from');
- // don't submit form if user pressed Enter
- if ((event.which && event.which === 13) || (event.keyCode && event.keyCode === 13)) {
- from.selectedIndex = 0;
- SelectBox.move(field_id + '_from', field_id + '_to');
- from.selectedIndex = 0;
- event.preventDefault();
- }
- },
- filter_key_up: function(event, field_id) {
- const from = document.getElementById(field_id + '_from');
- const temp = from.selectedIndex;
- SelectBox.filter(field_id + '_from', document.getElementById(field_id + '_input').value);
- from.selectedIndex = temp;
- },
- filter_key_down: function(event, field_id) {
- const from = document.getElementById(field_id + '_from');
- // right arrow -- move across
- if ((event.which && event.which === 39) || (event.keyCode && event.keyCode === 39)) {
- const old_index = from.selectedIndex;
- SelectBox.move(field_id + '_from', field_id + '_to');
- from.selectedIndex = (old_index === from.length) ? from.length - 1 : old_index;
- return;
- }
- // down arrow -- wrap around
- if ((event.which && event.which === 40) || (event.keyCode && event.keyCode === 40)) {
- from.selectedIndex = (from.length === from.selectedIndex + 1) ? 0 : from.selectedIndex + 1;
- }
- // up arrow -- wrap around
- if ((event.which && event.which === 38) || (event.keyCode && event.keyCode === 38)) {
- from.selectedIndex = (from.selectedIndex === 0) ? from.length - 1 : from.selectedIndex - 1;
- }
- }
- };
-
- window.addEventListener('load', function(e) {
- document.querySelectorAll('select.selectfilter, select.selectfilterstacked').forEach(function(el) {
- const data = el.dataset;
- SelectFilter.init(el.id, data.fieldName, parseInt(data.isStacked, 10));
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/SelectFilter2.js.gz b/backend/staticfiles/admin/js/SelectFilter2.js.gz
deleted file mode 100644
index 858a1c6d1..000000000
Binary files a/backend/staticfiles/admin/js/SelectFilter2.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/actions.a6d23e8853fd.js b/backend/staticfiles/admin/js/actions.a6d23e8853fd.js
deleted file mode 100644
index da1c31085..000000000
--- a/backend/staticfiles/admin/js/actions.a6d23e8853fd.js
+++ /dev/null
@@ -1,196 +0,0 @@
-/*global gettext, interpolate, ngettext*/
-'use strict';
-{
- function show(selector) {
- document.querySelectorAll(selector).forEach(function(el) {
- el.classList.remove('hidden');
- });
- }
-
- function hide(selector) {
- document.querySelectorAll(selector).forEach(function(el) {
- el.classList.add('hidden');
- });
- }
-
- function showQuestion(options) {
- hide(options.acrossClears);
- show(options.acrossQuestions);
- hide(options.allContainer);
- }
-
- function showClear(options) {
- show(options.acrossClears);
- hide(options.acrossQuestions);
- document.querySelector(options.actionContainer).classList.remove(options.selectedClass);
- show(options.allContainer);
- hide(options.counterContainer);
- }
-
- function reset(options) {
- hide(options.acrossClears);
- hide(options.acrossQuestions);
- hide(options.allContainer);
- show(options.counterContainer);
- }
-
- function clearAcross(options) {
- reset(options);
- document.querySelector(options.acrossInput).value = 0;
- document.querySelector(options.actionContainer).classList.remove(options.selectedClass);
- }
-
- function checker(actionCheckboxes, options, checked) {
- if (checked) {
- showQuestion(options);
- } else {
- reset(options);
- }
- actionCheckboxes.forEach(function(el) {
- el.checked = checked;
- el.closest('tr').classList.toggle(options.selectedClass, checked);
- });
- }
-
- function updateCounter(actionCheckboxes, options) {
- const sel = Array.from(actionCheckboxes).filter(function(el) {
- return el.checked;
- }).length;
- const counter = document.querySelector(options.counterContainer);
- // data-actions-icnt is defined in the generated HTML
- // and contains the total amount of objects in the queryset
- const actions_icnt = Number(counter.dataset.actionsIcnt);
- counter.textContent = interpolate(
- ngettext('%(sel)s of %(cnt)s selected', '%(sel)s of %(cnt)s selected', sel), {
- sel: sel,
- cnt: actions_icnt
- }, true);
- const allToggle = document.getElementById(options.allToggleId);
- allToggle.checked = sel === actionCheckboxes.length;
- if (allToggle.checked) {
- showQuestion(options);
- } else {
- clearAcross(options);
- }
- }
-
- const defaults = {
- actionContainer: "div.actions",
- counterContainer: "span.action-counter",
- allContainer: "div.actions span.all",
- acrossInput: "div.actions input.select-across",
- acrossQuestions: "div.actions span.question",
- acrossClears: "div.actions span.clear",
- allToggleId: "action-toggle",
- selectedClass: "selected"
- };
-
- window.Actions = function(actionCheckboxes, options) {
- options = Object.assign({}, defaults, options);
- let list_editable_changed = false;
- let lastChecked = null;
- let shiftPressed = false;
-
- document.addEventListener('keydown', (event) => {
- shiftPressed = event.shiftKey;
- });
-
- document.addEventListener('keyup', (event) => {
- shiftPressed = event.shiftKey;
- });
-
- document.getElementById(options.allToggleId).addEventListener('click', function(event) {
- checker(actionCheckboxes, options, this.checked);
- updateCounter(actionCheckboxes, options);
- });
-
- document.querySelectorAll(options.acrossQuestions + " a").forEach(function(el) {
- el.addEventListener('click', function(event) {
- event.preventDefault();
- const acrossInput = document.querySelector(options.acrossInput);
- acrossInput.value = 1;
- showClear(options);
- });
- });
-
- document.querySelectorAll(options.acrossClears + " a").forEach(function(el) {
- el.addEventListener('click', function(event) {
- event.preventDefault();
- document.getElementById(options.allToggleId).checked = false;
- clearAcross(options);
- checker(actionCheckboxes, options, false);
- updateCounter(actionCheckboxes, options);
- });
- });
-
- function affectedCheckboxes(target, withModifier) {
- const multiSelect = (lastChecked && withModifier && lastChecked !== target);
- if (!multiSelect) {
- return [target];
- }
- const checkboxes = Array.from(actionCheckboxes);
- const targetIndex = checkboxes.findIndex(el => el === target);
- const lastCheckedIndex = checkboxes.findIndex(el => el === lastChecked);
- const startIndex = Math.min(targetIndex, lastCheckedIndex);
- const endIndex = Math.max(targetIndex, lastCheckedIndex);
- const filtered = checkboxes.filter((el, index) => (startIndex <= index) && (index <= endIndex));
- return filtered;
- };
-
- Array.from(document.getElementById('result_list').tBodies).forEach(function(el) {
- el.addEventListener('change', function(event) {
- const target = event.target;
- if (target.classList.contains('action-select')) {
- const checkboxes = affectedCheckboxes(target, shiftPressed);
- checker(checkboxes, options, target.checked);
- updateCounter(actionCheckboxes, options);
- lastChecked = target;
- } else {
- list_editable_changed = true;
- }
- });
- });
-
- document.querySelector('#changelist-form button[name=index]').addEventListener('click', function() {
- if (list_editable_changed) {
- const confirmed = confirm(gettext("You have unsaved changes on individual editable fields. If you run an action, your unsaved changes will be lost."));
- if (!confirmed) {
- event.preventDefault();
- }
- }
- });
-
- const el = document.querySelector('#changelist-form input[name=_save]');
- // The button does not exist if no fields are editable.
- if (el) {
- el.addEventListener('click', function(event) {
- if (document.querySelector('[name=action]').value) {
- const text = list_editable_changed
- ? gettext("You have selected an action, but you haven’t saved your changes to individual fields yet. Please click OK to save. You’ll need to re-run the action.")
- : gettext("You have selected an action, and you haven’t made any changes on individual fields. You’re probably looking for the Go button rather than the Save button.");
- if (!confirm(text)) {
- event.preventDefault();
- }
- }
- });
- }
- };
-
- // Call function fn when the DOM is loaded and ready. If it is already
- // loaded, call the function now.
- // http://youmightnotneedjquery.com/#ready
- function ready(fn) {
- if (document.readyState !== 'loading') {
- fn();
- } else {
- document.addEventListener('DOMContentLoaded', fn);
- }
- }
-
- ready(function() {
- const actionsEls = document.querySelectorAll('tr input.action-select');
- if (actionsEls.length > 0) {
- Actions(actionsEls);
- }
- });
-}
diff --git a/backend/staticfiles/admin/js/actions.a6d23e8853fd.js.gz b/backend/staticfiles/admin/js/actions.a6d23e8853fd.js.gz
deleted file mode 100644
index 00964db24..000000000
Binary files a/backend/staticfiles/admin/js/actions.a6d23e8853fd.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/actions.js b/backend/staticfiles/admin/js/actions.js
deleted file mode 100644
index da1c31085..000000000
--- a/backend/staticfiles/admin/js/actions.js
+++ /dev/null
@@ -1,196 +0,0 @@
-/*global gettext, interpolate, ngettext*/
-'use strict';
-{
- function show(selector) {
- document.querySelectorAll(selector).forEach(function(el) {
- el.classList.remove('hidden');
- });
- }
-
- function hide(selector) {
- document.querySelectorAll(selector).forEach(function(el) {
- el.classList.add('hidden');
- });
- }
-
- function showQuestion(options) {
- hide(options.acrossClears);
- show(options.acrossQuestions);
- hide(options.allContainer);
- }
-
- function showClear(options) {
- show(options.acrossClears);
- hide(options.acrossQuestions);
- document.querySelector(options.actionContainer).classList.remove(options.selectedClass);
- show(options.allContainer);
- hide(options.counterContainer);
- }
-
- function reset(options) {
- hide(options.acrossClears);
- hide(options.acrossQuestions);
- hide(options.allContainer);
- show(options.counterContainer);
- }
-
- function clearAcross(options) {
- reset(options);
- document.querySelector(options.acrossInput).value = 0;
- document.querySelector(options.actionContainer).classList.remove(options.selectedClass);
- }
-
- function checker(actionCheckboxes, options, checked) {
- if (checked) {
- showQuestion(options);
- } else {
- reset(options);
- }
- actionCheckboxes.forEach(function(el) {
- el.checked = checked;
- el.closest('tr').classList.toggle(options.selectedClass, checked);
- });
- }
-
- function updateCounter(actionCheckboxes, options) {
- const sel = Array.from(actionCheckboxes).filter(function(el) {
- return el.checked;
- }).length;
- const counter = document.querySelector(options.counterContainer);
- // data-actions-icnt is defined in the generated HTML
- // and contains the total amount of objects in the queryset
- const actions_icnt = Number(counter.dataset.actionsIcnt);
- counter.textContent = interpolate(
- ngettext('%(sel)s of %(cnt)s selected', '%(sel)s of %(cnt)s selected', sel), {
- sel: sel,
- cnt: actions_icnt
- }, true);
- const allToggle = document.getElementById(options.allToggleId);
- allToggle.checked = sel === actionCheckboxes.length;
- if (allToggle.checked) {
- showQuestion(options);
- } else {
- clearAcross(options);
- }
- }
-
- const defaults = {
- actionContainer: "div.actions",
- counterContainer: "span.action-counter",
- allContainer: "div.actions span.all",
- acrossInput: "div.actions input.select-across",
- acrossQuestions: "div.actions span.question",
- acrossClears: "div.actions span.clear",
- allToggleId: "action-toggle",
- selectedClass: "selected"
- };
-
- window.Actions = function(actionCheckboxes, options) {
- options = Object.assign({}, defaults, options);
- let list_editable_changed = false;
- let lastChecked = null;
- let shiftPressed = false;
-
- document.addEventListener('keydown', (event) => {
- shiftPressed = event.shiftKey;
- });
-
- document.addEventListener('keyup', (event) => {
- shiftPressed = event.shiftKey;
- });
-
- document.getElementById(options.allToggleId).addEventListener('click', function(event) {
- checker(actionCheckboxes, options, this.checked);
- updateCounter(actionCheckboxes, options);
- });
-
- document.querySelectorAll(options.acrossQuestions + " a").forEach(function(el) {
- el.addEventListener('click', function(event) {
- event.preventDefault();
- const acrossInput = document.querySelector(options.acrossInput);
- acrossInput.value = 1;
- showClear(options);
- });
- });
-
- document.querySelectorAll(options.acrossClears + " a").forEach(function(el) {
- el.addEventListener('click', function(event) {
- event.preventDefault();
- document.getElementById(options.allToggleId).checked = false;
- clearAcross(options);
- checker(actionCheckboxes, options, false);
- updateCounter(actionCheckboxes, options);
- });
- });
-
- function affectedCheckboxes(target, withModifier) {
- const multiSelect = (lastChecked && withModifier && lastChecked !== target);
- if (!multiSelect) {
- return [target];
- }
- const checkboxes = Array.from(actionCheckboxes);
- const targetIndex = checkboxes.findIndex(el => el === target);
- const lastCheckedIndex = checkboxes.findIndex(el => el === lastChecked);
- const startIndex = Math.min(targetIndex, lastCheckedIndex);
- const endIndex = Math.max(targetIndex, lastCheckedIndex);
- const filtered = checkboxes.filter((el, index) => (startIndex <= index) && (index <= endIndex));
- return filtered;
- };
-
- Array.from(document.getElementById('result_list').tBodies).forEach(function(el) {
- el.addEventListener('change', function(event) {
- const target = event.target;
- if (target.classList.contains('action-select')) {
- const checkboxes = affectedCheckboxes(target, shiftPressed);
- checker(checkboxes, options, target.checked);
- updateCounter(actionCheckboxes, options);
- lastChecked = target;
- } else {
- list_editable_changed = true;
- }
- });
- });
-
- document.querySelector('#changelist-form button[name=index]').addEventListener('click', function() {
- if (list_editable_changed) {
- const confirmed = confirm(gettext("You have unsaved changes on individual editable fields. If you run an action, your unsaved changes will be lost."));
- if (!confirmed) {
- event.preventDefault();
- }
- }
- });
-
- const el = document.querySelector('#changelist-form input[name=_save]');
- // The button does not exist if no fields are editable.
- if (el) {
- el.addEventListener('click', function(event) {
- if (document.querySelector('[name=action]').value) {
- const text = list_editable_changed
- ? gettext("You have selected an action, but you haven’t saved your changes to individual fields yet. Please click OK to save. You’ll need to re-run the action.")
- : gettext("You have selected an action, and you haven’t made any changes on individual fields. You’re probably looking for the Go button rather than the Save button.");
- if (!confirm(text)) {
- event.preventDefault();
- }
- }
- });
- }
- };
-
- // Call function fn when the DOM is loaded and ready. If it is already
- // loaded, call the function now.
- // http://youmightnotneedjquery.com/#ready
- function ready(fn) {
- if (document.readyState !== 'loading') {
- fn();
- } else {
- document.addEventListener('DOMContentLoaded', fn);
- }
- }
-
- ready(function() {
- const actionsEls = document.querySelectorAll('tr input.action-select');
- if (actionsEls.length > 0) {
- Actions(actionsEls);
- }
- });
-}
diff --git a/backend/staticfiles/admin/js/actions.js.gz b/backend/staticfiles/admin/js/actions.js.gz
deleted file mode 100644
index 00964db24..000000000
Binary files a/backend/staticfiles/admin/js/actions.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/admin/DateTimeShortcuts.5548f99471bf.js b/backend/staticfiles/admin/js/admin/DateTimeShortcuts.5548f99471bf.js
deleted file mode 100644
index 9bad0f54c..000000000
--- a/backend/staticfiles/admin/js/admin/DateTimeShortcuts.5548f99471bf.js
+++ /dev/null
@@ -1,415 +0,0 @@
-/*global Calendar, findPosX, findPosY, get_format, gettext, gettext_noop, interpolate, ngettext, quickElement*/
-// Inserts shortcut buttons after all of the following:
-//
-//
-'use strict';
-{
- const DateTimeShortcuts = {
- calendars: [],
- calendarInputs: [],
- clockInputs: [],
- clockHours: {
- default_: [
- [gettext_noop('Now'), -1],
- [gettext_noop('Midnight'), 0],
- [gettext_noop('6 a.m.'), 6],
- [gettext_noop('Noon'), 12],
- [gettext_noop('6 p.m.'), 18]
- ]
- },
- dismissClockFunc: [],
- dismissCalendarFunc: [],
- calendarDivName1: 'calendarbox', // name of calendar
that gets toggled
- calendarDivName2: 'calendarin', // name of
that contains calendar
- calendarLinkName: 'calendarlink', // name of the link that is used to toggle
- clockDivName: 'clockbox', // name of clock
that gets toggled
- clockLinkName: 'clocklink', // name of the link that is used to toggle
- shortCutsClass: 'datetimeshortcuts', // class of the clock and cal shortcuts
- timezoneWarningClass: 'timezonewarning', // class of the warning for timezone mismatch
- timezoneOffset: 0,
- init: function() {
- const serverOffset = document.body.dataset.adminUtcOffset;
- if (serverOffset) {
- const localOffset = new Date().getTimezoneOffset() * -60;
- DateTimeShortcuts.timezoneOffset = localOffset - serverOffset;
- }
-
- for (const inp of document.getElementsByTagName('input')) {
- if (inp.type === 'text' && inp.classList.contains('vTimeField')) {
- DateTimeShortcuts.addClock(inp);
- DateTimeShortcuts.addTimezoneWarning(inp);
- }
- else if (inp.type === 'text' && inp.classList.contains('vDateField')) {
- DateTimeShortcuts.addCalendar(inp);
- DateTimeShortcuts.addTimezoneWarning(inp);
- }
- }
- },
- // Return the current time while accounting for the server timezone.
- now: function() {
- const serverOffset = document.body.dataset.adminUtcOffset;
- if (serverOffset) {
- const localNow = new Date();
- const localOffset = localNow.getTimezoneOffset() * -60;
- localNow.setTime(localNow.getTime() + 1000 * (serverOffset - localOffset));
- return localNow;
- } else {
- return new Date();
- }
- },
- // Add a warning when the time zone in the browser and backend do not match.
- addTimezoneWarning: function(inp) {
- const warningClass = DateTimeShortcuts.timezoneWarningClass;
- let timezoneOffset = DateTimeShortcuts.timezoneOffset / 3600;
-
- // Only warn if there is a time zone mismatch.
- if (!timezoneOffset) {
- return;
- }
-
- // Check if warning is already there.
- if (inp.parentNode.querySelectorAll('.' + warningClass).length) {
- return;
- }
-
- let message;
- if (timezoneOffset > 0) {
- message = ngettext(
- 'Note: You are %s hour ahead of server time.',
- 'Note: You are %s hours ahead of server time.',
- timezoneOffset
- );
- }
- else {
- timezoneOffset *= -1;
- message = ngettext(
- 'Note: You are %s hour behind server time.',
- 'Note: You are %s hours behind server time.',
- timezoneOffset
- );
- }
- message = interpolate(message, [timezoneOffset]);
-
- const warning = document.createElement('span');
- warning.className = warningClass;
- warning.textContent = message;
- inp.parentNode.appendChild(document.createElement('br'));
- inp.parentNode.appendChild(warning);
- },
- // Add clock widget to a given field
- addClock: function(inp) {
- const num = DateTimeShortcuts.clockInputs.length;
- DateTimeShortcuts.clockInputs[num] = inp;
- DateTimeShortcuts.dismissClockFunc[num] = function() { DateTimeShortcuts.dismissClock(num); return true; };
-
- // Shortcut links (clock icon and "Now" link)
- const shortcuts_span = document.createElement('span');
- shortcuts_span.className = DateTimeShortcuts.shortCutsClass;
- inp.parentNode.insertBefore(shortcuts_span, inp.nextSibling);
- const now_link = document.createElement('a');
- now_link.href = "#";
- now_link.textContent = gettext('Now');
- now_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleClockQuicklink(num, -1);
- });
- const clock_link = document.createElement('a');
- clock_link.href = '#';
- clock_link.id = DateTimeShortcuts.clockLinkName + num;
- clock_link.addEventListener('click', function(e) {
- e.preventDefault();
- // avoid triggering the document click handler to dismiss the clock
- e.stopPropagation();
- DateTimeShortcuts.openClock(num);
- });
-
- quickElement(
- 'span', clock_link, '',
- 'class', 'clock-icon',
- 'title', gettext('Choose a Time')
- );
- shortcuts_span.appendChild(document.createTextNode('\u00A0'));
- shortcuts_span.appendChild(now_link);
- shortcuts_span.appendChild(document.createTextNode('\u00A0|\u00A0'));
- shortcuts_span.appendChild(clock_link);
-
- // Create clock link div
- //
- // Markup looks like:
- //
- //
Choose a time
- //
- //
Cancel
- //
-
- const clock_box = document.createElement('div');
- clock_box.style.display = 'none';
- clock_box.style.position = 'absolute';
- clock_box.className = 'clockbox module';
- clock_box.id = DateTimeShortcuts.clockDivName + num;
- document.body.appendChild(clock_box);
- clock_box.addEventListener('click', function(e) { e.stopPropagation(); });
-
- quickElement('h2', clock_box, gettext('Choose a time'));
- const time_list = quickElement('ul', clock_box);
- time_list.className = 'timelist';
- // The list of choices can be overridden in JavaScript like this:
- // DateTimeShortcuts.clockHours.name = [['3 a.m.', 3]];
- // where name is the name attribute of the
.
- const name = typeof DateTimeShortcuts.clockHours[inp.name] === 'undefined' ? 'default_' : inp.name;
- DateTimeShortcuts.clockHours[name].forEach(function(element) {
- const time_link = quickElement('a', quickElement('li', time_list), gettext(element[0]), 'href', '#');
- time_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleClockQuicklink(num, element[1]);
- });
- });
-
- const cancel_p = quickElement('p', clock_box);
- cancel_p.className = 'calendar-cancel';
- const cancel_link = quickElement('a', cancel_p, gettext('Cancel'), 'href', '#');
- cancel_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.dismissClock(num);
- });
-
- document.addEventListener('keyup', function(event) {
- if (event.which === 27) {
- // ESC key closes popup
- DateTimeShortcuts.dismissClock(num);
- event.preventDefault();
- }
- });
- },
- openClock: function(num) {
- const clock_box = document.getElementById(DateTimeShortcuts.clockDivName + num);
- const clock_link = document.getElementById(DateTimeShortcuts.clockLinkName + num);
-
- // Recalculate the clockbox position
- // is it left-to-right or right-to-left layout ?
- if (window.getComputedStyle(document.body).direction !== 'rtl') {
- clock_box.style.left = findPosX(clock_link) + 17 + 'px';
- }
- else {
- // since style's width is in em, it'd be tough to calculate
- // px value of it. let's use an estimated px for now
- clock_box.style.left = findPosX(clock_link) - 110 + 'px';
- }
- clock_box.style.top = Math.max(0, findPosY(clock_link) - 30) + 'px';
-
- // Show the clock box
- clock_box.style.display = 'block';
- document.addEventListener('click', DateTimeShortcuts.dismissClockFunc[num]);
- },
- dismissClock: function(num) {
- document.getElementById(DateTimeShortcuts.clockDivName + num).style.display = 'none';
- document.removeEventListener('click', DateTimeShortcuts.dismissClockFunc[num]);
- },
- handleClockQuicklink: function(num, val) {
- let d;
- if (val === -1) {
- d = DateTimeShortcuts.now();
- }
- else {
- d = new Date(1970, 1, 1, val, 0, 0, 0);
- }
- DateTimeShortcuts.clockInputs[num].value = d.strftime(get_format('TIME_INPUT_FORMATS')[0]);
- DateTimeShortcuts.clockInputs[num].focus();
- DateTimeShortcuts.dismissClock(num);
- },
- // Add calendar widget to a given field.
- addCalendar: function(inp) {
- const num = DateTimeShortcuts.calendars.length;
-
- DateTimeShortcuts.calendarInputs[num] = inp;
- DateTimeShortcuts.dismissCalendarFunc[num] = function() { DateTimeShortcuts.dismissCalendar(num); return true; };
-
- // Shortcut links (calendar icon and "Today" link)
- const shortcuts_span = document.createElement('span');
- shortcuts_span.className = DateTimeShortcuts.shortCutsClass;
- inp.parentNode.insertBefore(shortcuts_span, inp.nextSibling);
- const today_link = document.createElement('a');
- today_link.href = '#';
- today_link.appendChild(document.createTextNode(gettext('Today')));
- today_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleCalendarQuickLink(num, 0);
- });
- const cal_link = document.createElement('a');
- cal_link.href = '#';
- cal_link.id = DateTimeShortcuts.calendarLinkName + num;
- cal_link.addEventListener('click', function(e) {
- e.preventDefault();
- // avoid triggering the document click handler to dismiss the calendar
- e.stopPropagation();
- DateTimeShortcuts.openCalendar(num);
- });
- quickElement(
- 'span', cal_link, '',
- 'class', 'date-icon',
- 'title', gettext('Choose a Date')
- );
- shortcuts_span.appendChild(document.createTextNode('\u00A0'));
- shortcuts_span.appendChild(today_link);
- shortcuts_span.appendChild(document.createTextNode('\u00A0|\u00A0'));
- shortcuts_span.appendChild(cal_link);
-
- // Create calendarbox div.
- //
- // Markup looks like:
- //
- //
- //
- // ‹
- // › February 2003
- //
- //
- //
- //
- //
- //
Cancel
- //
- const cal_box = document.createElement('div');
- cal_box.style.display = 'none';
- cal_box.style.position = 'absolute';
- cal_box.className = 'calendarbox module';
- cal_box.id = DateTimeShortcuts.calendarDivName1 + num;
- document.body.appendChild(cal_box);
- cal_box.addEventListener('click', function(e) { e.stopPropagation(); });
-
- // next-prev links
- const cal_nav = quickElement('div', cal_box);
- const cal_nav_prev = quickElement('a', cal_nav, '<', 'href', '#');
- cal_nav_prev.className = 'calendarnav-previous';
- cal_nav_prev.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.drawPrev(num);
- });
-
- const cal_nav_next = quickElement('a', cal_nav, '>', 'href', '#');
- cal_nav_next.className = 'calendarnav-next';
- cal_nav_next.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.drawNext(num);
- });
-
- // main box
- const cal_main = quickElement('div', cal_box, '', 'id', DateTimeShortcuts.calendarDivName2 + num);
- cal_main.className = 'calendar';
- DateTimeShortcuts.calendars[num] = new Calendar(DateTimeShortcuts.calendarDivName2 + num, DateTimeShortcuts.handleCalendarCallback(num));
- DateTimeShortcuts.calendars[num].drawCurrent();
-
- // calendar shortcuts
- const shortcuts = quickElement('div', cal_box);
- shortcuts.className = 'calendar-shortcuts';
- let day_link = quickElement('a', shortcuts, gettext('Yesterday'), 'href', '#');
- day_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleCalendarQuickLink(num, -1);
- });
- shortcuts.appendChild(document.createTextNode('\u00A0|\u00A0'));
- day_link = quickElement('a', shortcuts, gettext('Today'), 'href', '#');
- day_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleCalendarQuickLink(num, 0);
- });
- shortcuts.appendChild(document.createTextNode('\u00A0|\u00A0'));
- day_link = quickElement('a', shortcuts, gettext('Tomorrow'), 'href', '#');
- day_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleCalendarQuickLink(num, +1);
- });
-
- // cancel bar
- const cancel_p = quickElement('p', cal_box);
- cancel_p.className = 'calendar-cancel';
- const cancel_link = quickElement('a', cancel_p, gettext('Cancel'), 'href', '#');
- cancel_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.dismissCalendar(num);
- });
- document.addEventListener('keyup', function(event) {
- if (event.which === 27) {
- // ESC key closes popup
- DateTimeShortcuts.dismissCalendar(num);
- event.preventDefault();
- }
- });
- },
- openCalendar: function(num) {
- const cal_box = document.getElementById(DateTimeShortcuts.calendarDivName1 + num);
- const cal_link = document.getElementById(DateTimeShortcuts.calendarLinkName + num);
- const inp = DateTimeShortcuts.calendarInputs[num];
-
- // Determine if the current value in the input has a valid date.
- // If so, draw the calendar with that date's year and month.
- if (inp.value) {
- const format = get_format('DATE_INPUT_FORMATS')[0];
- const selected = inp.value.strptime(format);
- const year = selected.getUTCFullYear();
- const month = selected.getUTCMonth() + 1;
- const re = /\d{4}/;
- if (re.test(year.toString()) && month >= 1 && month <= 12) {
- DateTimeShortcuts.calendars[num].drawDate(month, year, selected);
- }
- }
-
- // Recalculate the clockbox position
- // is it left-to-right or right-to-left layout ?
- if (window.getComputedStyle(document.body).direction !== 'rtl') {
- cal_box.style.left = findPosX(cal_link) + 17 + 'px';
- }
- else {
- // since style's width is in em, it'd be tough to calculate
- // px value of it. let's use an estimated px for now
- cal_box.style.left = findPosX(cal_link) - 180 + 'px';
- }
- cal_box.style.top = Math.max(0, findPosY(cal_link) - 75) + 'px';
-
- cal_box.style.display = 'block';
- document.addEventListener('click', DateTimeShortcuts.dismissCalendarFunc[num]);
- },
- dismissCalendar: function(num) {
- document.getElementById(DateTimeShortcuts.calendarDivName1 + num).style.display = 'none';
- document.removeEventListener('click', DateTimeShortcuts.dismissCalendarFunc[num]);
- },
- drawPrev: function(num) {
- DateTimeShortcuts.calendars[num].drawPreviousMonth();
- },
- drawNext: function(num) {
- DateTimeShortcuts.calendars[num].drawNextMonth();
- },
- handleCalendarCallback: function(num) {
- let format = get_format('DATE_INPUT_FORMATS')[0];
- // the format needs to be escaped a little
- format = format.replace('\\', '\\\\')
- .replace('\r', '\\r')
- .replace('\n', '\\n')
- .replace('\t', '\\t')
- .replace("'", "\\'");
- return function(y, m, d) {
- DateTimeShortcuts.calendarInputs[num].value = new Date(y, m - 1, d).strftime(format);
- DateTimeShortcuts.calendarInputs[num].focus();
- document.getElementById(DateTimeShortcuts.calendarDivName1 + num).style.display = 'none';
- };
- },
- handleCalendarQuickLink: function(num, offset) {
- const d = DateTimeShortcuts.now();
- d.setDate(d.getDate() + offset);
- DateTimeShortcuts.calendarInputs[num].value = d.strftime(get_format('DATE_INPUT_FORMATS')[0]);
- DateTimeShortcuts.calendarInputs[num].focus();
- DateTimeShortcuts.dismissCalendar(num);
- }
- };
-
- window.addEventListener('load', DateTimeShortcuts.init);
- window.DateTimeShortcuts = DateTimeShortcuts;
-}
diff --git a/backend/staticfiles/admin/js/admin/DateTimeShortcuts.5548f99471bf.js.gz b/backend/staticfiles/admin/js/admin/DateTimeShortcuts.5548f99471bf.js.gz
deleted file mode 100644
index c414e76e7..000000000
Binary files a/backend/staticfiles/admin/js/admin/DateTimeShortcuts.5548f99471bf.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/admin/DateTimeShortcuts.js b/backend/staticfiles/admin/js/admin/DateTimeShortcuts.js
deleted file mode 100644
index 9bad0f54c..000000000
--- a/backend/staticfiles/admin/js/admin/DateTimeShortcuts.js
+++ /dev/null
@@ -1,415 +0,0 @@
-/*global Calendar, findPosX, findPosY, get_format, gettext, gettext_noop, interpolate, ngettext, quickElement*/
-// Inserts shortcut buttons after all of the following:
-//
-//
-'use strict';
-{
- const DateTimeShortcuts = {
- calendars: [],
- calendarInputs: [],
- clockInputs: [],
- clockHours: {
- default_: [
- [gettext_noop('Now'), -1],
- [gettext_noop('Midnight'), 0],
- [gettext_noop('6 a.m.'), 6],
- [gettext_noop('Noon'), 12],
- [gettext_noop('6 p.m.'), 18]
- ]
- },
- dismissClockFunc: [],
- dismissCalendarFunc: [],
- calendarDivName1: 'calendarbox', // name of calendar
that gets toggled
- calendarDivName2: 'calendarin', // name of
that contains calendar
- calendarLinkName: 'calendarlink', // name of the link that is used to toggle
- clockDivName: 'clockbox', // name of clock
that gets toggled
- clockLinkName: 'clocklink', // name of the link that is used to toggle
- shortCutsClass: 'datetimeshortcuts', // class of the clock and cal shortcuts
- timezoneWarningClass: 'timezonewarning', // class of the warning for timezone mismatch
- timezoneOffset: 0,
- init: function() {
- const serverOffset = document.body.dataset.adminUtcOffset;
- if (serverOffset) {
- const localOffset = new Date().getTimezoneOffset() * -60;
- DateTimeShortcuts.timezoneOffset = localOffset - serverOffset;
- }
-
- for (const inp of document.getElementsByTagName('input')) {
- if (inp.type === 'text' && inp.classList.contains('vTimeField')) {
- DateTimeShortcuts.addClock(inp);
- DateTimeShortcuts.addTimezoneWarning(inp);
- }
- else if (inp.type === 'text' && inp.classList.contains('vDateField')) {
- DateTimeShortcuts.addCalendar(inp);
- DateTimeShortcuts.addTimezoneWarning(inp);
- }
- }
- },
- // Return the current time while accounting for the server timezone.
- now: function() {
- const serverOffset = document.body.dataset.adminUtcOffset;
- if (serverOffset) {
- const localNow = new Date();
- const localOffset = localNow.getTimezoneOffset() * -60;
- localNow.setTime(localNow.getTime() + 1000 * (serverOffset - localOffset));
- return localNow;
- } else {
- return new Date();
- }
- },
- // Add a warning when the time zone in the browser and backend do not match.
- addTimezoneWarning: function(inp) {
- const warningClass = DateTimeShortcuts.timezoneWarningClass;
- let timezoneOffset = DateTimeShortcuts.timezoneOffset / 3600;
-
- // Only warn if there is a time zone mismatch.
- if (!timezoneOffset) {
- return;
- }
-
- // Check if warning is already there.
- if (inp.parentNode.querySelectorAll('.' + warningClass).length) {
- return;
- }
-
- let message;
- if (timezoneOffset > 0) {
- message = ngettext(
- 'Note: You are %s hour ahead of server time.',
- 'Note: You are %s hours ahead of server time.',
- timezoneOffset
- );
- }
- else {
- timezoneOffset *= -1;
- message = ngettext(
- 'Note: You are %s hour behind server time.',
- 'Note: You are %s hours behind server time.',
- timezoneOffset
- );
- }
- message = interpolate(message, [timezoneOffset]);
-
- const warning = document.createElement('span');
- warning.className = warningClass;
- warning.textContent = message;
- inp.parentNode.appendChild(document.createElement('br'));
- inp.parentNode.appendChild(warning);
- },
- // Add clock widget to a given field
- addClock: function(inp) {
- const num = DateTimeShortcuts.clockInputs.length;
- DateTimeShortcuts.clockInputs[num] = inp;
- DateTimeShortcuts.dismissClockFunc[num] = function() { DateTimeShortcuts.dismissClock(num); return true; };
-
- // Shortcut links (clock icon and "Now" link)
- const shortcuts_span = document.createElement('span');
- shortcuts_span.className = DateTimeShortcuts.shortCutsClass;
- inp.parentNode.insertBefore(shortcuts_span, inp.nextSibling);
- const now_link = document.createElement('a');
- now_link.href = "#";
- now_link.textContent = gettext('Now');
- now_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleClockQuicklink(num, -1);
- });
- const clock_link = document.createElement('a');
- clock_link.href = '#';
- clock_link.id = DateTimeShortcuts.clockLinkName + num;
- clock_link.addEventListener('click', function(e) {
- e.preventDefault();
- // avoid triggering the document click handler to dismiss the clock
- e.stopPropagation();
- DateTimeShortcuts.openClock(num);
- });
-
- quickElement(
- 'span', clock_link, '',
- 'class', 'clock-icon',
- 'title', gettext('Choose a Time')
- );
- shortcuts_span.appendChild(document.createTextNode('\u00A0'));
- shortcuts_span.appendChild(now_link);
- shortcuts_span.appendChild(document.createTextNode('\u00A0|\u00A0'));
- shortcuts_span.appendChild(clock_link);
-
- // Create clock link div
- //
- // Markup looks like:
- //
- //
Choose a time
- //
- //
Cancel
- //
-
- const clock_box = document.createElement('div');
- clock_box.style.display = 'none';
- clock_box.style.position = 'absolute';
- clock_box.className = 'clockbox module';
- clock_box.id = DateTimeShortcuts.clockDivName + num;
- document.body.appendChild(clock_box);
- clock_box.addEventListener('click', function(e) { e.stopPropagation(); });
-
- quickElement('h2', clock_box, gettext('Choose a time'));
- const time_list = quickElement('ul', clock_box);
- time_list.className = 'timelist';
- // The list of choices can be overridden in JavaScript like this:
- // DateTimeShortcuts.clockHours.name = [['3 a.m.', 3]];
- // where name is the name attribute of the
.
- const name = typeof DateTimeShortcuts.clockHours[inp.name] === 'undefined' ? 'default_' : inp.name;
- DateTimeShortcuts.clockHours[name].forEach(function(element) {
- const time_link = quickElement('a', quickElement('li', time_list), gettext(element[0]), 'href', '#');
- time_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleClockQuicklink(num, element[1]);
- });
- });
-
- const cancel_p = quickElement('p', clock_box);
- cancel_p.className = 'calendar-cancel';
- const cancel_link = quickElement('a', cancel_p, gettext('Cancel'), 'href', '#');
- cancel_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.dismissClock(num);
- });
-
- document.addEventListener('keyup', function(event) {
- if (event.which === 27) {
- // ESC key closes popup
- DateTimeShortcuts.dismissClock(num);
- event.preventDefault();
- }
- });
- },
- openClock: function(num) {
- const clock_box = document.getElementById(DateTimeShortcuts.clockDivName + num);
- const clock_link = document.getElementById(DateTimeShortcuts.clockLinkName + num);
-
- // Recalculate the clockbox position
- // is it left-to-right or right-to-left layout ?
- if (window.getComputedStyle(document.body).direction !== 'rtl') {
- clock_box.style.left = findPosX(clock_link) + 17 + 'px';
- }
- else {
- // since style's width is in em, it'd be tough to calculate
- // px value of it. let's use an estimated px for now
- clock_box.style.left = findPosX(clock_link) - 110 + 'px';
- }
- clock_box.style.top = Math.max(0, findPosY(clock_link) - 30) + 'px';
-
- // Show the clock box
- clock_box.style.display = 'block';
- document.addEventListener('click', DateTimeShortcuts.dismissClockFunc[num]);
- },
- dismissClock: function(num) {
- document.getElementById(DateTimeShortcuts.clockDivName + num).style.display = 'none';
- document.removeEventListener('click', DateTimeShortcuts.dismissClockFunc[num]);
- },
- handleClockQuicklink: function(num, val) {
- let d;
- if (val === -1) {
- d = DateTimeShortcuts.now();
- }
- else {
- d = new Date(1970, 1, 1, val, 0, 0, 0);
- }
- DateTimeShortcuts.clockInputs[num].value = d.strftime(get_format('TIME_INPUT_FORMATS')[0]);
- DateTimeShortcuts.clockInputs[num].focus();
- DateTimeShortcuts.dismissClock(num);
- },
- // Add calendar widget to a given field.
- addCalendar: function(inp) {
- const num = DateTimeShortcuts.calendars.length;
-
- DateTimeShortcuts.calendarInputs[num] = inp;
- DateTimeShortcuts.dismissCalendarFunc[num] = function() { DateTimeShortcuts.dismissCalendar(num); return true; };
-
- // Shortcut links (calendar icon and "Today" link)
- const shortcuts_span = document.createElement('span');
- shortcuts_span.className = DateTimeShortcuts.shortCutsClass;
- inp.parentNode.insertBefore(shortcuts_span, inp.nextSibling);
- const today_link = document.createElement('a');
- today_link.href = '#';
- today_link.appendChild(document.createTextNode(gettext('Today')));
- today_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleCalendarQuickLink(num, 0);
- });
- const cal_link = document.createElement('a');
- cal_link.href = '#';
- cal_link.id = DateTimeShortcuts.calendarLinkName + num;
- cal_link.addEventListener('click', function(e) {
- e.preventDefault();
- // avoid triggering the document click handler to dismiss the calendar
- e.stopPropagation();
- DateTimeShortcuts.openCalendar(num);
- });
- quickElement(
- 'span', cal_link, '',
- 'class', 'date-icon',
- 'title', gettext('Choose a Date')
- );
- shortcuts_span.appendChild(document.createTextNode('\u00A0'));
- shortcuts_span.appendChild(today_link);
- shortcuts_span.appendChild(document.createTextNode('\u00A0|\u00A0'));
- shortcuts_span.appendChild(cal_link);
-
- // Create calendarbox div.
- //
- // Markup looks like:
- //
- //
- //
- // ‹
- // › February 2003
- //
- //
- //
- //
- //
- //
Cancel
- //
- const cal_box = document.createElement('div');
- cal_box.style.display = 'none';
- cal_box.style.position = 'absolute';
- cal_box.className = 'calendarbox module';
- cal_box.id = DateTimeShortcuts.calendarDivName1 + num;
- document.body.appendChild(cal_box);
- cal_box.addEventListener('click', function(e) { e.stopPropagation(); });
-
- // next-prev links
- const cal_nav = quickElement('div', cal_box);
- const cal_nav_prev = quickElement('a', cal_nav, '<', 'href', '#');
- cal_nav_prev.className = 'calendarnav-previous';
- cal_nav_prev.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.drawPrev(num);
- });
-
- const cal_nav_next = quickElement('a', cal_nav, '>', 'href', '#');
- cal_nav_next.className = 'calendarnav-next';
- cal_nav_next.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.drawNext(num);
- });
-
- // main box
- const cal_main = quickElement('div', cal_box, '', 'id', DateTimeShortcuts.calendarDivName2 + num);
- cal_main.className = 'calendar';
- DateTimeShortcuts.calendars[num] = new Calendar(DateTimeShortcuts.calendarDivName2 + num, DateTimeShortcuts.handleCalendarCallback(num));
- DateTimeShortcuts.calendars[num].drawCurrent();
-
- // calendar shortcuts
- const shortcuts = quickElement('div', cal_box);
- shortcuts.className = 'calendar-shortcuts';
- let day_link = quickElement('a', shortcuts, gettext('Yesterday'), 'href', '#');
- day_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleCalendarQuickLink(num, -1);
- });
- shortcuts.appendChild(document.createTextNode('\u00A0|\u00A0'));
- day_link = quickElement('a', shortcuts, gettext('Today'), 'href', '#');
- day_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleCalendarQuickLink(num, 0);
- });
- shortcuts.appendChild(document.createTextNode('\u00A0|\u00A0'));
- day_link = quickElement('a', shortcuts, gettext('Tomorrow'), 'href', '#');
- day_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.handleCalendarQuickLink(num, +1);
- });
-
- // cancel bar
- const cancel_p = quickElement('p', cal_box);
- cancel_p.className = 'calendar-cancel';
- const cancel_link = quickElement('a', cancel_p, gettext('Cancel'), 'href', '#');
- cancel_link.addEventListener('click', function(e) {
- e.preventDefault();
- DateTimeShortcuts.dismissCalendar(num);
- });
- document.addEventListener('keyup', function(event) {
- if (event.which === 27) {
- // ESC key closes popup
- DateTimeShortcuts.dismissCalendar(num);
- event.preventDefault();
- }
- });
- },
- openCalendar: function(num) {
- const cal_box = document.getElementById(DateTimeShortcuts.calendarDivName1 + num);
- const cal_link = document.getElementById(DateTimeShortcuts.calendarLinkName + num);
- const inp = DateTimeShortcuts.calendarInputs[num];
-
- // Determine if the current value in the input has a valid date.
- // If so, draw the calendar with that date's year and month.
- if (inp.value) {
- const format = get_format('DATE_INPUT_FORMATS')[0];
- const selected = inp.value.strptime(format);
- const year = selected.getUTCFullYear();
- const month = selected.getUTCMonth() + 1;
- const re = /\d{4}/;
- if (re.test(year.toString()) && month >= 1 && month <= 12) {
- DateTimeShortcuts.calendars[num].drawDate(month, year, selected);
- }
- }
-
- // Recalculate the clockbox position
- // is it left-to-right or right-to-left layout ?
- if (window.getComputedStyle(document.body).direction !== 'rtl') {
- cal_box.style.left = findPosX(cal_link) + 17 + 'px';
- }
- else {
- // since style's width is in em, it'd be tough to calculate
- // px value of it. let's use an estimated px for now
- cal_box.style.left = findPosX(cal_link) - 180 + 'px';
- }
- cal_box.style.top = Math.max(0, findPosY(cal_link) - 75) + 'px';
-
- cal_box.style.display = 'block';
- document.addEventListener('click', DateTimeShortcuts.dismissCalendarFunc[num]);
- },
- dismissCalendar: function(num) {
- document.getElementById(DateTimeShortcuts.calendarDivName1 + num).style.display = 'none';
- document.removeEventListener('click', DateTimeShortcuts.dismissCalendarFunc[num]);
- },
- drawPrev: function(num) {
- DateTimeShortcuts.calendars[num].drawPreviousMonth();
- },
- drawNext: function(num) {
- DateTimeShortcuts.calendars[num].drawNextMonth();
- },
- handleCalendarCallback: function(num) {
- let format = get_format('DATE_INPUT_FORMATS')[0];
- // the format needs to be escaped a little
- format = format.replace('\\', '\\\\')
- .replace('\r', '\\r')
- .replace('\n', '\\n')
- .replace('\t', '\\t')
- .replace("'", "\\'");
- return function(y, m, d) {
- DateTimeShortcuts.calendarInputs[num].value = new Date(y, m - 1, d).strftime(format);
- DateTimeShortcuts.calendarInputs[num].focus();
- document.getElementById(DateTimeShortcuts.calendarDivName1 + num).style.display = 'none';
- };
- },
- handleCalendarQuickLink: function(num, offset) {
- const d = DateTimeShortcuts.now();
- d.setDate(d.getDate() + offset);
- DateTimeShortcuts.calendarInputs[num].value = d.strftime(get_format('DATE_INPUT_FORMATS')[0]);
- DateTimeShortcuts.calendarInputs[num].focus();
- DateTimeShortcuts.dismissCalendar(num);
- }
- };
-
- window.addEventListener('load', DateTimeShortcuts.init);
- window.DateTimeShortcuts = DateTimeShortcuts;
-}
diff --git a/backend/staticfiles/admin/js/admin/DateTimeShortcuts.js.gz b/backend/staticfiles/admin/js/admin/DateTimeShortcuts.js.gz
deleted file mode 100644
index c414e76e7..000000000
Binary files a/backend/staticfiles/admin/js/admin/DateTimeShortcuts.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/admin/RelatedObjectLookups.b4d76b6aaf0b.js b/backend/staticfiles/admin/js/admin/RelatedObjectLookups.b4d76b6aaf0b.js
deleted file mode 100644
index 289e1cee2..000000000
--- a/backend/staticfiles/admin/js/admin/RelatedObjectLookups.b4d76b6aaf0b.js
+++ /dev/null
@@ -1,155 +0,0 @@
-/*global SelectBox, interpolate*/
-// Handles related-objects functionality: lookup link for raw_id_fields
-// and Add Another links.
-'use strict';
-{
- const $ = django.jQuery;
-
- function showAdminPopup(triggeringLink, name_regexp, add_popup) {
- const name = triggeringLink.id.replace(name_regexp, '');
- const href = new URL(triggeringLink.href);
- if (add_popup) {
- href.searchParams.set('_popup', 1);
- }
- const win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes');
- win.focus();
- return false;
- }
-
- function showRelatedObjectLookupPopup(triggeringLink) {
- return showAdminPopup(triggeringLink, /^lookup_/, true);
- }
-
- function dismissRelatedLookupPopup(win, chosenId) {
- const name = win.name;
- const elem = document.getElementById(name);
- if (elem.classList.contains('vManyToManyRawIdAdminField') && elem.value) {
- elem.value += ',' + chosenId;
- } else {
- document.getElementById(name).value = chosenId;
- }
- win.close();
- }
-
- function showRelatedObjectPopup(triggeringLink) {
- return showAdminPopup(triggeringLink, /^(change|add|delete)_/, false);
- }
-
- function updateRelatedObjectLinks(triggeringLink) {
- const $this = $(triggeringLink);
- const siblings = $this.nextAll('.view-related, .change-related, .delete-related');
- if (!siblings.length) {
- return;
- }
- const value = $this.val();
- if (value) {
- siblings.each(function() {
- const elm = $(this);
- elm.attr('href', elm.attr('data-href-template').replace('__fk__', value));
- });
- } else {
- siblings.removeAttr('href');
- }
- }
-
- function dismissAddRelatedObjectPopup(win, newId, newRepr) {
- const name = win.name;
- const elem = document.getElementById(name);
- if (elem) {
- const elemName = elem.nodeName.toUpperCase();
- if (elemName === 'SELECT') {
- elem.options[elem.options.length] = new Option(newRepr, newId, true, true);
- } else if (elemName === 'INPUT') {
- if (elem.classList.contains('vManyToManyRawIdAdminField') && elem.value) {
- elem.value += ',' + newId;
- } else {
- elem.value = newId;
- }
- }
- // Trigger a change event to update related links if required.
- $(elem).trigger('change');
- } else {
- const toId = name + "_to";
- const o = new Option(newRepr, newId);
- SelectBox.add_to_cache(toId, o);
- SelectBox.redisplay(toId);
- }
- win.close();
- }
-
- function dismissChangeRelatedObjectPopup(win, objId, newRepr, newId) {
- const id = win.name.replace(/^edit_/, '');
- const selectsSelector = interpolate('#%s, #%s_from, #%s_to', [id, id, id]);
- const selects = $(selectsSelector);
- selects.find('option').each(function() {
- if (this.value === objId) {
- this.textContent = newRepr;
- this.value = newId;
- }
- });
- selects.next().find('.select2-selection__rendered').each(function() {
- // The element can have a clear button as a child.
- // Use the lastChild to modify only the displayed value.
- this.lastChild.textContent = newRepr;
- this.title = newRepr;
- });
- win.close();
- }
-
- function dismissDeleteRelatedObjectPopup(win, objId) {
- const id = win.name.replace(/^delete_/, '');
- const selectsSelector = interpolate('#%s, #%s_from, #%s_to', [id, id, id]);
- const selects = $(selectsSelector);
- selects.find('option').each(function() {
- if (this.value === objId) {
- $(this).remove();
- }
- }).trigger('change');
- win.close();
- }
-
- window.showRelatedObjectLookupPopup = showRelatedObjectLookupPopup;
- window.dismissRelatedLookupPopup = dismissRelatedLookupPopup;
- window.showRelatedObjectPopup = showRelatedObjectPopup;
- window.updateRelatedObjectLinks = updateRelatedObjectLinks;
- window.dismissAddRelatedObjectPopup = dismissAddRelatedObjectPopup;
- window.dismissChangeRelatedObjectPopup = dismissChangeRelatedObjectPopup;
- window.dismissDeleteRelatedObjectPopup = dismissDeleteRelatedObjectPopup;
-
- // Kept for backward compatibility
- window.showAddAnotherPopup = showRelatedObjectPopup;
- window.dismissAddAnotherPopup = dismissAddRelatedObjectPopup;
-
- $(document).ready(function() {
- $("a[data-popup-opener]").on('click', function(event) {
- event.preventDefault();
- opener.dismissRelatedLookupPopup(window, $(this).data("popup-opener"));
- });
- $('body').on('click', '.related-widget-wrapper-link', function(e) {
- e.preventDefault();
- if (this.href) {
- const event = $.Event('django:show-related', {href: this.href});
- $(this).trigger(event);
- if (!event.isDefaultPrevented()) {
- showRelatedObjectPopup(this);
- }
- }
- });
- $('body').on('change', '.related-widget-wrapper select', function(e) {
- const event = $.Event('django:update-related');
- $(this).trigger(event);
- if (!event.isDefaultPrevented()) {
- updateRelatedObjectLinks(this);
- }
- });
- $('.related-widget-wrapper select').trigger('change');
- $('body').on('click', '.related-lookup', function(e) {
- e.preventDefault();
- const event = $.Event('django:lookup-related');
- $(this).trigger(event);
- if (!event.isDefaultPrevented()) {
- showRelatedObjectLookupPopup(this);
- }
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/admin/RelatedObjectLookups.b4d76b6aaf0b.js.gz b/backend/staticfiles/admin/js/admin/RelatedObjectLookups.b4d76b6aaf0b.js.gz
deleted file mode 100644
index 4e93b053b..000000000
Binary files a/backend/staticfiles/admin/js/admin/RelatedObjectLookups.b4d76b6aaf0b.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/admin/RelatedObjectLookups.js b/backend/staticfiles/admin/js/admin/RelatedObjectLookups.js
deleted file mode 100644
index 289e1cee2..000000000
--- a/backend/staticfiles/admin/js/admin/RelatedObjectLookups.js
+++ /dev/null
@@ -1,155 +0,0 @@
-/*global SelectBox, interpolate*/
-// Handles related-objects functionality: lookup link for raw_id_fields
-// and Add Another links.
-'use strict';
-{
- const $ = django.jQuery;
-
- function showAdminPopup(triggeringLink, name_regexp, add_popup) {
- const name = triggeringLink.id.replace(name_regexp, '');
- const href = new URL(triggeringLink.href);
- if (add_popup) {
- href.searchParams.set('_popup', 1);
- }
- const win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes');
- win.focus();
- return false;
- }
-
- function showRelatedObjectLookupPopup(triggeringLink) {
- return showAdminPopup(triggeringLink, /^lookup_/, true);
- }
-
- function dismissRelatedLookupPopup(win, chosenId) {
- const name = win.name;
- const elem = document.getElementById(name);
- if (elem.classList.contains('vManyToManyRawIdAdminField') && elem.value) {
- elem.value += ',' + chosenId;
- } else {
- document.getElementById(name).value = chosenId;
- }
- win.close();
- }
-
- function showRelatedObjectPopup(triggeringLink) {
- return showAdminPopup(triggeringLink, /^(change|add|delete)_/, false);
- }
-
- function updateRelatedObjectLinks(triggeringLink) {
- const $this = $(triggeringLink);
- const siblings = $this.nextAll('.view-related, .change-related, .delete-related');
- if (!siblings.length) {
- return;
- }
- const value = $this.val();
- if (value) {
- siblings.each(function() {
- const elm = $(this);
- elm.attr('href', elm.attr('data-href-template').replace('__fk__', value));
- });
- } else {
- siblings.removeAttr('href');
- }
- }
-
- function dismissAddRelatedObjectPopup(win, newId, newRepr) {
- const name = win.name;
- const elem = document.getElementById(name);
- if (elem) {
- const elemName = elem.nodeName.toUpperCase();
- if (elemName === 'SELECT') {
- elem.options[elem.options.length] = new Option(newRepr, newId, true, true);
- } else if (elemName === 'INPUT') {
- if (elem.classList.contains('vManyToManyRawIdAdminField') && elem.value) {
- elem.value += ',' + newId;
- } else {
- elem.value = newId;
- }
- }
- // Trigger a change event to update related links if required.
- $(elem).trigger('change');
- } else {
- const toId = name + "_to";
- const o = new Option(newRepr, newId);
- SelectBox.add_to_cache(toId, o);
- SelectBox.redisplay(toId);
- }
- win.close();
- }
-
- function dismissChangeRelatedObjectPopup(win, objId, newRepr, newId) {
- const id = win.name.replace(/^edit_/, '');
- const selectsSelector = interpolate('#%s, #%s_from, #%s_to', [id, id, id]);
- const selects = $(selectsSelector);
- selects.find('option').each(function() {
- if (this.value === objId) {
- this.textContent = newRepr;
- this.value = newId;
- }
- });
- selects.next().find('.select2-selection__rendered').each(function() {
- // The element can have a clear button as a child.
- // Use the lastChild to modify only the displayed value.
- this.lastChild.textContent = newRepr;
- this.title = newRepr;
- });
- win.close();
- }
-
- function dismissDeleteRelatedObjectPopup(win, objId) {
- const id = win.name.replace(/^delete_/, '');
- const selectsSelector = interpolate('#%s, #%s_from, #%s_to', [id, id, id]);
- const selects = $(selectsSelector);
- selects.find('option').each(function() {
- if (this.value === objId) {
- $(this).remove();
- }
- }).trigger('change');
- win.close();
- }
-
- window.showRelatedObjectLookupPopup = showRelatedObjectLookupPopup;
- window.dismissRelatedLookupPopup = dismissRelatedLookupPopup;
- window.showRelatedObjectPopup = showRelatedObjectPopup;
- window.updateRelatedObjectLinks = updateRelatedObjectLinks;
- window.dismissAddRelatedObjectPopup = dismissAddRelatedObjectPopup;
- window.dismissChangeRelatedObjectPopup = dismissChangeRelatedObjectPopup;
- window.dismissDeleteRelatedObjectPopup = dismissDeleteRelatedObjectPopup;
-
- // Kept for backward compatibility
- window.showAddAnotherPopup = showRelatedObjectPopup;
- window.dismissAddAnotherPopup = dismissAddRelatedObjectPopup;
-
- $(document).ready(function() {
- $("a[data-popup-opener]").on('click', function(event) {
- event.preventDefault();
- opener.dismissRelatedLookupPopup(window, $(this).data("popup-opener"));
- });
- $('body').on('click', '.related-widget-wrapper-link', function(e) {
- e.preventDefault();
- if (this.href) {
- const event = $.Event('django:show-related', {href: this.href});
- $(this).trigger(event);
- if (!event.isDefaultPrevented()) {
- showRelatedObjectPopup(this);
- }
- }
- });
- $('body').on('change', '.related-widget-wrapper select', function(e) {
- const event = $.Event('django:update-related');
- $(this).trigger(event);
- if (!event.isDefaultPrevented()) {
- updateRelatedObjectLinks(this);
- }
- });
- $('.related-widget-wrapper select').trigger('change');
- $('body').on('click', '.related-lookup', function(e) {
- e.preventDefault();
- const event = $.Event('django:lookup-related');
- $(this).trigger(event);
- if (!event.isDefaultPrevented()) {
- showRelatedObjectLookupPopup(this);
- }
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/admin/RelatedObjectLookups.js.gz b/backend/staticfiles/admin/js/admin/RelatedObjectLookups.js.gz
deleted file mode 100644
index 4e93b053b..000000000
Binary files a/backend/staticfiles/admin/js/admin/RelatedObjectLookups.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/autocomplete.b6b77d0e5906.js b/backend/staticfiles/admin/js/autocomplete.b6b77d0e5906.js
deleted file mode 100644
index c55eee1fa..000000000
--- a/backend/staticfiles/admin/js/autocomplete.b6b77d0e5906.js
+++ /dev/null
@@ -1,41 +0,0 @@
-'use strict';
-{
- const $ = django.jQuery;
- const init = function($element, options) {
- const settings = $.extend({
- ajax: {
- data: function(params) {
- return {
- term: params.term,
- page: params.page,
- app_label: $element.data('app-label'),
- model_name: $element.data('model-name'),
- field_name: $element.data('field-name')
- };
- }
- }
- }, options);
- $element.select2(settings);
- };
-
- $.fn.djangoAdminSelect2 = function(options) {
- const settings = $.extend({}, options);
- $.each(this, function(i, element) {
- const $element = $(element);
- init($element, settings);
- });
- return this;
- };
-
- $(function() {
- // Initialize all autocomplete widgets except the one in the template
- // form used when a new formset is added.
- $('.admin-autocomplete').not('[name*=__prefix__]').djangoAdminSelect2();
- });
-
- $(document).on('formset:added', (function() {
- return function(event, $newFormset) {
- return $newFormset.find('.admin-autocomplete').djangoAdminSelect2();
- };
- })(this));
-}
diff --git a/backend/staticfiles/admin/js/autocomplete.b6b77d0e5906.js.gz b/backend/staticfiles/admin/js/autocomplete.b6b77d0e5906.js.gz
deleted file mode 100644
index 3c73ff104..000000000
Binary files a/backend/staticfiles/admin/js/autocomplete.b6b77d0e5906.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/autocomplete.js b/backend/staticfiles/admin/js/autocomplete.js
deleted file mode 100644
index c55eee1fa..000000000
--- a/backend/staticfiles/admin/js/autocomplete.js
+++ /dev/null
@@ -1,41 +0,0 @@
-'use strict';
-{
- const $ = django.jQuery;
- const init = function($element, options) {
- const settings = $.extend({
- ajax: {
- data: function(params) {
- return {
- term: params.term,
- page: params.page,
- app_label: $element.data('app-label'),
- model_name: $element.data('model-name'),
- field_name: $element.data('field-name')
- };
- }
- }
- }, options);
- $element.select2(settings);
- };
-
- $.fn.djangoAdminSelect2 = function(options) {
- const settings = $.extend({}, options);
- $.each(this, function(i, element) {
- const $element = $(element);
- init($element, settings);
- });
- return this;
- };
-
- $(function() {
- // Initialize all autocomplete widgets except the one in the template
- // form used when a new formset is added.
- $('.admin-autocomplete').not('[name*=__prefix__]').djangoAdminSelect2();
- });
-
- $(document).on('formset:added', (function() {
- return function(event, $newFormset) {
- return $newFormset.find('.admin-autocomplete').djangoAdminSelect2();
- };
- })(this));
-}
diff --git a/backend/staticfiles/admin/js/autocomplete.js.gz b/backend/staticfiles/admin/js/autocomplete.js.gz
deleted file mode 100644
index 3c73ff104..000000000
Binary files a/backend/staticfiles/admin/js/autocomplete.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/calendar.f8a5d055eb33.js b/backend/staticfiles/admin/js/calendar.f8a5d055eb33.js
deleted file mode 100644
index a62d10a75..000000000
--- a/backend/staticfiles/admin/js/calendar.f8a5d055eb33.js
+++ /dev/null
@@ -1,221 +0,0 @@
-/*global gettext, pgettext, get_format, quickElement, removeChildren*/
-/*
-calendar.js - Calendar functions by Adrian Holovaty
-depends on core.js for utility functions like removeChildren or quickElement
-*/
-'use strict';
-{
- // CalendarNamespace -- Provides a collection of HTML calendar-related helper functions
- const CalendarNamespace = {
- monthsOfYear: [
- gettext('January'),
- gettext('February'),
- gettext('March'),
- gettext('April'),
- gettext('May'),
- gettext('June'),
- gettext('July'),
- gettext('August'),
- gettext('September'),
- gettext('October'),
- gettext('November'),
- gettext('December')
- ],
- monthsOfYearAbbrev: [
- pgettext('abbrev. month January', 'Jan'),
- pgettext('abbrev. month February', 'Feb'),
- pgettext('abbrev. month March', 'Mar'),
- pgettext('abbrev. month April', 'Apr'),
- pgettext('abbrev. month May', 'May'),
- pgettext('abbrev. month June', 'Jun'),
- pgettext('abbrev. month July', 'Jul'),
- pgettext('abbrev. month August', 'Aug'),
- pgettext('abbrev. month September', 'Sep'),
- pgettext('abbrev. month October', 'Oct'),
- pgettext('abbrev. month November', 'Nov'),
- pgettext('abbrev. month December', 'Dec')
- ],
- daysOfWeek: [
- pgettext('one letter Sunday', 'S'),
- pgettext('one letter Monday', 'M'),
- pgettext('one letter Tuesday', 'T'),
- pgettext('one letter Wednesday', 'W'),
- pgettext('one letter Thursday', 'T'),
- pgettext('one letter Friday', 'F'),
- pgettext('one letter Saturday', 'S')
- ],
- firstDayOfWeek: parseInt(get_format('FIRST_DAY_OF_WEEK')),
- isLeapYear: function(year) {
- return (((year % 4) === 0) && ((year % 100) !== 0 ) || ((year % 400) === 0));
- },
- getDaysInMonth: function(month, year) {
- let days;
- if (month === 1 || month === 3 || month === 5 || month === 7 || month === 8 || month === 10 || month === 12) {
- days = 31;
- }
- else if (month === 4 || month === 6 || month === 9 || month === 11) {
- days = 30;
- }
- else if (month === 2 && CalendarNamespace.isLeapYear(year)) {
- days = 29;
- }
- else {
- days = 28;
- }
- return days;
- },
- draw: function(month, year, div_id, callback, selected) { // month = 1-12, year = 1-9999
- const today = new Date();
- const todayDay = today.getDate();
- const todayMonth = today.getMonth() + 1;
- const todayYear = today.getFullYear();
- let todayClass = '';
-
- // Use UTC functions here because the date field does not contain time
- // and using the UTC function variants prevent the local time offset
- // from altering the date, specifically the day field. For example:
- //
- // ```
- // var x = new Date('2013-10-02');
- // var day = x.getDate();
- // ```
- //
- // The day variable above will be 1 instead of 2 in, say, US Pacific time
- // zone.
- let isSelectedMonth = false;
- if (typeof selected !== 'undefined') {
- isSelectedMonth = (selected.getUTCFullYear() === year && (selected.getUTCMonth() + 1) === month);
- }
-
- month = parseInt(month);
- year = parseInt(year);
- const calDiv = document.getElementById(div_id);
- removeChildren(calDiv);
- const calTable = document.createElement('table');
- quickElement('caption', calTable, CalendarNamespace.monthsOfYear[month - 1] + ' ' + year);
- const tableBody = quickElement('tbody', calTable);
-
- // Draw days-of-week header
- let tableRow = quickElement('tr', tableBody);
- for (let i = 0; i < 7; i++) {
- quickElement('th', tableRow, CalendarNamespace.daysOfWeek[(i + CalendarNamespace.firstDayOfWeek) % 7]);
- }
-
- const startingPos = new Date(year, month - 1, 1 - CalendarNamespace.firstDayOfWeek).getDay();
- const days = CalendarNamespace.getDaysInMonth(month, year);
-
- let nonDayCell;
-
- // Draw blanks before first of month
- tableRow = quickElement('tr', tableBody);
- for (let i = 0; i < startingPos; i++) {
- nonDayCell = quickElement('td', tableRow, ' ');
- nonDayCell.className = "nonday";
- }
-
- function calendarMonth(y, m) {
- function onClick(e) {
- e.preventDefault();
- callback(y, m, this.textContent);
- }
- return onClick;
- }
-
- // Draw days of month
- let currentDay = 1;
- for (let i = startingPos; currentDay <= days; i++) {
- if (i % 7 === 0 && currentDay !== 1) {
- tableRow = quickElement('tr', tableBody);
- }
- if ((currentDay === todayDay) && (month === todayMonth) && (year === todayYear)) {
- todayClass = 'today';
- } else {
- todayClass = '';
- }
-
- // use UTC function; see above for explanation.
- if (isSelectedMonth && currentDay === selected.getUTCDate()) {
- if (todayClass !== '') {
- todayClass += " ";
- }
- todayClass += "selected";
- }
-
- const cell = quickElement('td', tableRow, '', 'class', todayClass);
- const link = quickElement('a', cell, currentDay, 'href', '#');
- link.addEventListener('click', calendarMonth(year, month));
- currentDay++;
- }
-
- // Draw blanks after end of month (optional, but makes for valid code)
- while (tableRow.childNodes.length < 7) {
- nonDayCell = quickElement('td', tableRow, ' ');
- nonDayCell.className = "nonday";
- }
-
- calDiv.appendChild(calTable);
- }
- };
-
- // Calendar -- A calendar instance
- function Calendar(div_id, callback, selected) {
- // div_id (string) is the ID of the element in which the calendar will
- // be displayed
- // callback (string) is the name of a JavaScript function that will be
- // called with the parameters (year, month, day) when a day in the
- // calendar is clicked
- this.div_id = div_id;
- this.callback = callback;
- this.today = new Date();
- this.currentMonth = this.today.getMonth() + 1;
- this.currentYear = this.today.getFullYear();
- if (typeof selected !== 'undefined') {
- this.selected = selected;
- }
- }
- Calendar.prototype = {
- drawCurrent: function() {
- CalendarNamespace.draw(this.currentMonth, this.currentYear, this.div_id, this.callback, this.selected);
- },
- drawDate: function(month, year, selected) {
- this.currentMonth = month;
- this.currentYear = year;
-
- if(selected) {
- this.selected = selected;
- }
-
- this.drawCurrent();
- },
- drawPreviousMonth: function() {
- if (this.currentMonth === 1) {
- this.currentMonth = 12;
- this.currentYear--;
- }
- else {
- this.currentMonth--;
- }
- this.drawCurrent();
- },
- drawNextMonth: function() {
- if (this.currentMonth === 12) {
- this.currentMonth = 1;
- this.currentYear++;
- }
- else {
- this.currentMonth++;
- }
- this.drawCurrent();
- },
- drawPreviousYear: function() {
- this.currentYear--;
- this.drawCurrent();
- },
- drawNextYear: function() {
- this.currentYear++;
- this.drawCurrent();
- }
- };
- window.Calendar = Calendar;
- window.CalendarNamespace = CalendarNamespace;
-}
diff --git a/backend/staticfiles/admin/js/calendar.f8a5d055eb33.js.gz b/backend/staticfiles/admin/js/calendar.f8a5d055eb33.js.gz
deleted file mode 100644
index 8f7f5c501..000000000
Binary files a/backend/staticfiles/admin/js/calendar.f8a5d055eb33.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/calendar.js b/backend/staticfiles/admin/js/calendar.js
deleted file mode 100644
index a62d10a75..000000000
--- a/backend/staticfiles/admin/js/calendar.js
+++ /dev/null
@@ -1,221 +0,0 @@
-/*global gettext, pgettext, get_format, quickElement, removeChildren*/
-/*
-calendar.js - Calendar functions by Adrian Holovaty
-depends on core.js for utility functions like removeChildren or quickElement
-*/
-'use strict';
-{
- // CalendarNamespace -- Provides a collection of HTML calendar-related helper functions
- const CalendarNamespace = {
- monthsOfYear: [
- gettext('January'),
- gettext('February'),
- gettext('March'),
- gettext('April'),
- gettext('May'),
- gettext('June'),
- gettext('July'),
- gettext('August'),
- gettext('September'),
- gettext('October'),
- gettext('November'),
- gettext('December')
- ],
- monthsOfYearAbbrev: [
- pgettext('abbrev. month January', 'Jan'),
- pgettext('abbrev. month February', 'Feb'),
- pgettext('abbrev. month March', 'Mar'),
- pgettext('abbrev. month April', 'Apr'),
- pgettext('abbrev. month May', 'May'),
- pgettext('abbrev. month June', 'Jun'),
- pgettext('abbrev. month July', 'Jul'),
- pgettext('abbrev. month August', 'Aug'),
- pgettext('abbrev. month September', 'Sep'),
- pgettext('abbrev. month October', 'Oct'),
- pgettext('abbrev. month November', 'Nov'),
- pgettext('abbrev. month December', 'Dec')
- ],
- daysOfWeek: [
- pgettext('one letter Sunday', 'S'),
- pgettext('one letter Monday', 'M'),
- pgettext('one letter Tuesday', 'T'),
- pgettext('one letter Wednesday', 'W'),
- pgettext('one letter Thursday', 'T'),
- pgettext('one letter Friday', 'F'),
- pgettext('one letter Saturday', 'S')
- ],
- firstDayOfWeek: parseInt(get_format('FIRST_DAY_OF_WEEK')),
- isLeapYear: function(year) {
- return (((year % 4) === 0) && ((year % 100) !== 0 ) || ((year % 400) === 0));
- },
- getDaysInMonth: function(month, year) {
- let days;
- if (month === 1 || month === 3 || month === 5 || month === 7 || month === 8 || month === 10 || month === 12) {
- days = 31;
- }
- else if (month === 4 || month === 6 || month === 9 || month === 11) {
- days = 30;
- }
- else if (month === 2 && CalendarNamespace.isLeapYear(year)) {
- days = 29;
- }
- else {
- days = 28;
- }
- return days;
- },
- draw: function(month, year, div_id, callback, selected) { // month = 1-12, year = 1-9999
- const today = new Date();
- const todayDay = today.getDate();
- const todayMonth = today.getMonth() + 1;
- const todayYear = today.getFullYear();
- let todayClass = '';
-
- // Use UTC functions here because the date field does not contain time
- // and using the UTC function variants prevent the local time offset
- // from altering the date, specifically the day field. For example:
- //
- // ```
- // var x = new Date('2013-10-02');
- // var day = x.getDate();
- // ```
- //
- // The day variable above will be 1 instead of 2 in, say, US Pacific time
- // zone.
- let isSelectedMonth = false;
- if (typeof selected !== 'undefined') {
- isSelectedMonth = (selected.getUTCFullYear() === year && (selected.getUTCMonth() + 1) === month);
- }
-
- month = parseInt(month);
- year = parseInt(year);
- const calDiv = document.getElementById(div_id);
- removeChildren(calDiv);
- const calTable = document.createElement('table');
- quickElement('caption', calTable, CalendarNamespace.monthsOfYear[month - 1] + ' ' + year);
- const tableBody = quickElement('tbody', calTable);
-
- // Draw days-of-week header
- let tableRow = quickElement('tr', tableBody);
- for (let i = 0; i < 7; i++) {
- quickElement('th', tableRow, CalendarNamespace.daysOfWeek[(i + CalendarNamespace.firstDayOfWeek) % 7]);
- }
-
- const startingPos = new Date(year, month - 1, 1 - CalendarNamespace.firstDayOfWeek).getDay();
- const days = CalendarNamespace.getDaysInMonth(month, year);
-
- let nonDayCell;
-
- // Draw blanks before first of month
- tableRow = quickElement('tr', tableBody);
- for (let i = 0; i < startingPos; i++) {
- nonDayCell = quickElement('td', tableRow, ' ');
- nonDayCell.className = "nonday";
- }
-
- function calendarMonth(y, m) {
- function onClick(e) {
- e.preventDefault();
- callback(y, m, this.textContent);
- }
- return onClick;
- }
-
- // Draw days of month
- let currentDay = 1;
- for (let i = startingPos; currentDay <= days; i++) {
- if (i % 7 === 0 && currentDay !== 1) {
- tableRow = quickElement('tr', tableBody);
- }
- if ((currentDay === todayDay) && (month === todayMonth) && (year === todayYear)) {
- todayClass = 'today';
- } else {
- todayClass = '';
- }
-
- // use UTC function; see above for explanation.
- if (isSelectedMonth && currentDay === selected.getUTCDate()) {
- if (todayClass !== '') {
- todayClass += " ";
- }
- todayClass += "selected";
- }
-
- const cell = quickElement('td', tableRow, '', 'class', todayClass);
- const link = quickElement('a', cell, currentDay, 'href', '#');
- link.addEventListener('click', calendarMonth(year, month));
- currentDay++;
- }
-
- // Draw blanks after end of month (optional, but makes for valid code)
- while (tableRow.childNodes.length < 7) {
- nonDayCell = quickElement('td', tableRow, ' ');
- nonDayCell.className = "nonday";
- }
-
- calDiv.appendChild(calTable);
- }
- };
-
- // Calendar -- A calendar instance
- function Calendar(div_id, callback, selected) {
- // div_id (string) is the ID of the element in which the calendar will
- // be displayed
- // callback (string) is the name of a JavaScript function that will be
- // called with the parameters (year, month, day) when a day in the
- // calendar is clicked
- this.div_id = div_id;
- this.callback = callback;
- this.today = new Date();
- this.currentMonth = this.today.getMonth() + 1;
- this.currentYear = this.today.getFullYear();
- if (typeof selected !== 'undefined') {
- this.selected = selected;
- }
- }
- Calendar.prototype = {
- drawCurrent: function() {
- CalendarNamespace.draw(this.currentMonth, this.currentYear, this.div_id, this.callback, this.selected);
- },
- drawDate: function(month, year, selected) {
- this.currentMonth = month;
- this.currentYear = year;
-
- if(selected) {
- this.selected = selected;
- }
-
- this.drawCurrent();
- },
- drawPreviousMonth: function() {
- if (this.currentMonth === 1) {
- this.currentMonth = 12;
- this.currentYear--;
- }
- else {
- this.currentMonth--;
- }
- this.drawCurrent();
- },
- drawNextMonth: function() {
- if (this.currentMonth === 12) {
- this.currentMonth = 1;
- this.currentYear++;
- }
- else {
- this.currentMonth++;
- }
- this.drawCurrent();
- },
- drawPreviousYear: function() {
- this.currentYear--;
- this.drawCurrent();
- },
- drawNextYear: function() {
- this.currentYear++;
- this.drawCurrent();
- }
- };
- window.Calendar = Calendar;
- window.CalendarNamespace = CalendarNamespace;
-}
diff --git a/backend/staticfiles/admin/js/calendar.js.gz b/backend/staticfiles/admin/js/calendar.js.gz
deleted file mode 100644
index 8f7f5c501..000000000
Binary files a/backend/staticfiles/admin/js/calendar.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/cancel.ecc4c5ca7b32.js b/backend/staticfiles/admin/js/cancel.ecc4c5ca7b32.js
deleted file mode 100644
index 3069c6f27..000000000
--- a/backend/staticfiles/admin/js/cancel.ecc4c5ca7b32.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-{
- // Call function fn when the DOM is loaded and ready. If it is already
- // loaded, call the function now.
- // http://youmightnotneedjquery.com/#ready
- function ready(fn) {
- if (document.readyState !== 'loading') {
- fn();
- } else {
- document.addEventListener('DOMContentLoaded', fn);
- }
- }
-
- ready(function() {
- function handleClick(event) {
- event.preventDefault();
- const params = new URLSearchParams(window.location.search);
- if (params.has('_popup')) {
- window.close(); // Close the popup.
- } else {
- window.history.back(); // Otherwise, go back.
- }
- }
-
- document.querySelectorAll('.cancel-link').forEach(function(el) {
- el.addEventListener('click', handleClick);
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/cancel.ecc4c5ca7b32.js.gz b/backend/staticfiles/admin/js/cancel.ecc4c5ca7b32.js.gz
deleted file mode 100644
index e0c886974..000000000
Binary files a/backend/staticfiles/admin/js/cancel.ecc4c5ca7b32.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/cancel.js b/backend/staticfiles/admin/js/cancel.js
deleted file mode 100644
index 3069c6f27..000000000
--- a/backend/staticfiles/admin/js/cancel.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-{
- // Call function fn when the DOM is loaded and ready. If it is already
- // loaded, call the function now.
- // http://youmightnotneedjquery.com/#ready
- function ready(fn) {
- if (document.readyState !== 'loading') {
- fn();
- } else {
- document.addEventListener('DOMContentLoaded', fn);
- }
- }
-
- ready(function() {
- function handleClick(event) {
- event.preventDefault();
- const params = new URLSearchParams(window.location.search);
- if (params.has('_popup')) {
- window.close(); // Close the popup.
- } else {
- window.history.back(); // Otherwise, go back.
- }
- }
-
- document.querySelectorAll('.cancel-link').forEach(function(el) {
- el.addEventListener('click', handleClick);
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/cancel.js.gz b/backend/staticfiles/admin/js/cancel.js.gz
deleted file mode 100644
index e0c886974..000000000
Binary files a/backend/staticfiles/admin/js/cancel.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/change_form.9d8ca4f96b75.js b/backend/staticfiles/admin/js/change_form.9d8ca4f96b75.js
deleted file mode 100644
index 96a4c62ef..000000000
--- a/backend/staticfiles/admin/js/change_form.9d8ca4f96b75.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-{
- const inputTags = ['BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
- const modelName = document.getElementById('django-admin-form-add-constants').dataset.modelName;
- if (modelName) {
- const form = document.getElementById(modelName + '_form');
- for (const element of form.elements) {
- // HTMLElement.offsetParent returns null when the element is not
- // rendered.
- if (inputTags.includes(element.tagName) && !element.disabled && element.offsetParent) {
- element.focus();
- break;
- }
- }
- }
-}
diff --git a/backend/staticfiles/admin/js/change_form.9d8ca4f96b75.js.gz b/backend/staticfiles/admin/js/change_form.9d8ca4f96b75.js.gz
deleted file mode 100644
index 755f1fbf1..000000000
Binary files a/backend/staticfiles/admin/js/change_form.9d8ca4f96b75.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/change_form.js b/backend/staticfiles/admin/js/change_form.js
deleted file mode 100644
index 96a4c62ef..000000000
--- a/backend/staticfiles/admin/js/change_form.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-{
- const inputTags = ['BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
- const modelName = document.getElementById('django-admin-form-add-constants').dataset.modelName;
- if (modelName) {
- const form = document.getElementById(modelName + '_form');
- for (const element of form.elements) {
- // HTMLElement.offsetParent returns null when the element is not
- // rendered.
- if (inputTags.includes(element.tagName) && !element.disabled && element.offsetParent) {
- element.focus();
- break;
- }
- }
- }
-}
diff --git a/backend/staticfiles/admin/js/change_form.js.gz b/backend/staticfiles/admin/js/change_form.js.gz
deleted file mode 100644
index 755f1fbf1..000000000
Binary files a/backend/staticfiles/admin/js/change_form.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/collapse.f84e7410290f.js b/backend/staticfiles/admin/js/collapse.f84e7410290f.js
deleted file mode 100644
index c6c7b0f68..000000000
--- a/backend/staticfiles/admin/js/collapse.f84e7410290f.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*global gettext*/
-'use strict';
-{
- window.addEventListener('load', function() {
- // Add anchor tag for Show/Hide link
- const fieldsets = document.querySelectorAll('fieldset.collapse');
- for (const [i, elem] of fieldsets.entries()) {
- // Don't hide if fields in this fieldset have errors
- if (elem.querySelectorAll('div.errors, ul.errorlist').length === 0) {
- elem.classList.add('collapsed');
- const h2 = elem.querySelector('h2');
- const link = document.createElement('a');
- link.id = 'fieldsetcollapser' + i;
- link.className = 'collapse-toggle';
- link.href = '#';
- link.textContent = gettext('Show');
- h2.appendChild(document.createTextNode(' ('));
- h2.appendChild(link);
- h2.appendChild(document.createTextNode(')'));
- }
- }
- // Add toggle to hide/show anchor tag
- const toggleFunc = function(ev) {
- if (ev.target.matches('.collapse-toggle')) {
- ev.preventDefault();
- ev.stopPropagation();
- const fieldset = ev.target.closest('fieldset');
- if (fieldset.classList.contains('collapsed')) {
- // Show
- ev.target.textContent = gettext('Hide');
- fieldset.classList.remove('collapsed');
- } else {
- // Hide
- ev.target.textContent = gettext('Show');
- fieldset.classList.add('collapsed');
- }
- }
- };
- document.querySelectorAll('fieldset.module').forEach(function(el) {
- el.addEventListener('click', toggleFunc);
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/collapse.f84e7410290f.js.gz b/backend/staticfiles/admin/js/collapse.f84e7410290f.js.gz
deleted file mode 100644
index 9770c1382..000000000
Binary files a/backend/staticfiles/admin/js/collapse.f84e7410290f.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/collapse.js b/backend/staticfiles/admin/js/collapse.js
deleted file mode 100644
index c6c7b0f68..000000000
--- a/backend/staticfiles/admin/js/collapse.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*global gettext*/
-'use strict';
-{
- window.addEventListener('load', function() {
- // Add anchor tag for Show/Hide link
- const fieldsets = document.querySelectorAll('fieldset.collapse');
- for (const [i, elem] of fieldsets.entries()) {
- // Don't hide if fields in this fieldset have errors
- if (elem.querySelectorAll('div.errors, ul.errorlist').length === 0) {
- elem.classList.add('collapsed');
- const h2 = elem.querySelector('h2');
- const link = document.createElement('a');
- link.id = 'fieldsetcollapser' + i;
- link.className = 'collapse-toggle';
- link.href = '#';
- link.textContent = gettext('Show');
- h2.appendChild(document.createTextNode(' ('));
- h2.appendChild(link);
- h2.appendChild(document.createTextNode(')'));
- }
- }
- // Add toggle to hide/show anchor tag
- const toggleFunc = function(ev) {
- if (ev.target.matches('.collapse-toggle')) {
- ev.preventDefault();
- ev.stopPropagation();
- const fieldset = ev.target.closest('fieldset');
- if (fieldset.classList.contains('collapsed')) {
- // Show
- ev.target.textContent = gettext('Hide');
- fieldset.classList.remove('collapsed');
- } else {
- // Hide
- ev.target.textContent = gettext('Show');
- fieldset.classList.add('collapsed');
- }
- }
- };
- document.querySelectorAll('fieldset.module').forEach(function(el) {
- el.addEventListener('click', toggleFunc);
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/collapse.js.gz b/backend/staticfiles/admin/js/collapse.js.gz
deleted file mode 100644
index 9770c1382..000000000
Binary files a/backend/staticfiles/admin/js/collapse.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/core.ccd84108ec57.js b/backend/staticfiles/admin/js/core.ccd84108ec57.js
deleted file mode 100644
index 3a2e4aa72..000000000
--- a/backend/staticfiles/admin/js/core.ccd84108ec57.js
+++ /dev/null
@@ -1,170 +0,0 @@
-// Core javascript helper functions
-'use strict';
-
-// quickElement(tagType, parentReference [, textInChildNode, attribute, attributeValue ...]);
-function quickElement() {
- const obj = document.createElement(arguments[0]);
- if (arguments[2]) {
- const textNode = document.createTextNode(arguments[2]);
- obj.appendChild(textNode);
- }
- const len = arguments.length;
- for (let i = 3; i < len; i += 2) {
- obj.setAttribute(arguments[i], arguments[i + 1]);
- }
- arguments[1].appendChild(obj);
- return obj;
-}
-
-// "a" is reference to an object
-function removeChildren(a) {
- while (a.hasChildNodes()) {
- a.removeChild(a.lastChild);
- }
-}
-
-// ----------------------------------------------------------------------------
-// Find-position functions by PPK
-// See https://www.quirksmode.org/js/findpos.html
-// ----------------------------------------------------------------------------
-function findPosX(obj) {
- let curleft = 0;
- if (obj.offsetParent) {
- while (obj.offsetParent) {
- curleft += obj.offsetLeft - obj.scrollLeft;
- obj = obj.offsetParent;
- }
- } else if (obj.x) {
- curleft += obj.x;
- }
- return curleft;
-}
-
-function findPosY(obj) {
- let curtop = 0;
- if (obj.offsetParent) {
- while (obj.offsetParent) {
- curtop += obj.offsetTop - obj.scrollTop;
- obj = obj.offsetParent;
- }
- } else if (obj.y) {
- curtop += obj.y;
- }
- return curtop;
-}
-
-//-----------------------------------------------------------------------------
-// Date object extensions
-// ----------------------------------------------------------------------------
-{
- Date.prototype.getTwelveHours = function() {
- return this.getHours() % 12 || 12;
- };
-
- Date.prototype.getTwoDigitMonth = function() {
- return (this.getMonth() < 9) ? '0' + (this.getMonth() + 1) : (this.getMonth() + 1);
- };
-
- Date.prototype.getTwoDigitDate = function() {
- return (this.getDate() < 10) ? '0' + this.getDate() : this.getDate();
- };
-
- Date.prototype.getTwoDigitTwelveHour = function() {
- return (this.getTwelveHours() < 10) ? '0' + this.getTwelveHours() : this.getTwelveHours();
- };
-
- Date.prototype.getTwoDigitHour = function() {
- return (this.getHours() < 10) ? '0' + this.getHours() : this.getHours();
- };
-
- Date.prototype.getTwoDigitMinute = function() {
- return (this.getMinutes() < 10) ? '0' + this.getMinutes() : this.getMinutes();
- };
-
- Date.prototype.getTwoDigitSecond = function() {
- return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds();
- };
-
- Date.prototype.getAbbrevMonthName = function() {
- return typeof window.CalendarNamespace === "undefined"
- ? this.getTwoDigitMonth()
- : window.CalendarNamespace.monthsOfYearAbbrev[this.getMonth()];
- };
-
- Date.prototype.getFullMonthName = function() {
- return typeof window.CalendarNamespace === "undefined"
- ? this.getTwoDigitMonth()
- : window.CalendarNamespace.monthsOfYear[this.getMonth()];
- };
-
- Date.prototype.strftime = function(format) {
- const fields = {
- b: this.getAbbrevMonthName(),
- B: this.getFullMonthName(),
- c: this.toString(),
- d: this.getTwoDigitDate(),
- H: this.getTwoDigitHour(),
- I: this.getTwoDigitTwelveHour(),
- m: this.getTwoDigitMonth(),
- M: this.getTwoDigitMinute(),
- p: (this.getHours() >= 12) ? 'PM' : 'AM',
- S: this.getTwoDigitSecond(),
- w: '0' + this.getDay(),
- x: this.toLocaleDateString(),
- X: this.toLocaleTimeString(),
- y: ('' + this.getFullYear()).substr(2, 4),
- Y: '' + this.getFullYear(),
- '%': '%'
- };
- let result = '', i = 0;
- while (i < format.length) {
- if (format.charAt(i) === '%') {
- result = result + fields[format.charAt(i + 1)];
- ++i;
- }
- else {
- result = result + format.charAt(i);
- }
- ++i;
- }
- return result;
- };
-
- // ----------------------------------------------------------------------------
- // String object extensions
- // ----------------------------------------------------------------------------
- String.prototype.strptime = function(format) {
- const split_format = format.split(/[.\-/]/);
- const date = this.split(/[.\-/]/);
- let i = 0;
- let day, month, year;
- while (i < split_format.length) {
- switch (split_format[i]) {
- case "%d":
- day = date[i];
- break;
- case "%m":
- month = date[i] - 1;
- break;
- case "%Y":
- year = date[i];
- break;
- case "%y":
- // A %y value in the range of [00, 68] is in the current
- // century, while [69, 99] is in the previous century,
- // according to the Open Group Specification.
- if (parseInt(date[i], 10) >= 69) {
- year = date[i];
- } else {
- year = (new Date(Date.UTC(date[i], 0))).getUTCFullYear() + 100;
- }
- break;
- }
- ++i;
- }
- // Create Date object from UTC since the parsed value is supposed to be
- // in UTC, not local time. Also, the calendar uses UTC functions for
- // date extraction.
- return new Date(Date.UTC(year, month, day));
- };
-}
diff --git a/backend/staticfiles/admin/js/core.ccd84108ec57.js.gz b/backend/staticfiles/admin/js/core.ccd84108ec57.js.gz
deleted file mode 100644
index 049e88a68..000000000
Binary files a/backend/staticfiles/admin/js/core.ccd84108ec57.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/core.js b/backend/staticfiles/admin/js/core.js
deleted file mode 100644
index 3a2e4aa72..000000000
--- a/backend/staticfiles/admin/js/core.js
+++ /dev/null
@@ -1,170 +0,0 @@
-// Core javascript helper functions
-'use strict';
-
-// quickElement(tagType, parentReference [, textInChildNode, attribute, attributeValue ...]);
-function quickElement() {
- const obj = document.createElement(arguments[0]);
- if (arguments[2]) {
- const textNode = document.createTextNode(arguments[2]);
- obj.appendChild(textNode);
- }
- const len = arguments.length;
- for (let i = 3; i < len; i += 2) {
- obj.setAttribute(arguments[i], arguments[i + 1]);
- }
- arguments[1].appendChild(obj);
- return obj;
-}
-
-// "a" is reference to an object
-function removeChildren(a) {
- while (a.hasChildNodes()) {
- a.removeChild(a.lastChild);
- }
-}
-
-// ----------------------------------------------------------------------------
-// Find-position functions by PPK
-// See https://www.quirksmode.org/js/findpos.html
-// ----------------------------------------------------------------------------
-function findPosX(obj) {
- let curleft = 0;
- if (obj.offsetParent) {
- while (obj.offsetParent) {
- curleft += obj.offsetLeft - obj.scrollLeft;
- obj = obj.offsetParent;
- }
- } else if (obj.x) {
- curleft += obj.x;
- }
- return curleft;
-}
-
-function findPosY(obj) {
- let curtop = 0;
- if (obj.offsetParent) {
- while (obj.offsetParent) {
- curtop += obj.offsetTop - obj.scrollTop;
- obj = obj.offsetParent;
- }
- } else if (obj.y) {
- curtop += obj.y;
- }
- return curtop;
-}
-
-//-----------------------------------------------------------------------------
-// Date object extensions
-// ----------------------------------------------------------------------------
-{
- Date.prototype.getTwelveHours = function() {
- return this.getHours() % 12 || 12;
- };
-
- Date.prototype.getTwoDigitMonth = function() {
- return (this.getMonth() < 9) ? '0' + (this.getMonth() + 1) : (this.getMonth() + 1);
- };
-
- Date.prototype.getTwoDigitDate = function() {
- return (this.getDate() < 10) ? '0' + this.getDate() : this.getDate();
- };
-
- Date.prototype.getTwoDigitTwelveHour = function() {
- return (this.getTwelveHours() < 10) ? '0' + this.getTwelveHours() : this.getTwelveHours();
- };
-
- Date.prototype.getTwoDigitHour = function() {
- return (this.getHours() < 10) ? '0' + this.getHours() : this.getHours();
- };
-
- Date.prototype.getTwoDigitMinute = function() {
- return (this.getMinutes() < 10) ? '0' + this.getMinutes() : this.getMinutes();
- };
-
- Date.prototype.getTwoDigitSecond = function() {
- return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds();
- };
-
- Date.prototype.getAbbrevMonthName = function() {
- return typeof window.CalendarNamespace === "undefined"
- ? this.getTwoDigitMonth()
- : window.CalendarNamespace.monthsOfYearAbbrev[this.getMonth()];
- };
-
- Date.prototype.getFullMonthName = function() {
- return typeof window.CalendarNamespace === "undefined"
- ? this.getTwoDigitMonth()
- : window.CalendarNamespace.monthsOfYear[this.getMonth()];
- };
-
- Date.prototype.strftime = function(format) {
- const fields = {
- b: this.getAbbrevMonthName(),
- B: this.getFullMonthName(),
- c: this.toString(),
- d: this.getTwoDigitDate(),
- H: this.getTwoDigitHour(),
- I: this.getTwoDigitTwelveHour(),
- m: this.getTwoDigitMonth(),
- M: this.getTwoDigitMinute(),
- p: (this.getHours() >= 12) ? 'PM' : 'AM',
- S: this.getTwoDigitSecond(),
- w: '0' + this.getDay(),
- x: this.toLocaleDateString(),
- X: this.toLocaleTimeString(),
- y: ('' + this.getFullYear()).substr(2, 4),
- Y: '' + this.getFullYear(),
- '%': '%'
- };
- let result = '', i = 0;
- while (i < format.length) {
- if (format.charAt(i) === '%') {
- result = result + fields[format.charAt(i + 1)];
- ++i;
- }
- else {
- result = result + format.charAt(i);
- }
- ++i;
- }
- return result;
- };
-
- // ----------------------------------------------------------------------------
- // String object extensions
- // ----------------------------------------------------------------------------
- String.prototype.strptime = function(format) {
- const split_format = format.split(/[.\-/]/);
- const date = this.split(/[.\-/]/);
- let i = 0;
- let day, month, year;
- while (i < split_format.length) {
- switch (split_format[i]) {
- case "%d":
- day = date[i];
- break;
- case "%m":
- month = date[i] - 1;
- break;
- case "%Y":
- year = date[i];
- break;
- case "%y":
- // A %y value in the range of [00, 68] is in the current
- // century, while [69, 99] is in the previous century,
- // according to the Open Group Specification.
- if (parseInt(date[i], 10) >= 69) {
- year = date[i];
- } else {
- year = (new Date(Date.UTC(date[i], 0))).getUTCFullYear() + 100;
- }
- break;
- }
- ++i;
- }
- // Create Date object from UTC since the parsed value is supposed to be
- // in UTC, not local time. Also, the calendar uses UTC functions for
- // date extraction.
- return new Date(Date.UTC(year, month, day));
- };
-}
diff --git a/backend/staticfiles/admin/js/core.js.gz b/backend/staticfiles/admin/js/core.js.gz
deleted file mode 100644
index 049e88a68..000000000
Binary files a/backend/staticfiles/admin/js/core.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/inlines.7596b7fd289e.js b/backend/staticfiles/admin/js/inlines.7596b7fd289e.js
deleted file mode 100644
index 82ec02723..000000000
--- a/backend/staticfiles/admin/js/inlines.7596b7fd289e.js
+++ /dev/null
@@ -1,348 +0,0 @@
-/*global DateTimeShortcuts, SelectFilter*/
-/**
- * Django admin inlines
- *
- * Based on jQuery Formset 1.1
- * @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com)
- * @requires jQuery 1.2.6 or later
- *
- * Copyright (c) 2009, Stanislaus Madueke
- * All rights reserved.
- *
- * Spiced up with Code from Zain Memon's GSoC project 2009
- * and modified for Django by Jannis Leidel, Travis Swicegood and Julien Phalip.
- *
- * Licensed under the New BSD License
- * See: https://opensource.org/licenses/bsd-license.php
- */
-'use strict';
-{
- const $ = django.jQuery;
- $.fn.formset = function(opts) {
- const options = $.extend({}, $.fn.formset.defaults, opts);
- const $this = $(this);
- const $parent = $this.parent();
- const updateElementIndex = function(el, prefix, ndx) {
- const id_regex = new RegExp("(" + prefix + "-(\\d+|__prefix__))");
- const replacement = prefix + "-" + ndx;
- if ($(el).prop("for")) {
- $(el).prop("for", $(el).prop("for").replace(id_regex, replacement));
- }
- if (el.id) {
- el.id = el.id.replace(id_regex, replacement);
- }
- if (el.name) {
- el.name = el.name.replace(id_regex, replacement);
- }
- };
- const totalForms = $("#id_" + options.prefix + "-TOTAL_FORMS").prop("autocomplete", "off");
- let nextIndex = parseInt(totalForms.val(), 10);
- const maxForms = $("#id_" + options.prefix + "-MAX_NUM_FORMS").prop("autocomplete", "off");
- const minForms = $("#id_" + options.prefix + "-MIN_NUM_FORMS").prop("autocomplete", "off");
- let addButton;
-
- /**
- * The "Add another MyModel" button below the inline forms.
- */
- const addInlineAddButton = function() {
- if (addButton === null) {
- if ($this.prop("tagName") === "TR") {
- // If forms are laid out as table rows, insert the
- // "add" button in a new table row:
- const numCols = $this.eq(-1).children().length;
- $parent.append('
' + options.addText + " ");
- addButton = $parent.find("tr:last a");
- } else {
- // Otherwise, insert it immediately after the last form:
- $this.filter(":last").after('
");
- addButton = $this.filter(":last").next().find("a");
- }
- }
- addButton.on('click', addInlineClickHandler);
- };
-
- const addInlineClickHandler = function(e) {
- e.preventDefault();
- const template = $("#" + options.prefix + "-empty");
- const row = template.clone(true);
- row.removeClass(options.emptyCssClass)
- .addClass(options.formCssClass)
- .attr("id", options.prefix + "-" + nextIndex);
- addInlineDeleteButton(row);
- row.find("*").each(function() {
- updateElementIndex(this, options.prefix, totalForms.val());
- });
- // Insert the new form when it has been fully edited.
- row.insertBefore($(template));
- // Update number of total forms.
- $(totalForms).val(parseInt(totalForms.val(), 10) + 1);
- nextIndex += 1;
- // Hide the add button if there's a limit and it's been reached.
- if ((maxForms.val() !== '') && (maxForms.val() - totalForms.val()) <= 0) {
- addButton.parent().hide();
- }
- // Show the remove buttons if there are more than min_num.
- toggleDeleteButtonVisibility(row.closest('.inline-group'));
-
- // Pass the new form to the post-add callback, if provided.
- if (options.added) {
- options.added(row);
- }
- $(document).trigger('formset:added', [row, options.prefix]);
- };
-
- /**
- * The "X" button that is part of every unsaved inline.
- * (When saved, it is replaced with a "Delete" checkbox.)
- */
- const addInlineDeleteButton = function(row) {
- if (row.is("tr")) {
- // If the forms are laid out in table rows, insert
- // the remove button into the last table cell:
- row.children(":last").append('
");
- } else if (row.is("ul") || row.is("ol")) {
- // If they're laid out as an ordered/unordered list,
- // insert an
after the last list item:
- row.append(' ' + options.deleteText + " ");
- } else {
- // Otherwise, just insert the remove button as the
- // last child element of the form's container:
- row.children(":first").append('
' + options.deleteText + " ");
- }
- // Add delete handler for each row.
- row.find("a." + options.deleteCssClass).on('click', inlineDeleteHandler.bind(this));
- };
-
- const inlineDeleteHandler = function(e1) {
- e1.preventDefault();
- const deleteButton = $(e1.target);
- const row = deleteButton.closest('.' + options.formCssClass);
- const inlineGroup = row.closest('.inline-group');
- // Remove the parent form containing this button,
- // and also remove the relevant row with non-field errors:
- const prevRow = row.prev();
- if (prevRow.length && prevRow.hasClass('row-form-errors')) {
- prevRow.remove();
- }
- row.remove();
- nextIndex -= 1;
- // Pass the deleted form to the post-delete callback, if provided.
- if (options.removed) {
- options.removed(row);
- }
- $(document).trigger('formset:removed', [row, options.prefix]);
- // Update the TOTAL_FORMS form count.
- const forms = $("." + options.formCssClass);
- $("#id_" + options.prefix + "-TOTAL_FORMS").val(forms.length);
- // Show add button again once below maximum number.
- if ((maxForms.val() === '') || (maxForms.val() - forms.length) > 0) {
- addButton.parent().show();
- }
- // Hide the remove buttons if at min_num.
- toggleDeleteButtonVisibility(inlineGroup);
- // Also, update names and ids for all remaining form controls so
- // they remain in sequence:
- let i, formCount;
- const updateElementCallback = function() {
- updateElementIndex(this, options.prefix, i);
- };
- for (i = 0, formCount = forms.length; i < formCount; i++) {
- updateElementIndex($(forms).get(i), options.prefix, i);
- $(forms.get(i)).find("*").each(updateElementCallback);
- }
- };
-
- const toggleDeleteButtonVisibility = function(inlineGroup) {
- if ((minForms.val() !== '') && (minForms.val() - totalForms.val()) >= 0) {
- inlineGroup.find('.inline-deletelink').hide();
- } else {
- inlineGroup.find('.inline-deletelink').show();
- }
- };
-
- $this.each(function(i) {
- $(this).not("." + options.emptyCssClass).addClass(options.formCssClass);
- });
-
- // Create the delete buttons for all unsaved inlines:
- $this.filter('.' + options.formCssClass + ':not(.has_original):not(.' + options.emptyCssClass + ')').each(function() {
- addInlineDeleteButton($(this));
- });
- toggleDeleteButtonVisibility($this);
-
- // Create the add button, initially hidden.
- addButton = options.addButton;
- addInlineAddButton();
-
- // Show the add button if allowed to add more items.
- // Note that max_num = None translates to a blank string.
- const showAddButton = maxForms.val() === '' || (maxForms.val() - totalForms.val()) > 0;
- if ($this.length && showAddButton) {
- addButton.parent().show();
- } else {
- addButton.parent().hide();
- }
-
- return this;
- };
-
- /* Setup plugin defaults */
- $.fn.formset.defaults = {
- prefix: "form", // The form prefix for your django formset
- addText: "add another", // Text for the add link
- deleteText: "remove", // Text for the delete link
- addCssClass: "add-row", // CSS class applied to the add link
- deleteCssClass: "delete-row", // CSS class applied to the delete link
- emptyCssClass: "empty-row", // CSS class applied to the empty row
- formCssClass: "dynamic-form", // CSS class applied to each form in a formset
- added: null, // Function called each time a new form is added
- removed: null, // Function called each time a form is deleted
- addButton: null // Existing add button to use
- };
-
-
- // Tabular inlines ---------------------------------------------------------
- $.fn.tabularFormset = function(selector, options) {
- const $rows = $(this);
-
- const reinitDateTimeShortCuts = function() {
- // Reinitialize the calendar and clock widgets by force
- if (typeof DateTimeShortcuts !== "undefined") {
- $(".datetimeshortcuts").remove();
- DateTimeShortcuts.init();
- }
- };
-
- const updateSelectFilter = function() {
- // If any SelectFilter widgets are a part of the new form,
- // instantiate a new SelectFilter instance for it.
- if (typeof SelectFilter !== 'undefined') {
- $('.selectfilter').each(function(index, value) {
- const namearr = value.name.split('-');
- SelectFilter.init(value.id, namearr[namearr.length - 1], false);
- });
- $('.selectfilterstacked').each(function(index, value) {
- const namearr = value.name.split('-');
- SelectFilter.init(value.id, namearr[namearr.length - 1], true);
- });
- }
- };
-
- const initPrepopulatedFields = function(row) {
- row.find('.prepopulated_field').each(function() {
- const field = $(this),
- input = field.find('input, select, textarea'),
- dependency_list = input.data('dependency_list') || [],
- dependencies = [];
- $.each(dependency_list, function(i, field_name) {
- dependencies.push('#' + row.find('.field-' + field_name).find('input, select, textarea').attr('id'));
- });
- if (dependencies.length) {
- input.prepopulate(dependencies, input.attr('maxlength'));
- }
- });
- };
-
- $rows.formset({
- prefix: options.prefix,
- addText: options.addText,
- formCssClass: "dynamic-" + options.prefix,
- deleteCssClass: "inline-deletelink",
- deleteText: options.deleteText,
- emptyCssClass: "empty-form",
- added: function(row) {
- initPrepopulatedFields(row);
- reinitDateTimeShortCuts();
- updateSelectFilter();
- },
- addButton: options.addButton
- });
-
- return $rows;
- };
-
- // Stacked inlines ---------------------------------------------------------
- $.fn.stackedFormset = function(selector, options) {
- const $rows = $(this);
- const updateInlineLabel = function(row) {
- $(selector).find(".inline_label").each(function(i) {
- const count = i + 1;
- $(this).html($(this).html().replace(/(#\d+)/g, "#" + count));
- });
- };
-
- const reinitDateTimeShortCuts = function() {
- // Reinitialize the calendar and clock widgets by force, yuck.
- if (typeof DateTimeShortcuts !== "undefined") {
- $(".datetimeshortcuts").remove();
- DateTimeShortcuts.init();
- }
- };
-
- const updateSelectFilter = function() {
- // If any SelectFilter widgets were added, instantiate a new instance.
- if (typeof SelectFilter !== "undefined") {
- $(".selectfilter").each(function(index, value) {
- const namearr = value.name.split('-');
- SelectFilter.init(value.id, namearr[namearr.length - 1], false);
- });
- $(".selectfilterstacked").each(function(index, value) {
- const namearr = value.name.split('-');
- SelectFilter.init(value.id, namearr[namearr.length - 1], true);
- });
- }
- };
-
- const initPrepopulatedFields = function(row) {
- row.find('.prepopulated_field').each(function() {
- const field = $(this),
- input = field.find('input, select, textarea'),
- dependency_list = input.data('dependency_list') || [],
- dependencies = [];
- $.each(dependency_list, function(i, field_name) {
- dependencies.push('#' + row.find('.form-row .field-' + field_name).find('input, select, textarea').attr('id'));
- });
- if (dependencies.length) {
- input.prepopulate(dependencies, input.attr('maxlength'));
- }
- });
- };
-
- $rows.formset({
- prefix: options.prefix,
- addText: options.addText,
- formCssClass: "dynamic-" + options.prefix,
- deleteCssClass: "inline-deletelink",
- deleteText: options.deleteText,
- emptyCssClass: "empty-form",
- removed: updateInlineLabel,
- added: function(row) {
- initPrepopulatedFields(row);
- reinitDateTimeShortCuts();
- updateSelectFilter();
- updateInlineLabel(row);
- },
- addButton: options.addButton
- });
-
- return $rows;
- };
-
- $(document).ready(function() {
- $(".js-inline-admin-formset").each(function() {
- const data = $(this).data(),
- inlineOptions = data.inlineFormset;
- let selector;
- switch(data.inlineType) {
- case "stacked":
- selector = inlineOptions.name + "-group .inline-related";
- $(selector).stackedFormset(selector, inlineOptions.options);
- break;
- case "tabular":
- selector = inlineOptions.name + "-group .tabular.inline-related tbody:first > tr.form-row";
- $(selector).tabularFormset(selector, inlineOptions.options);
- break;
- }
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/inlines.7596b7fd289e.js.gz b/backend/staticfiles/admin/js/inlines.7596b7fd289e.js.gz
deleted file mode 100644
index d2e5502d6..000000000
Binary files a/backend/staticfiles/admin/js/inlines.7596b7fd289e.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/inlines.js b/backend/staticfiles/admin/js/inlines.js
deleted file mode 100644
index 82ec02723..000000000
--- a/backend/staticfiles/admin/js/inlines.js
+++ /dev/null
@@ -1,348 +0,0 @@
-/*global DateTimeShortcuts, SelectFilter*/
-/**
- * Django admin inlines
- *
- * Based on jQuery Formset 1.1
- * @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com)
- * @requires jQuery 1.2.6 or later
- *
- * Copyright (c) 2009, Stanislaus Madueke
- * All rights reserved.
- *
- * Spiced up with Code from Zain Memon's GSoC project 2009
- * and modified for Django by Jannis Leidel, Travis Swicegood and Julien Phalip.
- *
- * Licensed under the New BSD License
- * See: https://opensource.org/licenses/bsd-license.php
- */
-'use strict';
-{
- const $ = django.jQuery;
- $.fn.formset = function(opts) {
- const options = $.extend({}, $.fn.formset.defaults, opts);
- const $this = $(this);
- const $parent = $this.parent();
- const updateElementIndex = function(el, prefix, ndx) {
- const id_regex = new RegExp("(" + prefix + "-(\\d+|__prefix__))");
- const replacement = prefix + "-" + ndx;
- if ($(el).prop("for")) {
- $(el).prop("for", $(el).prop("for").replace(id_regex, replacement));
- }
- if (el.id) {
- el.id = el.id.replace(id_regex, replacement);
- }
- if (el.name) {
- el.name = el.name.replace(id_regex, replacement);
- }
- };
- const totalForms = $("#id_" + options.prefix + "-TOTAL_FORMS").prop("autocomplete", "off");
- let nextIndex = parseInt(totalForms.val(), 10);
- const maxForms = $("#id_" + options.prefix + "-MAX_NUM_FORMS").prop("autocomplete", "off");
- const minForms = $("#id_" + options.prefix + "-MIN_NUM_FORMS").prop("autocomplete", "off");
- let addButton;
-
- /**
- * The "Add another MyModel" button below the inline forms.
- */
- const addInlineAddButton = function() {
- if (addButton === null) {
- if ($this.prop("tagName") === "TR") {
- // If forms are laid out as table rows, insert the
- // "add" button in a new table row:
- const numCols = $this.eq(-1).children().length;
- $parent.append('
' + options.addText + " ");
- addButton = $parent.find("tr:last a");
- } else {
- // Otherwise, insert it immediately after the last form:
- $this.filter(":last").after('
");
- addButton = $this.filter(":last").next().find("a");
- }
- }
- addButton.on('click', addInlineClickHandler);
- };
-
- const addInlineClickHandler = function(e) {
- e.preventDefault();
- const template = $("#" + options.prefix + "-empty");
- const row = template.clone(true);
- row.removeClass(options.emptyCssClass)
- .addClass(options.formCssClass)
- .attr("id", options.prefix + "-" + nextIndex);
- addInlineDeleteButton(row);
- row.find("*").each(function() {
- updateElementIndex(this, options.prefix, totalForms.val());
- });
- // Insert the new form when it has been fully edited.
- row.insertBefore($(template));
- // Update number of total forms.
- $(totalForms).val(parseInt(totalForms.val(), 10) + 1);
- nextIndex += 1;
- // Hide the add button if there's a limit and it's been reached.
- if ((maxForms.val() !== '') && (maxForms.val() - totalForms.val()) <= 0) {
- addButton.parent().hide();
- }
- // Show the remove buttons if there are more than min_num.
- toggleDeleteButtonVisibility(row.closest('.inline-group'));
-
- // Pass the new form to the post-add callback, if provided.
- if (options.added) {
- options.added(row);
- }
- $(document).trigger('formset:added', [row, options.prefix]);
- };
-
- /**
- * The "X" button that is part of every unsaved inline.
- * (When saved, it is replaced with a "Delete" checkbox.)
- */
- const addInlineDeleteButton = function(row) {
- if (row.is("tr")) {
- // If the forms are laid out in table rows, insert
- // the remove button into the last table cell:
- row.children(":last").append('
");
- } else if (row.is("ul") || row.is("ol")) {
- // If they're laid out as an ordered/unordered list,
- // insert an
after the last list item:
- row.append(' ' + options.deleteText + " ");
- } else {
- // Otherwise, just insert the remove button as the
- // last child element of the form's container:
- row.children(":first").append('
' + options.deleteText + " ");
- }
- // Add delete handler for each row.
- row.find("a." + options.deleteCssClass).on('click', inlineDeleteHandler.bind(this));
- };
-
- const inlineDeleteHandler = function(e1) {
- e1.preventDefault();
- const deleteButton = $(e1.target);
- const row = deleteButton.closest('.' + options.formCssClass);
- const inlineGroup = row.closest('.inline-group');
- // Remove the parent form containing this button,
- // and also remove the relevant row with non-field errors:
- const prevRow = row.prev();
- if (prevRow.length && prevRow.hasClass('row-form-errors')) {
- prevRow.remove();
- }
- row.remove();
- nextIndex -= 1;
- // Pass the deleted form to the post-delete callback, if provided.
- if (options.removed) {
- options.removed(row);
- }
- $(document).trigger('formset:removed', [row, options.prefix]);
- // Update the TOTAL_FORMS form count.
- const forms = $("." + options.formCssClass);
- $("#id_" + options.prefix + "-TOTAL_FORMS").val(forms.length);
- // Show add button again once below maximum number.
- if ((maxForms.val() === '') || (maxForms.val() - forms.length) > 0) {
- addButton.parent().show();
- }
- // Hide the remove buttons if at min_num.
- toggleDeleteButtonVisibility(inlineGroup);
- // Also, update names and ids for all remaining form controls so
- // they remain in sequence:
- let i, formCount;
- const updateElementCallback = function() {
- updateElementIndex(this, options.prefix, i);
- };
- for (i = 0, formCount = forms.length; i < formCount; i++) {
- updateElementIndex($(forms).get(i), options.prefix, i);
- $(forms.get(i)).find("*").each(updateElementCallback);
- }
- };
-
- const toggleDeleteButtonVisibility = function(inlineGroup) {
- if ((minForms.val() !== '') && (minForms.val() - totalForms.val()) >= 0) {
- inlineGroup.find('.inline-deletelink').hide();
- } else {
- inlineGroup.find('.inline-deletelink').show();
- }
- };
-
- $this.each(function(i) {
- $(this).not("." + options.emptyCssClass).addClass(options.formCssClass);
- });
-
- // Create the delete buttons for all unsaved inlines:
- $this.filter('.' + options.formCssClass + ':not(.has_original):not(.' + options.emptyCssClass + ')').each(function() {
- addInlineDeleteButton($(this));
- });
- toggleDeleteButtonVisibility($this);
-
- // Create the add button, initially hidden.
- addButton = options.addButton;
- addInlineAddButton();
-
- // Show the add button if allowed to add more items.
- // Note that max_num = None translates to a blank string.
- const showAddButton = maxForms.val() === '' || (maxForms.val() - totalForms.val()) > 0;
- if ($this.length && showAddButton) {
- addButton.parent().show();
- } else {
- addButton.parent().hide();
- }
-
- return this;
- };
-
- /* Setup plugin defaults */
- $.fn.formset.defaults = {
- prefix: "form", // The form prefix for your django formset
- addText: "add another", // Text for the add link
- deleteText: "remove", // Text for the delete link
- addCssClass: "add-row", // CSS class applied to the add link
- deleteCssClass: "delete-row", // CSS class applied to the delete link
- emptyCssClass: "empty-row", // CSS class applied to the empty row
- formCssClass: "dynamic-form", // CSS class applied to each form in a formset
- added: null, // Function called each time a new form is added
- removed: null, // Function called each time a form is deleted
- addButton: null // Existing add button to use
- };
-
-
- // Tabular inlines ---------------------------------------------------------
- $.fn.tabularFormset = function(selector, options) {
- const $rows = $(this);
-
- const reinitDateTimeShortCuts = function() {
- // Reinitialize the calendar and clock widgets by force
- if (typeof DateTimeShortcuts !== "undefined") {
- $(".datetimeshortcuts").remove();
- DateTimeShortcuts.init();
- }
- };
-
- const updateSelectFilter = function() {
- // If any SelectFilter widgets are a part of the new form,
- // instantiate a new SelectFilter instance for it.
- if (typeof SelectFilter !== 'undefined') {
- $('.selectfilter').each(function(index, value) {
- const namearr = value.name.split('-');
- SelectFilter.init(value.id, namearr[namearr.length - 1], false);
- });
- $('.selectfilterstacked').each(function(index, value) {
- const namearr = value.name.split('-');
- SelectFilter.init(value.id, namearr[namearr.length - 1], true);
- });
- }
- };
-
- const initPrepopulatedFields = function(row) {
- row.find('.prepopulated_field').each(function() {
- const field = $(this),
- input = field.find('input, select, textarea'),
- dependency_list = input.data('dependency_list') || [],
- dependencies = [];
- $.each(dependency_list, function(i, field_name) {
- dependencies.push('#' + row.find('.field-' + field_name).find('input, select, textarea').attr('id'));
- });
- if (dependencies.length) {
- input.prepopulate(dependencies, input.attr('maxlength'));
- }
- });
- };
-
- $rows.formset({
- prefix: options.prefix,
- addText: options.addText,
- formCssClass: "dynamic-" + options.prefix,
- deleteCssClass: "inline-deletelink",
- deleteText: options.deleteText,
- emptyCssClass: "empty-form",
- added: function(row) {
- initPrepopulatedFields(row);
- reinitDateTimeShortCuts();
- updateSelectFilter();
- },
- addButton: options.addButton
- });
-
- return $rows;
- };
-
- // Stacked inlines ---------------------------------------------------------
- $.fn.stackedFormset = function(selector, options) {
- const $rows = $(this);
- const updateInlineLabel = function(row) {
- $(selector).find(".inline_label").each(function(i) {
- const count = i + 1;
- $(this).html($(this).html().replace(/(#\d+)/g, "#" + count));
- });
- };
-
- const reinitDateTimeShortCuts = function() {
- // Reinitialize the calendar and clock widgets by force, yuck.
- if (typeof DateTimeShortcuts !== "undefined") {
- $(".datetimeshortcuts").remove();
- DateTimeShortcuts.init();
- }
- };
-
- const updateSelectFilter = function() {
- // If any SelectFilter widgets were added, instantiate a new instance.
- if (typeof SelectFilter !== "undefined") {
- $(".selectfilter").each(function(index, value) {
- const namearr = value.name.split('-');
- SelectFilter.init(value.id, namearr[namearr.length - 1], false);
- });
- $(".selectfilterstacked").each(function(index, value) {
- const namearr = value.name.split('-');
- SelectFilter.init(value.id, namearr[namearr.length - 1], true);
- });
- }
- };
-
- const initPrepopulatedFields = function(row) {
- row.find('.prepopulated_field').each(function() {
- const field = $(this),
- input = field.find('input, select, textarea'),
- dependency_list = input.data('dependency_list') || [],
- dependencies = [];
- $.each(dependency_list, function(i, field_name) {
- dependencies.push('#' + row.find('.form-row .field-' + field_name).find('input, select, textarea').attr('id'));
- });
- if (dependencies.length) {
- input.prepopulate(dependencies, input.attr('maxlength'));
- }
- });
- };
-
- $rows.formset({
- prefix: options.prefix,
- addText: options.addText,
- formCssClass: "dynamic-" + options.prefix,
- deleteCssClass: "inline-deletelink",
- deleteText: options.deleteText,
- emptyCssClass: "empty-form",
- removed: updateInlineLabel,
- added: function(row) {
- initPrepopulatedFields(row);
- reinitDateTimeShortCuts();
- updateSelectFilter();
- updateInlineLabel(row);
- },
- addButton: options.addButton
- });
-
- return $rows;
- };
-
- $(document).ready(function() {
- $(".js-inline-admin-formset").each(function() {
- const data = $(this).data(),
- inlineOptions = data.inlineFormset;
- let selector;
- switch(data.inlineType) {
- case "stacked":
- selector = inlineOptions.name + "-group .inline-related";
- $(selector).stackedFormset(selector, inlineOptions.options);
- break;
- case "tabular":
- selector = inlineOptions.name + "-group .tabular.inline-related tbody:first > tr.form-row";
- $(selector).tabularFormset(selector, inlineOptions.options);
- break;
- }
- });
- });
-}
diff --git a/backend/staticfiles/admin/js/inlines.js.gz b/backend/staticfiles/admin/js/inlines.js.gz
deleted file mode 100644
index d2e5502d6..000000000
Binary files a/backend/staticfiles/admin/js/inlines.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/jquery.init.b7781a0897fc.js b/backend/staticfiles/admin/js/jquery.init.b7781a0897fc.js
deleted file mode 100644
index f40b27f47..000000000
--- a/backend/staticfiles/admin/js/jquery.init.b7781a0897fc.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*global jQuery:false*/
-'use strict';
-/* Puts the included jQuery into our own namespace using noConflict and passing
- * it 'true'. This ensures that the included jQuery doesn't pollute the global
- * namespace (i.e. this preserves pre-existing values for both window.$ and
- * window.jQuery).
- */
-window.django = {jQuery: jQuery.noConflict(true)};
diff --git a/backend/staticfiles/admin/js/jquery.init.b7781a0897fc.js.gz b/backend/staticfiles/admin/js/jquery.init.b7781a0897fc.js.gz
deleted file mode 100644
index c3560ae9d..000000000
Binary files a/backend/staticfiles/admin/js/jquery.init.b7781a0897fc.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/jquery.init.js b/backend/staticfiles/admin/js/jquery.init.js
deleted file mode 100644
index f40b27f47..000000000
--- a/backend/staticfiles/admin/js/jquery.init.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*global jQuery:false*/
-'use strict';
-/* Puts the included jQuery into our own namespace using noConflict and passing
- * it 'true'. This ensures that the included jQuery doesn't pollute the global
- * namespace (i.e. this preserves pre-existing values for both window.$ and
- * window.jQuery).
- */
-window.django = {jQuery: jQuery.noConflict(true)};
diff --git a/backend/staticfiles/admin/js/jquery.init.js.gz b/backend/staticfiles/admin/js/jquery.init.js.gz
deleted file mode 100644
index c3560ae9d..000000000
Binary files a/backend/staticfiles/admin/js/jquery.init.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/nav_sidebar.7605597ddf52.js b/backend/staticfiles/admin/js/nav_sidebar.7605597ddf52.js
deleted file mode 100644
index efaa7214b..000000000
--- a/backend/staticfiles/admin/js/nav_sidebar.7605597ddf52.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-{
- const toggleNavSidebar = document.getElementById('toggle-nav-sidebar');
- if (toggleNavSidebar !== null) {
- const navLinks = document.querySelectorAll('#nav-sidebar a');
- function disableNavLinkTabbing() {
- for (const navLink of navLinks) {
- navLink.tabIndex = -1;
- }
- }
- function enableNavLinkTabbing() {
- for (const navLink of navLinks) {
- navLink.tabIndex = 0;
- }
- }
-
- const main = document.getElementById('main');
- let navSidebarIsOpen = localStorage.getItem('django.admin.navSidebarIsOpen');
- if (navSidebarIsOpen === null) {
- navSidebarIsOpen = 'true';
- }
- if (navSidebarIsOpen === 'false') {
- disableNavLinkTabbing();
- }
- main.classList.toggle('shifted', navSidebarIsOpen === 'true');
-
- toggleNavSidebar.addEventListener('click', function() {
- if (navSidebarIsOpen === 'true') {
- navSidebarIsOpen = 'false';
- disableNavLinkTabbing();
- } else {
- navSidebarIsOpen = 'true';
- enableNavLinkTabbing();
- }
- localStorage.setItem('django.admin.navSidebarIsOpen', navSidebarIsOpen);
- main.classList.toggle('shifted');
- });
- }
-}
diff --git a/backend/staticfiles/admin/js/nav_sidebar.7605597ddf52.js.gz b/backend/staticfiles/admin/js/nav_sidebar.7605597ddf52.js.gz
deleted file mode 100644
index 2a1d6d9ea..000000000
Binary files a/backend/staticfiles/admin/js/nav_sidebar.7605597ddf52.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/nav_sidebar.js b/backend/staticfiles/admin/js/nav_sidebar.js
deleted file mode 100644
index efaa7214b..000000000
--- a/backend/staticfiles/admin/js/nav_sidebar.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-{
- const toggleNavSidebar = document.getElementById('toggle-nav-sidebar');
- if (toggleNavSidebar !== null) {
- const navLinks = document.querySelectorAll('#nav-sidebar a');
- function disableNavLinkTabbing() {
- for (const navLink of navLinks) {
- navLink.tabIndex = -1;
- }
- }
- function enableNavLinkTabbing() {
- for (const navLink of navLinks) {
- navLink.tabIndex = 0;
- }
- }
-
- const main = document.getElementById('main');
- let navSidebarIsOpen = localStorage.getItem('django.admin.navSidebarIsOpen');
- if (navSidebarIsOpen === null) {
- navSidebarIsOpen = 'true';
- }
- if (navSidebarIsOpen === 'false') {
- disableNavLinkTabbing();
- }
- main.classList.toggle('shifted', navSidebarIsOpen === 'true');
-
- toggleNavSidebar.addEventListener('click', function() {
- if (navSidebarIsOpen === 'true') {
- navSidebarIsOpen = 'false';
- disableNavLinkTabbing();
- } else {
- navSidebarIsOpen = 'true';
- enableNavLinkTabbing();
- }
- localStorage.setItem('django.admin.navSidebarIsOpen', navSidebarIsOpen);
- main.classList.toggle('shifted');
- });
- }
-}
diff --git a/backend/staticfiles/admin/js/nav_sidebar.js.gz b/backend/staticfiles/admin/js/nav_sidebar.js.gz
deleted file mode 100644
index 2a1d6d9ea..000000000
Binary files a/backend/staticfiles/admin/js/nav_sidebar.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/popup_response.c6cc78ea5551.js b/backend/staticfiles/admin/js/popup_response.c6cc78ea5551.js
deleted file mode 100644
index 2b1d3dd31..000000000
--- a/backend/staticfiles/admin/js/popup_response.c6cc78ea5551.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*global opener */
-'use strict';
-{
- const initData = JSON.parse(document.getElementById('django-admin-popup-response-constants').dataset.popupResponse);
- switch(initData.action) {
- case 'change':
- opener.dismissChangeRelatedObjectPopup(window, initData.value, initData.obj, initData.new_value);
- break;
- case 'delete':
- opener.dismissDeleteRelatedObjectPopup(window, initData.value);
- break;
- default:
- opener.dismissAddRelatedObjectPopup(window, initData.value, initData.obj);
- break;
- }
-}
diff --git a/backend/staticfiles/admin/js/popup_response.c6cc78ea5551.js.gz b/backend/staticfiles/admin/js/popup_response.c6cc78ea5551.js.gz
deleted file mode 100644
index 095fc38f5..000000000
Binary files a/backend/staticfiles/admin/js/popup_response.c6cc78ea5551.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/popup_response.js b/backend/staticfiles/admin/js/popup_response.js
deleted file mode 100644
index 2b1d3dd31..000000000
--- a/backend/staticfiles/admin/js/popup_response.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*global opener */
-'use strict';
-{
- const initData = JSON.parse(document.getElementById('django-admin-popup-response-constants').dataset.popupResponse);
- switch(initData.action) {
- case 'change':
- opener.dismissChangeRelatedObjectPopup(window, initData.value, initData.obj, initData.new_value);
- break;
- case 'delete':
- opener.dismissDeleteRelatedObjectPopup(window, initData.value);
- break;
- default:
- opener.dismissAddRelatedObjectPopup(window, initData.value, initData.obj);
- break;
- }
-}
diff --git a/backend/staticfiles/admin/js/popup_response.js.gz b/backend/staticfiles/admin/js/popup_response.js.gz
deleted file mode 100644
index 095fc38f5..000000000
Binary files a/backend/staticfiles/admin/js/popup_response.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/prepopulate.bd2361dfd64d.js b/backend/staticfiles/admin/js/prepopulate.bd2361dfd64d.js
deleted file mode 100644
index 89e95ab44..000000000
--- a/backend/staticfiles/admin/js/prepopulate.bd2361dfd64d.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*global URLify*/
-'use strict';
-{
- const $ = django.jQuery;
- $.fn.prepopulate = function(dependencies, maxLength, allowUnicode) {
- /*
- Depends on urlify.js
- Populates a selected field with the values of the dependent fields,
- URLifies and shortens the string.
- dependencies - array of dependent fields ids
- maxLength - maximum length of the URLify'd string
- allowUnicode - Unicode support of the URLify'd string
- */
- return this.each(function() {
- const prepopulatedField = $(this);
-
- const populate = function() {
- // Bail if the field's value has been changed by the user
- if (prepopulatedField.data('_changed')) {
- return;
- }
-
- const values = [];
- $.each(dependencies, function(i, field) {
- field = $(field);
- if (field.val().length > 0) {
- values.push(field.val());
- }
- });
- prepopulatedField.val(URLify(values.join(' '), maxLength, allowUnicode));
- };
-
- prepopulatedField.data('_changed', false);
- prepopulatedField.on('change', function() {
- prepopulatedField.data('_changed', true);
- });
-
- if (!prepopulatedField.val()) {
- $(dependencies.join(',')).on('keyup change focus', populate);
- }
- });
- };
-}
diff --git a/backend/staticfiles/admin/js/prepopulate.bd2361dfd64d.js.gz b/backend/staticfiles/admin/js/prepopulate.bd2361dfd64d.js.gz
deleted file mode 100644
index 0ad31cf6f..000000000
Binary files a/backend/staticfiles/admin/js/prepopulate.bd2361dfd64d.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/prepopulate.js b/backend/staticfiles/admin/js/prepopulate.js
deleted file mode 100644
index 89e95ab44..000000000
--- a/backend/staticfiles/admin/js/prepopulate.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*global URLify*/
-'use strict';
-{
- const $ = django.jQuery;
- $.fn.prepopulate = function(dependencies, maxLength, allowUnicode) {
- /*
- Depends on urlify.js
- Populates a selected field with the values of the dependent fields,
- URLifies and shortens the string.
- dependencies - array of dependent fields ids
- maxLength - maximum length of the URLify'd string
- allowUnicode - Unicode support of the URLify'd string
- */
- return this.each(function() {
- const prepopulatedField = $(this);
-
- const populate = function() {
- // Bail if the field's value has been changed by the user
- if (prepopulatedField.data('_changed')) {
- return;
- }
-
- const values = [];
- $.each(dependencies, function(i, field) {
- field = $(field);
- if (field.val().length > 0) {
- values.push(field.val());
- }
- });
- prepopulatedField.val(URLify(values.join(' '), maxLength, allowUnicode));
- };
-
- prepopulatedField.data('_changed', false);
- prepopulatedField.on('change', function() {
- prepopulatedField.data('_changed', true);
- });
-
- if (!prepopulatedField.val()) {
- $(dependencies.join(',')).on('keyup change focus', populate);
- }
- });
- };
-}
diff --git a/backend/staticfiles/admin/js/prepopulate.js.gz b/backend/staticfiles/admin/js/prepopulate.js.gz
deleted file mode 100644
index 0ad31cf6f..000000000
Binary files a/backend/staticfiles/admin/js/prepopulate.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/prepopulate_init.e056047b7a7e.js b/backend/staticfiles/admin/js/prepopulate_init.e056047b7a7e.js
deleted file mode 100644
index 72ebdcf5d..000000000
--- a/backend/staticfiles/admin/js/prepopulate_init.e056047b7a7e.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-{
- const $ = django.jQuery;
- const fields = $('#django-admin-prepopulated-fields-constants').data('prepopulatedFields');
- $.each(fields, function(index, field) {
- $('.empty-form .form-row .field-' + field.name + ', .empty-form.form-row .field-' + field.name).addClass('prepopulated_field');
- $(field.id).data('dependency_list', field.dependency_list).prepopulate(
- field.dependency_ids, field.maxLength, field.allowUnicode
- );
- });
-}
diff --git a/backend/staticfiles/admin/js/prepopulate_init.e056047b7a7e.js.gz b/backend/staticfiles/admin/js/prepopulate_init.e056047b7a7e.js.gz
deleted file mode 100644
index 9417cd0c7..000000000
Binary files a/backend/staticfiles/admin/js/prepopulate_init.e056047b7a7e.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/prepopulate_init.js b/backend/staticfiles/admin/js/prepopulate_init.js
deleted file mode 100644
index 72ebdcf5d..000000000
--- a/backend/staticfiles/admin/js/prepopulate_init.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-{
- const $ = django.jQuery;
- const fields = $('#django-admin-prepopulated-fields-constants').data('prepopulatedFields');
- $.each(fields, function(index, field) {
- $('.empty-form .form-row .field-' + field.name + ', .empty-form.form-row .field-' + field.name).addClass('prepopulated_field');
- $(field.id).data('dependency_list', field.dependency_list).prepopulate(
- field.dependency_ids, field.maxLength, field.allowUnicode
- );
- });
-}
diff --git a/backend/staticfiles/admin/js/prepopulate_init.js.gz b/backend/staticfiles/admin/js/prepopulate_init.js.gz
deleted file mode 100644
index 9417cd0c7..000000000
Binary files a/backend/staticfiles/admin/js/prepopulate_init.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/urlify.25cc3eac8123.js b/backend/staticfiles/admin/js/urlify.25cc3eac8123.js
deleted file mode 100644
index 61dedb23e..000000000
--- a/backend/staticfiles/admin/js/urlify.25cc3eac8123.js
+++ /dev/null
@@ -1,170 +0,0 @@
-/*global XRegExp*/
-'use strict';
-{
- const LATIN_MAP = {
- 'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE',
- 'Ç': 'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I',
- 'Î': 'I', 'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O',
- 'Õ': 'O', 'Ö': 'O', 'Ő': 'O', 'Ø': 'O', 'Ù': 'U', 'Ú': 'U', 'Û': 'U',
- 'Ü': 'U', 'Ű': 'U', 'Ý': 'Y', 'Þ': 'TH', 'Ÿ': 'Y', 'ß': 'ss', 'à': 'a',
- 'á': 'a', 'â': 'a', 'ã': 'a', 'ä': 'a', 'å': 'a', 'æ': 'ae', 'ç': 'c',
- 'è': 'e', 'é': 'e', 'ê': 'e', 'ë': 'e', 'ì': 'i', 'í': 'i', 'î': 'i',
- 'ï': 'i', 'ð': 'd', 'ñ': 'n', 'ò': 'o', 'ó': 'o', 'ô': 'o', 'õ': 'o',
- 'ö': 'o', 'ő': 'o', 'ø': 'o', 'ù': 'u', 'ú': 'u', 'û': 'u', 'ü': 'u',
- 'ű': 'u', 'ý': 'y', 'þ': 'th', 'ÿ': 'y'
- };
- const LATIN_SYMBOLS_MAP = {
- '©': '(c)'
- };
- const GREEK_MAP = {
- 'α': 'a', 'β': 'b', 'γ': 'g', 'δ': 'd', 'ε': 'e', 'ζ': 'z', 'η': 'h',
- 'θ': '8', 'ι': 'i', 'κ': 'k', 'λ': 'l', 'μ': 'm', 'ν': 'n', 'ξ': '3',
- 'ο': 'o', 'π': 'p', 'ρ': 'r', 'σ': 's', 'τ': 't', 'υ': 'y', 'φ': 'f',
- 'χ': 'x', 'ψ': 'ps', 'ω': 'w', 'ά': 'a', 'έ': 'e', 'ί': 'i', 'ό': 'o',
- 'ύ': 'y', 'ή': 'h', 'ώ': 'w', 'ς': 's', 'ϊ': 'i', 'ΰ': 'y', 'ϋ': 'y',
- 'ΐ': 'i', 'Α': 'A', 'Β': 'B', 'Γ': 'G', 'Δ': 'D', 'Ε': 'E', 'Ζ': 'Z',
- 'Η': 'H', 'Θ': '8', 'Ι': 'I', 'Κ': 'K', 'Λ': 'L', 'Μ': 'M', 'Ν': 'N',
- 'Ξ': '3', 'Ο': 'O', 'Π': 'P', 'Ρ': 'R', 'Σ': 'S', 'Τ': 'T', 'Υ': 'Y',
- 'Φ': 'F', 'Χ': 'X', 'Ψ': 'PS', 'Ω': 'W', 'Ά': 'A', 'Έ': 'E', 'Ί': 'I',
- 'Ό': 'O', 'Ύ': 'Y', 'Ή': 'H', 'Ώ': 'W', 'Ϊ': 'I', 'Ϋ': 'Y'
- };
- const TURKISH_MAP = {
- 'ş': 's', 'Ş': 'S', 'ı': 'i', 'İ': 'I', 'ç': 'c', 'Ç': 'C', 'ü': 'u',
- 'Ü': 'U', 'ö': 'o', 'Ö': 'O', 'ğ': 'g', 'Ğ': 'G'
- };
- const ROMANIAN_MAP = {
- 'ă': 'a', 'î': 'i', 'ș': 's', 'ț': 't', 'â': 'a',
- 'Ă': 'A', 'Î': 'I', 'Ș': 'S', 'Ț': 'T', 'Â': 'A'
- };
- const RUSSIAN_MAP = {
- 'а': 'a', 'б': 'b', 'в': 'v', 'г': 'g', 'д': 'd', 'е': 'e', 'ё': 'yo',
- 'ж': 'zh', 'з': 'z', 'и': 'i', 'й': 'j', 'к': 'k', 'л': 'l', 'м': 'm',
- 'н': 'n', 'о': 'o', 'п': 'p', 'р': 'r', 'с': 's', 'т': 't', 'у': 'u',
- 'ф': 'f', 'х': 'h', 'ц': 'c', 'ч': 'ch', 'ш': 'sh', 'щ': 'sh', 'ъ': '',
- 'ы': 'y', 'ь': '', 'э': 'e', 'ю': 'yu', 'я': 'ya',
- 'А': 'A', 'Б': 'B', 'В': 'V', 'Г': 'G', 'Д': 'D', 'Е': 'E', 'Ё': 'Yo',
- 'Ж': 'Zh', 'З': 'Z', 'И': 'I', 'Й': 'J', 'К': 'K', 'Л': 'L', 'М': 'M',
- 'Н': 'N', 'О': 'O', 'П': 'P', 'Р': 'R', 'С': 'S', 'Т': 'T', 'У': 'U',
- 'Ф': 'F', 'Х': 'H', 'Ц': 'C', 'Ч': 'Ch', 'Ш': 'Sh', 'Щ': 'Sh', 'Ъ': '',
- 'Ы': 'Y', 'Ь': '', 'Э': 'E', 'Ю': 'Yu', 'Я': 'Ya'
- };
- const UKRAINIAN_MAP = {
- 'Є': 'Ye', 'І': 'I', 'Ї': 'Yi', 'Ґ': 'G', 'є': 'ye', 'і': 'i',
- 'ї': 'yi', 'ґ': 'g'
- };
- const CZECH_MAP = {
- 'č': 'c', 'ď': 'd', 'ě': 'e', 'ň': 'n', 'ř': 'r', 'š': 's', 'ť': 't',
- 'ů': 'u', 'ž': 'z', 'Č': 'C', 'Ď': 'D', 'Ě': 'E', 'Ň': 'N', 'Ř': 'R',
- 'Š': 'S', 'Ť': 'T', 'Ů': 'U', 'Ž': 'Z'
- };
- const SLOVAK_MAP = {
- 'á': 'a', 'ä': 'a', 'č': 'c', 'ď': 'd', 'é': 'e', 'í': 'i', 'ľ': 'l',
- 'ĺ': 'l', 'ň': 'n', 'ó': 'o', 'ô': 'o', 'ŕ': 'r', 'š': 's', 'ť': 't',
- 'ú': 'u', 'ý': 'y', 'ž': 'z',
- 'Á': 'a', 'Ä': 'A', 'Č': 'C', 'Ď': 'D', 'É': 'E', 'Í': 'I', 'Ľ': 'L',
- 'Ĺ': 'L', 'Ň': 'N', 'Ó': 'O', 'Ô': 'O', 'Ŕ': 'R', 'Š': 'S', 'Ť': 'T',
- 'Ú': 'U', 'Ý': 'Y', 'Ž': 'Z'
- };
- const POLISH_MAP = {
- 'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's',
- 'ź': 'z', 'ż': 'z',
- 'Ą': 'A', 'Ć': 'C', 'Ę': 'E', 'Ł': 'L', 'Ń': 'N', 'Ó': 'O', 'Ś': 'S',
- 'Ź': 'Z', 'Ż': 'Z'
- };
- const LATVIAN_MAP = {
- 'ā': 'a', 'č': 'c', 'ē': 'e', 'ģ': 'g', 'ī': 'i', 'ķ': 'k', 'ļ': 'l',
- 'ņ': 'n', 'š': 's', 'ū': 'u', 'ž': 'z',
- 'Ā': 'A', 'Č': 'C', 'Ē': 'E', 'Ģ': 'G', 'Ī': 'I', 'Ķ': 'K', 'Ļ': 'L',
- 'Ņ': 'N', 'Š': 'S', 'Ū': 'U', 'Ž': 'Z'
- };
- const ARABIC_MAP = {
- 'أ': 'a', 'ب': 'b', 'ت': 't', 'ث': 'th', 'ج': 'g', 'ح': 'h', 'خ': 'kh', 'د': 'd',
- 'ذ': 'th', 'ر': 'r', 'ز': 'z', 'س': 's', 'ش': 'sh', 'ص': 's', 'ض': 'd', 'ط': 't',
- 'ظ': 'th', 'ع': 'aa', 'غ': 'gh', 'ف': 'f', 'ق': 'k', 'ك': 'k', 'ل': 'l', 'م': 'm',
- 'ن': 'n', 'ه': 'h', 'و': 'o', 'ي': 'y'
- };
- const LITHUANIAN_MAP = {
- 'ą': 'a', 'č': 'c', 'ę': 'e', 'ė': 'e', 'į': 'i', 'š': 's', 'ų': 'u',
- 'ū': 'u', 'ž': 'z',
- 'Ą': 'A', 'Č': 'C', 'Ę': 'E', 'Ė': 'E', 'Į': 'I', 'Š': 'S', 'Ų': 'U',
- 'Ū': 'U', 'Ž': 'Z'
- };
- const SERBIAN_MAP = {
- 'ђ': 'dj', 'ј': 'j', 'љ': 'lj', 'њ': 'nj', 'ћ': 'c', 'џ': 'dz',
- 'đ': 'dj', 'Ђ': 'Dj', 'Ј': 'j', 'Љ': 'Lj', 'Њ': 'Nj', 'Ћ': 'C',
- 'Џ': 'Dz', 'Đ': 'Dj'
- };
- const AZERBAIJANI_MAP = {
- 'ç': 'c', 'ə': 'e', 'ğ': 'g', 'ı': 'i', 'ö': 'o', 'ş': 's', 'ü': 'u',
- 'Ç': 'C', 'Ə': 'E', 'Ğ': 'G', 'İ': 'I', 'Ö': 'O', 'Ş': 'S', 'Ü': 'U'
- };
- const GEORGIAN_MAP = {
- 'ა': 'a', 'ბ': 'b', 'გ': 'g', 'დ': 'd', 'ე': 'e', 'ვ': 'v', 'ზ': 'z',
- 'თ': 't', 'ი': 'i', 'კ': 'k', 'ლ': 'l', 'მ': 'm', 'ნ': 'n', 'ო': 'o',
- 'პ': 'p', 'ჟ': 'j', 'რ': 'r', 'ს': 's', 'ტ': 't', 'უ': 'u', 'ფ': 'f',
- 'ქ': 'q', 'ღ': 'g', 'ყ': 'y', 'შ': 'sh', 'ჩ': 'ch', 'ც': 'c', 'ძ': 'dz',
- 'წ': 'w', 'ჭ': 'ch', 'ხ': 'x', 'ჯ': 'j', 'ჰ': 'h'
- };
-
- const ALL_DOWNCODE_MAPS = [
- LATIN_MAP,
- LATIN_SYMBOLS_MAP,
- GREEK_MAP,
- TURKISH_MAP,
- ROMANIAN_MAP,
- RUSSIAN_MAP,
- UKRAINIAN_MAP,
- CZECH_MAP,
- SLOVAK_MAP,
- POLISH_MAP,
- LATVIAN_MAP,
- ARABIC_MAP,
- LITHUANIAN_MAP,
- SERBIAN_MAP,
- AZERBAIJANI_MAP,
- GEORGIAN_MAP
- ];
-
- const Downcoder = {
- 'Initialize': function() {
- if (Downcoder.map) { // already made
- return;
- }
- Downcoder.map = {};
- for (const lookup of ALL_DOWNCODE_MAPS) {
- Object.assign(Downcoder.map, lookup);
- }
- Downcoder.regex = new RegExp(Object.keys(Downcoder.map).join('|'), 'g');
- }
- };
-
- function downcode(slug) {
- Downcoder.Initialize();
- return slug.replace(Downcoder.regex, function(m) {
- return Downcoder.map[m];
- });
- }
-
-
- function URLify(s, num_chars, allowUnicode) {
- // changes, e.g., "Petty theft" to "petty-theft"
- if (!allowUnicode) {
- s = downcode(s);
- }
- s = s.toLowerCase(); // convert to lowercase
- // if downcode doesn't hit, the char will be stripped here
- if (allowUnicode) {
- // Keep Unicode letters including both lowercase and uppercase
- // characters, whitespace, and dash; remove other characters.
- s = XRegExp.replace(s, XRegExp('[^-_\\p{L}\\p{N}\\s]', 'g'), '');
- } else {
- s = s.replace(/[^-\w\s]/g, ''); // remove unneeded chars
- }
- s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces
- s = s.replace(/[-\s]+/g, '-'); // convert spaces to hyphens
- s = s.substring(0, num_chars); // trim to first num_chars chars
- s = s.replace(/-+$/g, ''); // trim any trailing hyphens
- return s;
- }
- window.URLify = URLify;
-}
diff --git a/backend/staticfiles/admin/js/urlify.25cc3eac8123.js.gz b/backend/staticfiles/admin/js/urlify.25cc3eac8123.js.gz
deleted file mode 100644
index 75663059e..000000000
Binary files a/backend/staticfiles/admin/js/urlify.25cc3eac8123.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/urlify.js b/backend/staticfiles/admin/js/urlify.js
deleted file mode 100644
index 61dedb23e..000000000
--- a/backend/staticfiles/admin/js/urlify.js
+++ /dev/null
@@ -1,170 +0,0 @@
-/*global XRegExp*/
-'use strict';
-{
- const LATIN_MAP = {
- 'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE',
- 'Ç': 'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I',
- 'Î': 'I', 'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O',
- 'Õ': 'O', 'Ö': 'O', 'Ő': 'O', 'Ø': 'O', 'Ù': 'U', 'Ú': 'U', 'Û': 'U',
- 'Ü': 'U', 'Ű': 'U', 'Ý': 'Y', 'Þ': 'TH', 'Ÿ': 'Y', 'ß': 'ss', 'à': 'a',
- 'á': 'a', 'â': 'a', 'ã': 'a', 'ä': 'a', 'å': 'a', 'æ': 'ae', 'ç': 'c',
- 'è': 'e', 'é': 'e', 'ê': 'e', 'ë': 'e', 'ì': 'i', 'í': 'i', 'î': 'i',
- 'ï': 'i', 'ð': 'd', 'ñ': 'n', 'ò': 'o', 'ó': 'o', 'ô': 'o', 'õ': 'o',
- 'ö': 'o', 'ő': 'o', 'ø': 'o', 'ù': 'u', 'ú': 'u', 'û': 'u', 'ü': 'u',
- 'ű': 'u', 'ý': 'y', 'þ': 'th', 'ÿ': 'y'
- };
- const LATIN_SYMBOLS_MAP = {
- '©': '(c)'
- };
- const GREEK_MAP = {
- 'α': 'a', 'β': 'b', 'γ': 'g', 'δ': 'd', 'ε': 'e', 'ζ': 'z', 'η': 'h',
- 'θ': '8', 'ι': 'i', 'κ': 'k', 'λ': 'l', 'μ': 'm', 'ν': 'n', 'ξ': '3',
- 'ο': 'o', 'π': 'p', 'ρ': 'r', 'σ': 's', 'τ': 't', 'υ': 'y', 'φ': 'f',
- 'χ': 'x', 'ψ': 'ps', 'ω': 'w', 'ά': 'a', 'έ': 'e', 'ί': 'i', 'ό': 'o',
- 'ύ': 'y', 'ή': 'h', 'ώ': 'w', 'ς': 's', 'ϊ': 'i', 'ΰ': 'y', 'ϋ': 'y',
- 'ΐ': 'i', 'Α': 'A', 'Β': 'B', 'Γ': 'G', 'Δ': 'D', 'Ε': 'E', 'Ζ': 'Z',
- 'Η': 'H', 'Θ': '8', 'Ι': 'I', 'Κ': 'K', 'Λ': 'L', 'Μ': 'M', 'Ν': 'N',
- 'Ξ': '3', 'Ο': 'O', 'Π': 'P', 'Ρ': 'R', 'Σ': 'S', 'Τ': 'T', 'Υ': 'Y',
- 'Φ': 'F', 'Χ': 'X', 'Ψ': 'PS', 'Ω': 'W', 'Ά': 'A', 'Έ': 'E', 'Ί': 'I',
- 'Ό': 'O', 'Ύ': 'Y', 'Ή': 'H', 'Ώ': 'W', 'Ϊ': 'I', 'Ϋ': 'Y'
- };
- const TURKISH_MAP = {
- 'ş': 's', 'Ş': 'S', 'ı': 'i', 'İ': 'I', 'ç': 'c', 'Ç': 'C', 'ü': 'u',
- 'Ü': 'U', 'ö': 'o', 'Ö': 'O', 'ğ': 'g', 'Ğ': 'G'
- };
- const ROMANIAN_MAP = {
- 'ă': 'a', 'î': 'i', 'ș': 's', 'ț': 't', 'â': 'a',
- 'Ă': 'A', 'Î': 'I', 'Ș': 'S', 'Ț': 'T', 'Â': 'A'
- };
- const RUSSIAN_MAP = {
- 'а': 'a', 'б': 'b', 'в': 'v', 'г': 'g', 'д': 'd', 'е': 'e', 'ё': 'yo',
- 'ж': 'zh', 'з': 'z', 'и': 'i', 'й': 'j', 'к': 'k', 'л': 'l', 'м': 'm',
- 'н': 'n', 'о': 'o', 'п': 'p', 'р': 'r', 'с': 's', 'т': 't', 'у': 'u',
- 'ф': 'f', 'х': 'h', 'ц': 'c', 'ч': 'ch', 'ш': 'sh', 'щ': 'sh', 'ъ': '',
- 'ы': 'y', 'ь': '', 'э': 'e', 'ю': 'yu', 'я': 'ya',
- 'А': 'A', 'Б': 'B', 'В': 'V', 'Г': 'G', 'Д': 'D', 'Е': 'E', 'Ё': 'Yo',
- 'Ж': 'Zh', 'З': 'Z', 'И': 'I', 'Й': 'J', 'К': 'K', 'Л': 'L', 'М': 'M',
- 'Н': 'N', 'О': 'O', 'П': 'P', 'Р': 'R', 'С': 'S', 'Т': 'T', 'У': 'U',
- 'Ф': 'F', 'Х': 'H', 'Ц': 'C', 'Ч': 'Ch', 'Ш': 'Sh', 'Щ': 'Sh', 'Ъ': '',
- 'Ы': 'Y', 'Ь': '', 'Э': 'E', 'Ю': 'Yu', 'Я': 'Ya'
- };
- const UKRAINIAN_MAP = {
- 'Є': 'Ye', 'І': 'I', 'Ї': 'Yi', 'Ґ': 'G', 'є': 'ye', 'і': 'i',
- 'ї': 'yi', 'ґ': 'g'
- };
- const CZECH_MAP = {
- 'č': 'c', 'ď': 'd', 'ě': 'e', 'ň': 'n', 'ř': 'r', 'š': 's', 'ť': 't',
- 'ů': 'u', 'ž': 'z', 'Č': 'C', 'Ď': 'D', 'Ě': 'E', 'Ň': 'N', 'Ř': 'R',
- 'Š': 'S', 'Ť': 'T', 'Ů': 'U', 'Ž': 'Z'
- };
- const SLOVAK_MAP = {
- 'á': 'a', 'ä': 'a', 'č': 'c', 'ď': 'd', 'é': 'e', 'í': 'i', 'ľ': 'l',
- 'ĺ': 'l', 'ň': 'n', 'ó': 'o', 'ô': 'o', 'ŕ': 'r', 'š': 's', 'ť': 't',
- 'ú': 'u', 'ý': 'y', 'ž': 'z',
- 'Á': 'a', 'Ä': 'A', 'Č': 'C', 'Ď': 'D', 'É': 'E', 'Í': 'I', 'Ľ': 'L',
- 'Ĺ': 'L', 'Ň': 'N', 'Ó': 'O', 'Ô': 'O', 'Ŕ': 'R', 'Š': 'S', 'Ť': 'T',
- 'Ú': 'U', 'Ý': 'Y', 'Ž': 'Z'
- };
- const POLISH_MAP = {
- 'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's',
- 'ź': 'z', 'ż': 'z',
- 'Ą': 'A', 'Ć': 'C', 'Ę': 'E', 'Ł': 'L', 'Ń': 'N', 'Ó': 'O', 'Ś': 'S',
- 'Ź': 'Z', 'Ż': 'Z'
- };
- const LATVIAN_MAP = {
- 'ā': 'a', 'č': 'c', 'ē': 'e', 'ģ': 'g', 'ī': 'i', 'ķ': 'k', 'ļ': 'l',
- 'ņ': 'n', 'š': 's', 'ū': 'u', 'ž': 'z',
- 'Ā': 'A', 'Č': 'C', 'Ē': 'E', 'Ģ': 'G', 'Ī': 'I', 'Ķ': 'K', 'Ļ': 'L',
- 'Ņ': 'N', 'Š': 'S', 'Ū': 'U', 'Ž': 'Z'
- };
- const ARABIC_MAP = {
- 'أ': 'a', 'ب': 'b', 'ت': 't', 'ث': 'th', 'ج': 'g', 'ح': 'h', 'خ': 'kh', 'د': 'd',
- 'ذ': 'th', 'ر': 'r', 'ز': 'z', 'س': 's', 'ش': 'sh', 'ص': 's', 'ض': 'd', 'ط': 't',
- 'ظ': 'th', 'ع': 'aa', 'غ': 'gh', 'ف': 'f', 'ق': 'k', 'ك': 'k', 'ل': 'l', 'م': 'm',
- 'ن': 'n', 'ه': 'h', 'و': 'o', 'ي': 'y'
- };
- const LITHUANIAN_MAP = {
- 'ą': 'a', 'č': 'c', 'ę': 'e', 'ė': 'e', 'į': 'i', 'š': 's', 'ų': 'u',
- 'ū': 'u', 'ž': 'z',
- 'Ą': 'A', 'Č': 'C', 'Ę': 'E', 'Ė': 'E', 'Į': 'I', 'Š': 'S', 'Ų': 'U',
- 'Ū': 'U', 'Ž': 'Z'
- };
- const SERBIAN_MAP = {
- 'ђ': 'dj', 'ј': 'j', 'љ': 'lj', 'њ': 'nj', 'ћ': 'c', 'џ': 'dz',
- 'đ': 'dj', 'Ђ': 'Dj', 'Ј': 'j', 'Љ': 'Lj', 'Њ': 'Nj', 'Ћ': 'C',
- 'Џ': 'Dz', 'Đ': 'Dj'
- };
- const AZERBAIJANI_MAP = {
- 'ç': 'c', 'ə': 'e', 'ğ': 'g', 'ı': 'i', 'ö': 'o', 'ş': 's', 'ü': 'u',
- 'Ç': 'C', 'Ə': 'E', 'Ğ': 'G', 'İ': 'I', 'Ö': 'O', 'Ş': 'S', 'Ü': 'U'
- };
- const GEORGIAN_MAP = {
- 'ა': 'a', 'ბ': 'b', 'გ': 'g', 'დ': 'd', 'ე': 'e', 'ვ': 'v', 'ზ': 'z',
- 'თ': 't', 'ი': 'i', 'კ': 'k', 'ლ': 'l', 'მ': 'm', 'ნ': 'n', 'ო': 'o',
- 'პ': 'p', 'ჟ': 'j', 'რ': 'r', 'ს': 's', 'ტ': 't', 'უ': 'u', 'ფ': 'f',
- 'ქ': 'q', 'ღ': 'g', 'ყ': 'y', 'შ': 'sh', 'ჩ': 'ch', 'ც': 'c', 'ძ': 'dz',
- 'წ': 'w', 'ჭ': 'ch', 'ხ': 'x', 'ჯ': 'j', 'ჰ': 'h'
- };
-
- const ALL_DOWNCODE_MAPS = [
- LATIN_MAP,
- LATIN_SYMBOLS_MAP,
- GREEK_MAP,
- TURKISH_MAP,
- ROMANIAN_MAP,
- RUSSIAN_MAP,
- UKRAINIAN_MAP,
- CZECH_MAP,
- SLOVAK_MAP,
- POLISH_MAP,
- LATVIAN_MAP,
- ARABIC_MAP,
- LITHUANIAN_MAP,
- SERBIAN_MAP,
- AZERBAIJANI_MAP,
- GEORGIAN_MAP
- ];
-
- const Downcoder = {
- 'Initialize': function() {
- if (Downcoder.map) { // already made
- return;
- }
- Downcoder.map = {};
- for (const lookup of ALL_DOWNCODE_MAPS) {
- Object.assign(Downcoder.map, lookup);
- }
- Downcoder.regex = new RegExp(Object.keys(Downcoder.map).join('|'), 'g');
- }
- };
-
- function downcode(slug) {
- Downcoder.Initialize();
- return slug.replace(Downcoder.regex, function(m) {
- return Downcoder.map[m];
- });
- }
-
-
- function URLify(s, num_chars, allowUnicode) {
- // changes, e.g., "Petty theft" to "petty-theft"
- if (!allowUnicode) {
- s = downcode(s);
- }
- s = s.toLowerCase(); // convert to lowercase
- // if downcode doesn't hit, the char will be stripped here
- if (allowUnicode) {
- // Keep Unicode letters including both lowercase and uppercase
- // characters, whitespace, and dash; remove other characters.
- s = XRegExp.replace(s, XRegExp('[^-_\\p{L}\\p{N}\\s]', 'g'), '');
- } else {
- s = s.replace(/[^-\w\s]/g, ''); // remove unneeded chars
- }
- s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces
- s = s.replace(/[-\s]+/g, '-'); // convert spaces to hyphens
- s = s.substring(0, num_chars); // trim to first num_chars chars
- s = s.replace(/-+$/g, ''); // trim any trailing hyphens
- return s;
- }
- window.URLify = URLify;
-}
diff --git a/backend/staticfiles/admin/js/urlify.js.gz b/backend/staticfiles/admin/js/urlify.js.gz
deleted file mode 100644
index 75663059e..000000000
Binary files a/backend/staticfiles/admin/js/urlify.js.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/vendor/jquery/LICENSE.75308107741f.txt b/backend/staticfiles/admin/js/vendor/jquery/LICENSE.75308107741f.txt
deleted file mode 100644
index e3dbacb99..000000000
--- a/backend/staticfiles/admin/js/vendor/jquery/LICENSE.75308107741f.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright JS Foundation and other contributors, https://js.foundation/
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/backend/staticfiles/admin/js/vendor/jquery/LICENSE.75308107741f.txt.gz b/backend/staticfiles/admin/js/vendor/jquery/LICENSE.75308107741f.txt.gz
deleted file mode 100644
index 696bd413c..000000000
Binary files a/backend/staticfiles/admin/js/vendor/jquery/LICENSE.75308107741f.txt.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/vendor/jquery/LICENSE.txt b/backend/staticfiles/admin/js/vendor/jquery/LICENSE.txt
deleted file mode 100644
index e3dbacb99..000000000
--- a/backend/staticfiles/admin/js/vendor/jquery/LICENSE.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright JS Foundation and other contributors, https://js.foundation/
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/backend/staticfiles/admin/js/vendor/jquery/LICENSE.txt.gz b/backend/staticfiles/admin/js/vendor/jquery/LICENSE.txt.gz
deleted file mode 100644
index 696bd413c..000000000
Binary files a/backend/staticfiles/admin/js/vendor/jquery/LICENSE.txt.gz and /dev/null differ
diff --git a/backend/staticfiles/admin/js/vendor/jquery/jquery.23c7c5d2d131.js b/backend/staticfiles/admin/js/vendor/jquery/jquery.23c7c5d2d131.js
deleted file mode 100644
index 50937333b..000000000
--- a/backend/staticfiles/admin/js/vendor/jquery/jquery.23c7c5d2d131.js
+++ /dev/null
@@ -1,10872 +0,0 @@
-/*!
- * jQuery JavaScript Library v3.5.1
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2020-05-04T22:49Z
- */
-( function( global, factory ) {
-
- "use strict";
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
-
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
-// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
-// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
-// enough that all such attempts are guarded in a try block.
-"use strict";
-
-var arr = [];
-
-var getProto = Object.getPrototypeOf;
-
-var slice = arr.slice;
-
-var flat = arr.flat ? function( array ) {
- return arr.flat.call( array );
-} : function( array ) {
- return arr.concat.apply( [], array );
-};
-
-
-var push = arr.push;
-
-var indexOf = arr.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var fnToString = hasOwn.toString;
-
-var ObjectFunctionString = fnToString.call( Object );
-
-var support = {};
-
-var isFunction = function isFunction( obj ) {
-
- // Support: Chrome <=57, Firefox <=52
- // In some browsers, typeof returns "function" for HTML
elements
- // (i.e., `typeof document.createElement( "object" ) === "function"`).
- // We don't want to classify *any* DOM node as a function.
- return typeof obj === "function" && typeof obj.nodeType !== "number";
- };
-
-
-var isWindow = function isWindow( obj ) {
- return obj != null && obj === obj.window;
- };
-
-
-var document = window.document;
-
-
-
- var preservedScriptAttributes = {
- type: true,
- src: true,
- nonce: true,
- noModule: true
- };
-
- function DOMEval( code, node, doc ) {
- doc = doc || document;
-
- var i, val,
- script = doc.createElement( "script" );
-
- script.text = code;
- if ( node ) {
- for ( i in preservedScriptAttributes ) {
-
- // Support: Firefox 64+, Edge 18+
- // Some browsers don't support the "nonce" property on scripts.
- // On the other hand, just using `getAttribute` is not enough as
- // the `nonce` attribute is reset to an empty string whenever it
- // becomes browsing-context connected.
- // See https://github.com/whatwg/html/issues/2369
- // See https://html.spec.whatwg.org/#nonce-attributes
- // The `node.getAttribute` check was added for the sake of
- // `jQuery.globalEval` so that it can fake a nonce-containing node
- // via an object.
- val = node[ i ] || node.getAttribute && node.getAttribute( i );
- if ( val ) {
- script.setAttribute( i, val );
- }
- }
- }
- doc.head.appendChild( script ).parentNode.removeChild( script );
- }
-
-
-function toType( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
-
- // Support: Android <=2.3 only (functionish RegExp)
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
-}
-/* global Symbol */
-// Defining this global in .eslintrc.json would create a danger of using the global
-// unguarded in another place, it seems safer to define global only for this module
-
-
-
-var
- version = "3.5.1",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
-
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- };
-
-jQuery.fn = jQuery.prototype = {
-
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
-
- // Return all the elements in a clean array
- if ( num == null ) {
- return slice.call( this );
- }
-
- // Return just the one element from the set
- return num < 0 ? this[ num + this.length ] : this[ num ];
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- each: function( callback ) {
- return jQuery.each( this, callback );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map( this, function( elem, i ) {
- return callback.call( elem, i, elem );
- } ) );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- even: function() {
- return this.pushStack( jQuery.grep( this, function( _elem, i ) {
- return ( i + 1 ) % 2;
- } ) );
- },
-
- odd: function() {
- return this.pushStack( jQuery.grep( this, function( _elem, i ) {
- return i % 2;
- } ) );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor();
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: arr.sort,
- splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[ 0 ] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // Skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !isFunction( target ) ) {
- target = {};
- }
-
- // Extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
-
- // Only deal with non-null/undefined values
- if ( ( options = arguments[ i ] ) != null ) {
-
- // Extend the base object
- for ( name in options ) {
- copy = options[ name ];
-
- // Prevent Object.prototype pollution
- // Prevent never-ending loop
- if ( name === "__proto__" || target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = Array.isArray( copy ) ) ) ) {
- src = target[ name ];
-
- // Ensure proper type for the source value
- if ( copyIsArray && !Array.isArray( src ) ) {
- clone = [];
- } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
- clone = {};
- } else {
- clone = src;
- }
- copyIsArray = false;
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend( {
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- isPlainObject: function( obj ) {
- var proto, Ctor;
-
- // Detect obvious negatives
- // Use toString instead of jQuery.type to catch host objects
- if ( !obj || toString.call( obj ) !== "[object Object]" ) {
- return false;
- }
-
- proto = getProto( obj );
-
- // Objects with no prototype (e.g., `Object.create( null )`) are plain
- if ( !proto ) {
- return true;
- }
-
- // Objects with prototype are plain iff they were constructed by a global Object function
- Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
- return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
- },
-
- isEmptyObject: function( obj ) {
- var name;
-
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- // Evaluates a script in a provided context; falls back to the global one
- // if not specified.
- globalEval: function( code, options, doc ) {
- DOMEval( code, { nonce: options && options.nonce }, doc );
- },
-
- each: function( obj, callback ) {
- var length, i = 0;
-
- if ( isArrayLike( obj ) ) {
- length = obj.length;
- for ( ; i < length; i++ ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- }
-
- return obj;
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArrayLike( Object( arr ) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- return arr == null ? -1 : indexOf.call( arr, elem, i );
- },
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- for ( ; j < len; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var length, value,
- i = 0,
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArrayLike( elems ) ) {
- length = elems.length;
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return flat( ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-} );
-
-if ( typeof Symbol === "function" ) {
- jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-
-// 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 ) {
-
- // Support: real iOS 8.2 only (not reproducible in simulator)
- // `in` check used to prevent JIT error (gh-2145)
- // hasOwn isn't used here due to false negatives
- // regarding Nodelist length in IE
- var length = !!obj && "length" in obj && obj.length,
- type = toType( obj );
-
- if ( isFunction( obj ) || isWindow( obj ) ) {
- return false;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v2.3.5
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://js.foundation/
- *
- * Date: 2020-03-14
- */
-( function( window ) {
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + 1 * new Date(),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- nonnativeSelectorCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // Instance methods
- hasOwn = ( {} ).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- pushNative = arr.push,
- push = arr.push,
- slice = arr.slice,
-
- // Use a stripped-down indexOf as it's faster than native
- // https://jsperf.com/thor-indexof-vs-for/5
- indexOf = function( list, elem ) {
- var i = 0,
- len = list.length;
- for ( ; i < len; i++ ) {
- if ( list[ i ] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" +
- "ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
-
- // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
- identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
- "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
-
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
-
- // "Attribute values must be CSS identifiers [capture 5]
- // or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" +
- whitespace + "*\\]",
-
- pseudos = ":(" + identifier + ")(?:\\((" +
-
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
-
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
-
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rwhitespace = new RegExp( whitespace + "+", "g" ),
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" +
- whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
- "*" ),
- rdescend = new RegExp( whitespace + "|>" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + identifier + ")" ),
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
- whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" +
- whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
-
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace +
- "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
- "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rhtml = /HTML$/i,
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
-
- // CSS escapes
- // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ),
- funescape = function( escape, nonHex ) {
- var high = "0x" + escape.slice( 1 ) - 0x10000;
-
- return nonHex ?
-
- // Strip the backslash prefix from a non-hex escape sequence
- nonHex :
-
- // Replace a hexadecimal escape sequence with the encoded Unicode code point
- // Support: IE <=11+
- // For values outside the Basic Multilingual Plane (BMP), manually construct a
- // surrogate pair
- high < 0 ?
- String.fromCharCode( high + 0x10000 ) :
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- },
-
- // CSS string/identifier serialization
- // https://drafts.csswg.org/cssom/#common-serializing-idioms
- rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
- fcssescape = function( ch, asCodePoint ) {
- if ( asCodePoint ) {
-
- // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
- if ( ch === "\0" ) {
- return "\uFFFD";
- }
-
- // Control characters and (dependent upon position) numbers get escaped as code points
- return ch.slice( 0, -1 ) + "\\" +
- ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
- }
-
- // Other potentially-special ASCII characters get backslash-escaped
- return "\\" + ch;
- },
-
- // Used for iframes
- // See setDocument()
- // Removing the function wrapper causes a "Permission Denied"
- // error in IE
- unloadHandler = function() {
- setDocument();
- },
-
- inDisabledFieldset = addCombinator(
- function( elem ) {
- return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
- },
- { dir: "parentNode", next: "legend" }
- );
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- ( arr = slice.call( preferredDoc.childNodes ) ),
- preferredDoc.childNodes
- );
-
- // Support: Android<4.0
- // Detect silently failing push.apply
- // eslint-disable-next-line no-unused-expressions
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- pushNative.apply( target, slice.call( els ) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
-
- // Can't trust NodeList.length
- while ( ( target[ j++ ] = els[ i++ ] ) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var m, i, elem, nid, match, groups, newSelector,
- newContext = context && context.ownerDocument,
-
- // nodeType defaults to 9, since context defaults to document
- nodeType = context ? context.nodeType : 9;
-
- results = results || [];
-
- // Return early from calls with invalid selector or context
- if ( typeof selector !== "string" || !selector ||
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
- return results;
- }
-
- // Try to shortcut find operations (as opposed to filters) in HTML documents
- if ( !seed ) {
- setDocument( context );
- context = context || document;
-
- if ( documentIsHTML ) {
-
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
- // (excepting DocumentFragment context, where the methods don't exist)
- if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {
-
- // ID selector
- if ( ( m = match[ 1 ] ) ) {
-
- // Document context
- if ( nodeType === 9 ) {
- if ( ( elem = context.getElementById( m ) ) ) {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
-
- // Element context
- } else {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( newContext && ( elem = newContext.getElementById( m ) ) &&
- contains( context, elem ) &&
- elem.id === m ) {
-
- results.push( elem );
- return results;
- }
- }
-
- // Type selector
- } else if ( match[ 2 ] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Class selector
- } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&
- context.getElementsByClassName ) {
-
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // Take advantage of querySelectorAll
- if ( support.qsa &&
- !nonnativeSelectorCache[ selector + " " ] &&
- ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
-
- // Support: IE 8 only
- // Exclude object elements
- ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) {
-
- newSelector = selector;
- newContext = context;
-
- // qSA considers elements outside a scoping root when evaluating child or
- // descendant combinators, which is not what we want.
- // In such cases, we work around the behavior by prefixing every selector in the
- // list with an ID selector referencing the scope context.
- // The technique has to be used as well when a leading combinator is used
- // as such selectors are not recognized by querySelectorAll.
- // Thanks to Andrew Dupont for this technique.
- if ( nodeType === 1 &&
- ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
-
- // Expand context for sibling selectors
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
- context;
-
- // We can use :scope instead of the ID hack if the browser
- // supports it & if we're not changing the context.
- if ( newContext !== context || !support.scope ) {
-
- // Capture the context ID, setting it first if necessary
- if ( ( nid = context.getAttribute( "id" ) ) ) {
- nid = nid.replace( rcssescape, fcssescape );
- } else {
- context.setAttribute( "id", ( nid = expando ) );
- }
- }
-
- // Prefix every selector in the list
- groups = tokenize( selector );
- i = groups.length;
- while ( i-- ) {
- groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
- toSelector( groups[ i ] );
- }
- newSelector = groups.join( "," );
- }
-
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch ( qsaError ) {
- nonnativeSelectorCache( selector, true );
- } finally {
- if ( nid === expando ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
-
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
-
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return ( cache[ key + " " ] = value );
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created element and returns a boolean result
- */
-function assert( fn ) {
- var el = document.createElement( "fieldset" );
-
- try {
- return !!fn( el );
- } catch ( e ) {
- return false;
- } finally {
-
- // Remove from its parent by default
- if ( el.parentNode ) {
- el.parentNode.removeChild( el );
- }
-
- // release memory in IE
- el = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split( "|" ),
- i = arr.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[ i ] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- a.sourceIndex - b.sourceIndex;
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( ( cur = cur.nextSibling ) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return ( name === "input" || name === "button" ) && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for :enabled/:disabled
- * @param {Boolean} disabled true for :disabled; false for :enabled
- */
-function createDisabledPseudo( disabled ) {
-
- // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
- return function( elem ) {
-
- // Only certain elements can match :enabled or :disabled
- // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
- // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
- if ( "form" in elem ) {
-
- // Check for inherited disabledness on relevant non-disabled elements:
- // * listed form-associated elements in a disabled fieldset
- // https://html.spec.whatwg.org/multipage/forms.html#category-listed
- // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
- // * option elements in a disabled optgroup
- // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
- // All such elements have a "form" property.
- if ( elem.parentNode && elem.disabled === false ) {
-
- // Option elements defer to a parent optgroup if present
- if ( "label" in elem ) {
- if ( "label" in elem.parentNode ) {
- return elem.parentNode.disabled === disabled;
- } else {
- return elem.disabled === disabled;
- }
- }
-
- // Support: IE 6 - 11
- // Use the isDisabled shortcut property to check for disabled fieldset ancestors
- return elem.isDisabled === disabled ||
-
- // Where there is no isDisabled, check manually
- /* jshint -W018 */
- elem.isDisabled !== !disabled &&
- inDisabledFieldset( elem ) === disabled;
- }
-
- return elem.disabled === disabled;
-
- // Try to winnow out elements that can't be disabled before trusting the disabled property.
- // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
- // even exist on them, let alone have a boolean value.
- } else if ( "label" in elem ) {
- return elem.disabled === disabled;
- }
-
- // Remaining elements are neither :enabled nor :disabled
- return false;
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction( function( argument ) {
- argument = +argument;
- return markFunction( function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ ( j = matchIndexes[ i ] ) ] ) {
- seed[ j ] = !( matches[ j ] = seed[ j ] );
- }
- }
- } );
- } );
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- var namespace = elem.namespaceURI,
- docElem = ( elem.ownerDocument || elem ).documentElement;
-
- // Support: IE <=8
- // 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" );
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare, subWindow,
- doc = node ? node.ownerDocument || node : preferredDoc;
-
- // Return early if doc is invalid or already selected
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Update global variables
- document = doc;
- docElem = document.documentElement;
- documentIsHTML = !isXML( document );
-
- // Support: IE 9 - 11+, Edge 12 - 18+
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( preferredDoc != document &&
- ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {
-
- // Support: IE 11, Edge
- if ( subWindow.addEventListener ) {
- subWindow.addEventListener( "unload", unloadHandler, false );
-
- // Support: IE 9 - 10 only
- } else if ( subWindow.attachEvent ) {
- subWindow.attachEvent( "onunload", unloadHandler );
- }
- }
-
- // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,
- // Safari 4 - 5 only, Opera <=11.6 - 12.x only
- // IE/Edge & older browsers don't support the :scope pseudo-class.
- // Support: Safari 6.0 only
- // Safari 6.0 supports :scope but it's an alias of :root there.
- support.scope = assert( function( el ) {
- docElem.appendChild( el ).appendChild( document.createElement( "div" ) );
- return typeof el.querySelectorAll !== "undefined" &&
- !el.querySelectorAll( ":scope fieldset div" ).length;
- } );
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties
- // (excepting IE8 booleans)
- support.attributes = assert( function( el ) {
- el.className = "i";
- return !el.getAttribute( "className" );
- } );
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert( function( el ) {
- el.appendChild( document.createComment( "" ) );
- return !el.getElementsByTagName( "*" ).length;
- } );
-
- // Support: IE<9
- support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programmatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert( function( el ) {
- docElem.appendChild( el ).id = expando;
- return !document.getElementsByName || !document.getElementsByName( expando ).length;
- } );
-
- // ID filter and find
- if ( support.getById ) {
- Expr.filter[ "ID" ] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute( "id" ) === attrId;
- };
- };
- Expr.find[ "ID" ] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var elem = context.getElementById( id );
- return elem ? [ elem ] : [];
- }
- };
- } else {
- Expr.filter[ "ID" ] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== "undefined" &&
- elem.getAttributeNode( "id" );
- return node && node.value === attrId;
- };
- };
-
- // Support: IE 6 - 7 only
- // getElementById is not reliable as a find shortcut
- Expr.find[ "ID" ] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var node, i, elems,
- elem = context.getElementById( id );
-
- if ( elem ) {
-
- // Verify the id attribute
- node = elem.getAttributeNode( "id" );
- if ( node && node.value === id ) {
- return [ elem ];
- }
-
- // Fall back on getElementsByName
- elems = context.getElementsByName( id );
- i = 0;
- while ( ( elem = elems[ i++ ] ) ) {
- node = elem.getAttributeNode( "id" );
- if ( node && node.value === id ) {
- return [ elem ];
- }
- }
- }
-
- return [];
- }
- };
- }
-
- // Tag
- Expr.find[ "TAG" ] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( tag );
-
- // DocumentFragment nodes don't have gEBTN
- } else if ( support.qsa ) {
- return context.querySelectorAll( tag );
- }
- } :
-
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
-
- // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( ( elem = results[ i++ ] ) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See https://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) {
-
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert( function( el ) {
-
- var input;
-
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // https://bugs.jquery.com/ticket/12359
- docElem.appendChild( el ).innerHTML = " " +
- "" +
- " ";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !el.querySelectorAll( "[selected]" ).length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
- if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
- rbuggyQSA.push( "~=" );
- }
-
- // Support: IE 11+, Edge 15 - 18+
- // IE 11/Edge don't find elements on a `[name='']` query in some cases.
- // Adding a temporary attribute to the document before the selection works
- // around the issue.
- // Interestingly, IE 10 & older don't seem to have the issue.
- input = document.createElement( "input" );
- input.setAttribute( "name", "" );
- el.appendChild( input );
- if ( !el.querySelectorAll( "[name='']" ).length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" +
- whitespace + "*(?:''|\"\")" );
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !el.querySelectorAll( ":checked" ).length ) {
- rbuggyQSA.push( ":checked" );
- }
-
- // Support: Safari 8+, iOS 8+
- // https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibling-combinator selector` fails
- if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
- rbuggyQSA.push( ".#.+[+~]" );
- }
-
- // Support: Firefox <=3.6 - 5 only
- // Old Firefox doesn't throw on a badly-escaped identifier.
- el.querySelectorAll( "\\\f" );
- rbuggyQSA.push( "[\\r\\n\\f]" );
- } );
-
- assert( function( el ) {
- el.innerHTML = " " +
- " ";
-
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = document.createElement( "input" );
- input.setAttribute( "type", "hidden" );
- el.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( el.querySelectorAll( "[name=d]" ).length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( el.querySelectorAll( ":enabled" ).length !== 2 ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Support: IE9-11+
- // IE's :disabled selector does not pick up the children of disabled fieldsets
- docElem.appendChild( el ).disabled = true;
- if ( el.querySelectorAll( ":disabled" ).length !== 2 ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Support: Opera 10 - 11 only
- // Opera 10-11 does not throw on post-comma invalid pseudos
- el.querySelectorAll( "*,:x" );
- rbuggyQSA.push( ",.*:" );
- } );
- }
-
- if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector ) ) ) ) {
-
- assert( function( el ) {
-
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( el, "*" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( el, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- } );
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully self-exclusive
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ) );
- } :
- function( a, b ) {
- if ( b ) {
- while ( ( b = b.parentNode ) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {
-
- // Choose the first element that is related to our preferred document
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( a == document || a.ownerDocument == preferredDoc &&
- contains( preferredDoc, a ) ) {
- return -1;
- }
-
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( b == document || b.ownerDocument == preferredDoc &&
- contains( preferredDoc, b ) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
-
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
-
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- /* eslint-disable eqeqeq */
- return a == document ? -1 :
- b == document ? 1 :
- /* eslint-enable eqeqeq */
- 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 ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( ( cur = cur.parentNode ) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( ( cur = cur.parentNode ) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[ i ] === bp[ i ] ) {
- i++;
- }
-
- return i ?
-
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[ i ], bp[ i ] ) :
-
- // Otherwise nodes in our document sort first
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- /* eslint-disable eqeqeq */
- ap[ i ] == preferredDoc ? -1 :
- bp[ i ] == preferredDoc ? 1 :
- /* eslint-enable eqeqeq */
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- setDocument( elem );
-
- if ( support.matchesSelector && documentIsHTML &&
- !nonnativeSelectorCache[ expr + " " ] &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
-
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch ( e ) {
- nonnativeSelectorCache( expr, true );
- }
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
-
- // Set document vars if needed
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( ( context.ownerDocument || context ) != document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
-
- // Set document vars if needed
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( ( elem.ownerDocument || elem ) != document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
-
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- ( val = elem.getAttributeNode( name ) ) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.escape = function( sel ) {
- return ( sel + "" ).replace( rcssescape, fcssescape );
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( ( elem = results[ i++ ] ) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
-
- // If no nodeType, this is expected to be an array
- while ( ( node = elem[ i++ ] ) ) {
-
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
-
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
-
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
-
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[ 1 ] = match[ 1 ].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[ 3 ] = ( match[ 3 ] || match[ 4 ] ||
- match[ 5 ] || "" ).replace( runescape, funescape );
-
- if ( match[ 2 ] === "~=" ) {
- match[ 3 ] = " " + match[ 3 ] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
-
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[ 1 ] = match[ 1 ].toLowerCase();
-
- if ( match[ 1 ].slice( 0, 3 ) === "nth" ) {
-
- // nth-* requires argument
- if ( !match[ 3 ] ) {
- Sizzle.error( match[ 0 ] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[ 4 ] = +( match[ 4 ] ?
- match[ 5 ] + ( match[ 6 ] || 1 ) :
- 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) );
- match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[ 3 ] ) {
- Sizzle.error( match[ 0 ] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[ 6 ] && match[ 2 ];
-
- if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[ 3 ] ) {
- match[ 2 ] = match[ 4 ] || match[ 5 ] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
-
- // Get excess from tokenize (recursively)
- ( excess = tokenize( unquoted, true ) ) &&
-
- // advance to the next closing parenthesis
- ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) {
-
- // excess is a negative index
- match[ 0 ] = match[ 0 ].slice( 0, excess );
- match[ 2 ] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() {
- return true;
- } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- ( pattern = new RegExp( "(^|" + whitespace +
- ")" + className + "(" + whitespace + "|$)" ) ) && classCache(
- className, function( elem ) {
- return pattern.test(
- typeof elem.className === "string" && elem.className ||
- typeof elem.getAttribute !== "undefined" &&
- elem.getAttribute( "class" ) ||
- ""
- );
- } );
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- /* eslint-disable max-len */
-
- 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;
- /* eslint-enable max-len */
-
- };
- },
-
- "CHILD": function( type, what, _argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, _context, xml ) {
- var cache, uniqueCache, outerCache, node, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType,
- diff = false;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( ( node = node[ dir ] ) ) {
- if ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) {
-
- return false;
- }
- }
-
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
-
- // Seek `elem` from a previously-cached index
-
- // ...in a gzip-friendly way
- node = parent;
- outerCache = node[ expando ] || ( node[ expando ] = {} );
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- ( outerCache[ node.uniqueID ] = {} );
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex && cache[ 2 ];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( ( node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- ( diff = nodeIndex = 0 ) || start.pop() ) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- } else {
-
- // Use previously-cached element index if available
- if ( useCache ) {
-
- // ...in a gzip-friendly way
- node = elem;
- outerCache = node[ expando ] || ( node[ expando ] = {} );
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- ( outerCache[ node.uniqueID ] = {} );
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex;
- }
-
- // xml :nth-child(...)
- // or :nth-last-child(...) or :nth(-last)?-of-type(...)
- if ( diff === false ) {
-
- // Use the same loop as above to seek `elem` from the start
- while ( ( node = ++nodeIndex && node && node[ dir ] ||
- ( diff = nodeIndex = 0 ) || start.pop() ) ) {
-
- if ( ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) &&
- ++diff ) {
-
- // Cache the index of each encountered element
- if ( useCache ) {
- outerCache = node[ expando ] ||
- ( node[ expando ] = {} );
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- ( outerCache[ node.uniqueID ] = {} );
-
- uniqueCache[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
-
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction( function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf( seed, matched[ i ] );
- seed[ idx ] = !( matches[ idx ] = matched[ i ] );
- }
- } ) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
-
- // Potentially complex pseudos
- "not": markFunction( function( selector ) {
-
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction( function( seed, matches, _context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( ( elem = unmatched[ i ] ) ) {
- seed[ i ] = !( matches[ i ] = elem );
- }
- }
- } ) :
- function( elem, _context, xml ) {
- input[ 0 ] = elem;
- matcher( input, null, xml, results );
-
- // Don't keep the element (issue #299)
- input[ 0 ] = null;
- return !results.pop();
- };
- } ),
-
- "has": markFunction( function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- } ),
-
- "contains": markFunction( function( text ) {
- text = text.replace( runescape, funescape );
- return function( elem ) {
- return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1;
- };
- } ),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
-
- // lang value must be a valid identifier
- if ( !ridentifier.test( lang || "" ) ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( ( elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 );
- return false;
- };
- } ),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement &&
- ( !document.hasFocus || document.hasFocus() ) &&
- !!( elem.type || elem.href || ~elem.tabIndex );
- },
-
- // Boolean properties
- "enabled": createDisabledPseudo( false ),
- "disabled": createDisabledPseudo( true ),
-
- "checked": function( elem ) {
-
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return ( nodeName === "input" && !!elem.checked ) ||
- ( nodeName === "option" && !!elem.selected );
- },
-
- "selected": function( elem ) {
-
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- // eslint-disable-next-line no-unused-expressions
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
-
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos[ "empty" ]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( ( attr = elem.getAttribute( "type" ) ) == null ||
- attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo( function() {
- return [ 0 ];
- } ),
-
- "last": createPositionalPseudo( function( _matchIndexes, length ) {
- return [ length - 1 ];
- } ),
-
- "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- } ),
-
- "even": createPositionalPseudo( function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- } ),
-
- "odd": createPositionalPseudo( function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- } ),
-
- "lt": createPositionalPseudo( function( matchIndexes, length, argument ) {
- var i = argument < 0 ?
- argument + length :
- argument > length ?
- length :
- argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- } ),
-
- "gt": createPositionalPseudo( function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- } )
- }
-};
-
-Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || ( match = rcomma.exec( soFar ) ) ) {
- if ( match ) {
-
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[ 0 ].length ) || soFar;
- }
- groups.push( ( tokens = [] ) );
- }
-
- matched = false;
-
- // Combinators
- if ( ( match = rcombinators.exec( soFar ) ) ) {
- matched = match.shift();
- tokens.push( {
- value: matched,
-
- // Cast descendant combinators to space
- type: match[ 0 ].replace( rtrim, " " )
- } );
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||
- ( match = preFilters[ type ]( match ) ) ) ) {
- matched = match.shift();
- tokens.push( {
- value: matched,
- type: type,
- matches: match
- } );
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
-
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[ i ].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- skip = combinator.next,
- key = skip || dir,
- checkNonElements = base && key === "parentNode",
- doneName = done++;
-
- return combinator.first ?
-
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( ( elem = elem[ dir ] ) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- return false;
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, uniqueCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
- if ( xml ) {
- while ( ( elem = elem[ dir ] ) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( ( elem = elem[ dir ] ) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || ( elem[ expando ] = {} );
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ elem.uniqueID ] ||
- ( outerCache[ elem.uniqueID ] = {} );
-
- if ( skip && skip === elem.nodeName.toLowerCase() ) {
- elem = elem[ dir ] || elem;
- } else if ( ( oldCache = uniqueCache[ key ] ) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return ( newCache[ 2 ] = oldCache[ 2 ] );
- } else {
-
- // Reuse newcache so results back-propagate to previous elements
- uniqueCache[ key ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {
- return true;
- }
- }
- }
- }
- }
- return false;
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[ i ]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[ 0 ];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[ i ], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( ( elem = unmatched[ i ] ) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction( function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts(
- selector || "*",
- context.nodeType ? [ context ] : context,
- []
- ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
-
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( ( elem = temp[ i ] ) ) {
- matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem );
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
-
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( ( elem = matcherOut[ i ] ) ) {
-
- // Restore matcherIn since elem is not yet a final match
- temp.push( ( matcherIn[ i ] = elem ) );
- }
- }
- postFinder( null, ( matcherOut = [] ), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( ( elem = matcherOut[ i ] ) &&
- ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) {
-
- seed[ temp ] = !( results[ temp ] = elem );
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- } );
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[ 0 ].type ],
- implicitRelative = leadingRelative || Expr.relative[ " " ],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- ( checkContext = context ).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
-
- // Avoid hanging onto element (issue #299)
- checkContext = null;
- return ret;
- } ];
-
- for ( ; i < len; i++ ) {
- if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {
- matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];
- } else {
- matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
-
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[ j ].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
-
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens
- .slice( 0, i - 1 )
- .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 )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
-
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ),
-
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),
- len = elems.length;
-
- if ( outermost ) {
-
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- outermostContext = context == document || context || outermost;
- }
-
- // Add elements passing elementMatchers directly to results
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id
- for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
-
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( !context && elem.ownerDocument != document ) {
- setDocument( elem );
- xml = !documentIsHTML;
- }
- while ( ( matcher = elementMatchers[ j++ ] ) ) {
- if ( matcher( elem, context || document, xml ) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
-
- // They will have gone through all possible matchers
- if ( ( elem = !matcher && elem ) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // `i` is now the count of elements visited above, and adding it to `matchedCount`
- // makes the latter nonnegative.
- matchedCount += i;
-
- // Apply set filters to unmatched elements
- // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
- // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
- // no element matchers and no seed.
- // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
- // case, which will result in a "00" `matchedCount` that differs from `i` but is also
- // numerically zero.
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( ( matcher = setMatchers[ j++ ] ) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
-
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !( unmatched[ i ] || setMatched[ i ] ) ) {
- setMatched[ i ] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
-
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[ i ] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache(
- selector,
- matcherFromGroupMatchers( elementMatchers, setMatchers )
- );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( ( selector = compiled.selector || selector ) );
-
- results = results || [];
-
- // Try to minimize operations if there is only one selector in the list and no seed
- // (the latter of which guarantees us context)
- if ( match.length === 1 ) {
-
- // Reduce context if the leading compound selector is an ID
- tokens = match[ 0 ] = match[ 0 ].slice( 0 );
- if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" &&
- context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {
-
- context = ( Expr.find[ "ID" ]( token.matches[ 0 ]
- .replace( runescape, funescape ), context ) || [] )[ 0 ];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[ i ];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ ( type = token.type ) ] ) {
- break;
- }
- if ( ( find = Expr.find[ type ] ) ) {
-
- // Search, expanding context for leading sibling combinators
- if ( ( seed = find(
- token.matches[ 0 ].replace( runescape, funescape ),
- rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) ||
- context
- ) ) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert( function( el ) {
-
- // Should return 1, but returns 4 (following)
- return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1;
-} );
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert( function( el ) {
- el.innerHTML = " ";
- return el.firstChild.getAttribute( "href" ) === "#";
-} ) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- } );
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert( function( el ) {
- el.innerHTML = " ";
- el.firstChild.setAttribute( "value", "" );
- return el.firstChild.getAttribute( "value" ) === "";
-} ) ) {
- addHandle( "value", function( elem, _name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- } );
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert( function( el ) {
- return el.getAttribute( "disabled" ) == null;
-} ) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- ( val = elem.getAttributeNode( name ) ) && val.specified ?
- val.value :
- null;
- }
- } );
-}
-
-return Sizzle;
-
-} )( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-
-// Deprecated
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-jQuery.escapeSelector = Sizzle.escape;
-
-
-
-
-var dir = function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
-};
-
-
-var siblings = function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
-};
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-
-
-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 );
-
-
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- return !!qualifier.call( elem, i, elem ) !== not;
- } );
- }
-
- // Single element
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- } );
- }
-
- // Arraylike of elements (jQuery, arguments, Array)
- if ( typeof qualifier !== "string" ) {
- return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
- } );
- }
-
- // Filtered directly for both simple and complex selectors
- return jQuery.filter( qualifier, elements, not );
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- if ( elems.length === 1 && elem.nodeType === 1 ) {
- return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
- }
-
- return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- } ) );
-};
-
-jQuery.fn.extend( {
- find: function( selector ) {
- var i, ret,
- len = this.length,
- self = this;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- } ) );
- }
-
- ret = this.pushStack( [] );
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- return len > 1 ? jQuery.uniqueSort( ret ) : ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow( this, selector || [], false ) );
- },
- not: function( selector ) {
- return this.pushStack( winnow( this, selector || [], true ) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-} );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // A simple way to check for HTML strings
- // Prioritize #id over to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- // Shortcut simple #id case for speed
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
-
- init = jQuery.fn.init = function( selector, context, root ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Method init() accepts an alternate rootjQuery
- // so migrate can support jQuery.sub (gh-2101)
- root = root || rootjQuery;
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector[ 0 ] === "<" &&
- selector[ selector.length - 1 ] === ">" &&
- selector.length >= 3 ) {
-
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && ( match[ 1 ] || !context ) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[ 1 ] ) {
- context = context instanceof jQuery ? context[ 0 ] : context;
-
- // Option to run scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[ 1 ],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
-
- // Properties of context are called as methods if possible
- if ( isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[ 2 ] );
-
- if ( elem ) {
-
- // Inject the element directly into the jQuery object
- this[ 0 ] = elem;
- this.length = 1;
- }
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || root ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this[ 0 ] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( isFunction( selector ) ) {
- return root.ready !== undefined ?
- root.ready( selector ) :
-
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
- // Methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend( {
- has: function( target ) {
- var targets = jQuery( target, this ),
- l = targets.length;
-
- return this.filter( function() {
- var i = 0;
- for ( ; i < l; i++ ) {
- if ( jQuery.contains( this, targets[ i ] ) ) {
- return true;
- }
- }
- } );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- targets = typeof selectors !== "string" && jQuery( selectors );
-
- // Positional selectors never match, since there's no _selection_ context
- if ( !rneedsContext.test( selectors ) ) {
- for ( ; i < l; i++ ) {
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
- // Always skip document fragments
- if ( cur.nodeType < 11 && ( targets ?
- targets.index( cur ) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
- },
-
- // Determine the position of an element within the set
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // Index in selector
- if ( typeof elem === "string" ) {
- return indexOf.call( jQuery( elem ), this[ 0 ] );
- }
-
- // Locate the position of the desired element
- return indexOf.call( this,
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem
- );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.uniqueSort(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter( selector )
- );
- }
-} );
-
-function sibling( cur, dir ) {
- while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
- return cur;
-}
-
-jQuery.each( {
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, _i, until ) {
- return dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, _i, until ) {
- return dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, _i, until ) {
- return dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return siblings( elem.firstChild );
- },
- contents: function( elem ) {
- if ( elem.contentDocument != null &&
-
- // Support: IE 11+
- // elements with no `data` attribute has an object
- // `contentDocument` with a `null` prototype.
- getProto( elem.contentDocument ) ) {
-
- return elem.contentDocument;
- }
-
- // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
- // Treat the template element as a regular one in browsers that
- // don't support it.
- if ( nodeName( elem, "template" ) ) {
- elem = elem.content || elem;
- }
-
- return jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var matched = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- matched = jQuery.filter( selector, matched );
- }
-
- if ( this.length > 1 ) {
-
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- jQuery.uniqueSort( matched );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- matched.reverse();
- }
- }
-
- return this.pushStack( matched );
- };
-} );
-var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
- var object = {};
- jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- } );
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- createOptions( options ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
-
- // Last fire value for non-forgettable lists
- memory,
-
- // Flag to know if list was already fired
- fired,
-
- // Flag to prevent firing
- locked,
-
- // Actual callback list
- list = [],
-
- // Queue of execution data for repeatable lists
- queue = [],
-
- // Index of currently firing callback (modified by add/remove as needed)
- firingIndex = -1,
-
- // Fire callbacks
- fire = function() {
-
- // Enforce single-firing
- locked = locked || options.once;
-
- // Execute callbacks for all pending executions,
- // respecting firingIndex overrides and runtime changes
- fired = firing = true;
- for ( ; queue.length; firingIndex = -1 ) {
- memory = queue.shift();
- while ( ++firingIndex < list.length ) {
-
- // Run callback and check for early termination
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
- options.stopOnFalse ) {
-
- // Jump to end and forget the data so .add doesn't re-fire
- firingIndex = list.length;
- memory = false;
- }
- }
- }
-
- // Forget the data if we're done with it
- if ( !options.memory ) {
- memory = false;
- }
-
- firing = false;
-
- // Clean up if we're done firing for good
- if ( locked ) {
-
- // Keep an empty list if we have data for future add calls
- if ( memory ) {
- list = [];
-
- // Otherwise, this object is spent
- } else {
- list = "";
- }
- }
- },
-
- // Actual Callbacks object
- self = {
-
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
-
- // If we have memory from a past run, we should fire after adding
- if ( memory && !firing ) {
- firingIndex = list.length - 1;
- queue.push( memory );
- }
-
- ( function add( args ) {
- jQuery.each( args, function( _, arg ) {
- if ( isFunction( arg ) ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && toType( arg ) !== "string" ) {
-
- // Inspect recursively
- add( arg );
- }
- } );
- } )( arguments );
-
- if ( memory && !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Remove a callback from the list
- remove: function() {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
-
- // Handle firing indexes
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- } );
- return this;
- },
-
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ?
- jQuery.inArray( fn, list ) > -1 :
- list.length > 0;
- },
-
- // Remove all callbacks from the list
- empty: function() {
- if ( list ) {
- list = [];
- }
- return this;
- },
-
- // Disable .fire and .add
- // Abort any current/pending executions
- // Clear all callbacks and values
- disable: function() {
- locked = queue = [];
- list = memory = "";
- return this;
- },
- disabled: function() {
- return !list;
- },
-
- // Disable .fire
- // Also disable .add unless we have memory (since it would have no effect)
- // Abort any pending executions
- lock: function() {
- locked = queue = [];
- if ( !memory && !firing ) {
- list = memory = "";
- }
- return this;
- },
- locked: function() {
- return !!locked;
- },
-
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( !locked ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- queue.push( args );
- if ( !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
-
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-function Identity( v ) {
- return v;
-}
-function Thrower( ex ) {
- throw ex;
-}
-
-function adoptValue( value, resolve, reject, noValue ) {
- var method;
-
- try {
-
- // Check for promise aspect first to privilege synchronous behavior
- if ( value && isFunction( ( method = value.promise ) ) ) {
- method.call( value ).done( resolve ).fail( reject );
-
- // Other thenables
- } else if ( value && isFunction( ( method = value.then ) ) ) {
- method.call( value, resolve, reject );
-
- // Other non-thenables
- } else {
-
- // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
- // * false: [ value ].slice( 0 ) => resolve( value )
- // * true: [ value ].slice( 1 ) => resolve()
- resolve.apply( undefined, [ value ].slice( noValue ) );
- }
-
- // For Promises/A+, convert exceptions into rejections
- // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
- // Deferred#then to conditionally suppress rejection.
- } catch ( value ) {
-
- // Support: Android 4.0 only
- // Strict mode functions invoked without .call/.apply get global-object context
- reject.apply( undefined, [ value ] );
- }
-}
-
-jQuery.extend( {
-
- Deferred: function( func ) {
- var tuples = [
-
- // action, add listener, callbacks,
- // ... .then handlers, argument index, [final state]
- [ "notify", "progress", jQuery.Callbacks( "memory" ),
- jQuery.Callbacks( "memory" ), 2 ],
- [ "resolve", "done", jQuery.Callbacks( "once memory" ),
- jQuery.Callbacks( "once memory" ), 0, "resolved" ],
- [ "reject", "fail", jQuery.Callbacks( "once memory" ),
- jQuery.Callbacks( "once memory" ), 1, "rejected" ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- "catch": function( fn ) {
- return promise.then( null, fn );
- },
-
- // Keep pipe for back-compat
- pipe: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
-
- return jQuery.Deferred( function( newDefer ) {
- jQuery.each( tuples, function( _i, tuple ) {
-
- // Map tuples (progress, done, fail) to arguments (done, fail, progress)
- var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
-
- // deferred.progress(function() { bind to newDefer or newDefer.notify })
- // deferred.done(function() { bind to newDefer or newDefer.resolve })
- // deferred.fail(function() { bind to newDefer or newDefer.reject })
- deferred[ tuple[ 1 ] ]( function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && isFunction( returned.promise ) ) {
- returned.promise()
- .progress( newDefer.notify )
- .done( newDefer.resolve )
- .fail( newDefer.reject );
- } else {
- newDefer[ tuple[ 0 ] + "With" ](
- this,
- fn ? [ returned ] : arguments
- );
- }
- } );
- } );
- fns = null;
- } ).promise();
- },
- then: function( onFulfilled, onRejected, onProgress ) {
- var maxDepth = 0;
- function resolve( depth, deferred, handler, special ) {
- return function() {
- var that = this,
- args = arguments,
- mightThrow = function() {
- var returned, then;
-
- // Support: Promises/A+ section 2.3.3.3.3
- // https://promisesaplus.com/#point-59
- // Ignore double-resolution attempts
- if ( depth < maxDepth ) {
- return;
- }
-
- returned = handler.apply( that, args );
-
- // Support: Promises/A+ section 2.3.1
- // https://promisesaplus.com/#point-48
- if ( returned === deferred.promise() ) {
- throw new TypeError( "Thenable self-resolution" );
- }
-
- // Support: Promises/A+ sections 2.3.3.1, 3.5
- // https://promisesaplus.com/#point-54
- // https://promisesaplus.com/#point-75
- // Retrieve `then` only once
- then = returned &&
-
- // Support: Promises/A+ section 2.3.4
- // https://promisesaplus.com/#point-64
- // Only check objects and functions for thenability
- ( typeof returned === "object" ||
- typeof returned === "function" ) &&
- returned.then;
-
- // Handle a returned thenable
- if ( isFunction( then ) ) {
-
- // Special processors (notify) just wait for resolution
- if ( special ) {
- then.call(
- returned,
- resolve( maxDepth, deferred, Identity, special ),
- resolve( maxDepth, deferred, Thrower, special )
- );
-
- // Normal processors (resolve) also hook into progress
- } else {
-
- // ...and disregard older resolution values
- maxDepth++;
-
- then.call(
- returned,
- resolve( maxDepth, deferred, Identity, special ),
- resolve( maxDepth, deferred, Thrower, special ),
- resolve( maxDepth, deferred, Identity,
- deferred.notifyWith )
- );
- }
-
- // Handle all other returned values
- } else {
-
- // Only substitute handlers pass on context
- // and multiple values (non-spec behavior)
- if ( handler !== Identity ) {
- that = undefined;
- args = [ returned ];
- }
-
- // Process the value(s)
- // Default process is resolve
- ( special || deferred.resolveWith )( that, args );
- }
- },
-
- // Only normal processors (resolve) catch and reject exceptions
- process = special ?
- mightThrow :
- function() {
- try {
- mightThrow();
- } catch ( e ) {
-
- if ( jQuery.Deferred.exceptionHook ) {
- jQuery.Deferred.exceptionHook( e,
- process.stackTrace );
- }
-
- // Support: Promises/A+ section 2.3.3.3.4.1
- // https://promisesaplus.com/#point-61
- // Ignore post-resolution exceptions
- if ( depth + 1 >= maxDepth ) {
-
- // Only substitute handlers pass on context
- // and multiple values (non-spec behavior)
- if ( handler !== Thrower ) {
- that = undefined;
- args = [ e ];
- }
-
- deferred.rejectWith( that, args );
- }
- }
- };
-
- // Support: Promises/A+ section 2.3.3.3.1
- // https://promisesaplus.com/#point-57
- // Re-resolve promises immediately to dodge false rejection from
- // subsequent errors
- if ( depth ) {
- process();
- } else {
-
- // Call an optional hook to record the stack, in case of exception
- // since it's otherwise lost when execution goes async
- if ( jQuery.Deferred.getStackHook ) {
- process.stackTrace = jQuery.Deferred.getStackHook();
- }
- window.setTimeout( process );
- }
- };
- }
-
- return jQuery.Deferred( function( newDefer ) {
-
- // progress_handlers.add( ... )
- tuples[ 0 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- isFunction( onProgress ) ?
- onProgress :
- Identity,
- newDefer.notifyWith
- )
- );
-
- // fulfilled_handlers.add( ... )
- tuples[ 1 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- isFunction( onFulfilled ) ?
- onFulfilled :
- Identity
- )
- );
-
- // rejected_handlers.add( ... )
- tuples[ 2 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- isFunction( onRejected ) ?
- onRejected :
- Thrower
- )
- );
- } ).promise();
- },
-
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 5 ];
-
- // promise.progress = list.add
- // promise.done = list.add
- // promise.fail = list.add
- promise[ tuple[ 1 ] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add(
- function() {
-
- // state = "resolved" (i.e., fulfilled)
- // state = "rejected"
- state = stateString;
- },
-
- // rejected_callbacks.disable
- // fulfilled_callbacks.disable
- tuples[ 3 - i ][ 2 ].disable,
-
- // rejected_handlers.disable
- // fulfilled_handlers.disable
- tuples[ 3 - i ][ 3 ].disable,
-
- // progress_callbacks.lock
- tuples[ 0 ][ 2 ].lock,
-
- // progress_handlers.lock
- tuples[ 0 ][ 3 ].lock
- );
- }
-
- // progress_handlers.fire
- // fulfilled_handlers.fire
- // rejected_handlers.fire
- list.add( tuple[ 3 ].fire );
-
- // deferred.notify = function() { deferred.notifyWith(...) }
- // deferred.resolve = function() { deferred.resolveWith(...) }
- // deferred.reject = function() { deferred.rejectWith(...) }
- deferred[ tuple[ 0 ] ] = function() {
- deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
- return this;
- };
-
- // deferred.notifyWith = list.fireWith
- // deferred.resolveWith = list.fireWith
- // deferred.rejectWith = list.fireWith
- deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
- } );
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( singleValue ) {
- var
-
- // count of uncompleted subordinates
- remaining = arguments.length,
-
- // count of unprocessed arguments
- i = remaining,
-
- // subordinate fulfillment data
- resolveContexts = Array( i ),
- resolveValues = slice.call( arguments ),
-
- // the master Deferred
- master = jQuery.Deferred(),
-
- // subordinate callback factory
- updateFunc = function( i ) {
- return function( value ) {
- resolveContexts[ i ] = this;
- resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( !( --remaining ) ) {
- master.resolveWith( resolveContexts, resolveValues );
- }
- };
- };
-
- // Single- and empty arguments are adopted like Promise.resolve
- if ( remaining <= 1 ) {
- adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,
- !remaining );
-
- // Use .then() to unwrap secondary thenables (cf. gh-3000)
- if ( master.state() === "pending" ||
- isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
-
- return master.then();
- }
- }
-
- // Multiple arguments are aggregated like Promise.all array elements
- while ( i-- ) {
- adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
- }
-
- return master.promise();
- }
-} );
-
-
-// These usually indicate a programmer mistake during development,
-// warn about them ASAP rather than swallowing them by default.
-var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
-
-jQuery.Deferred.exceptionHook = function( error, stack ) {
-
- // Support: IE 8 - 9 only
- // Console exists when dev tools are open, which can happen at any time
- if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
- window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
- }
-};
-
-
-
-
-jQuery.readyException = function( error ) {
- window.setTimeout( function() {
- throw error;
- } );
-};
-
-
-
-
-// The deferred used on DOM ready
-var readyList = jQuery.Deferred();
-
-jQuery.fn.ready = function( fn ) {
-
- readyList
- .then( fn )
-
- // Wrap jQuery.readyException in a function so that the lookup
- // happens at the time of error handling instead of callback
- // registration.
- .catch( function( error ) {
- jQuery.readyException( error );
- } );
-
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
- }
-} );
-
-jQuery.ready.then = readyList.then;
-
-// The ready event handler and self cleanup method
-function completed() {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
- jQuery.ready();
-}
-
-// Catch cases where $(document).ready() is called
-// after the browser event has already occurred.
-// Support: IE <=9 - 10 only
-// Older IE sometimes signals "interactive" too soon
-if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
-} else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
-}
-
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- len = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( toType( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
-
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, _key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < len; i++ ) {
- fn(
- elems[ i ], key, raw ?
- value :
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
- );
- }
- }
- }
-
- if ( chainable ) {
- return elems;
- }
-
- // Gets
- if ( bulk ) {
- return fn.call( elems );
- }
-
- return len ? fn( elems[ 0 ], key ) : emptyGet;
-};
-
-
-// Matches dashed string for camelizing
-var rmsPrefix = /^-ms-/,
- rdashAlpha = /-([a-z])/g;
-
-// Used by camelCase as callback to replace()
-function fcamelCase( _all, letter ) {
- return letter.toUpperCase();
-}
-
-// Convert dashed to camelCase; used by the css and data modules
-// Support: IE <=9 - 11, Edge 12 - 15
-// Microsoft forgot to hump their vendor prefix (#9572)
-function camelCase( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-}
-var acceptData = function( owner ) {
-
- // Accepts only:
- // - Node
- // - Node.ELEMENT_NODE
- // - Node.DOCUMENT_NODE
- // - Object
- // - Any
- return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-};
-
-
-
-
-function Data() {
- this.expando = jQuery.expando + Data.uid++;
-}
-
-Data.uid = 1;
-
-Data.prototype = {
-
- cache: function( owner ) {
-
- // Check if the owner object already has a cache
- var value = owner[ this.expando ];
-
- // If not, create one
- if ( !value ) {
- value = {};
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( acceptData( owner ) ) {
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable property
- // configurable must be true to allow the property to be
- // deleted when data is removed
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- configurable: true
- } );
- }
- }
- }
-
- return value;
- },
- set: function( owner, data, value ) {
- var prop,
- cache = this.cache( owner );
-
- // Handle: [ owner, key, value ] args
- // Always use camelCase key (gh-2257)
- if ( typeof data === "string" ) {
- cache[ camelCase( data ) ] = value;
-
- // Handle: [ owner, { properties } ] args
- } else {
-
- // Copy the properties one-by-one to the cache object
- for ( prop in data ) {
- cache[ camelCase( prop ) ] = data[ prop ];
- }
- }
- return cache;
- },
- get: function( owner, key ) {
- return key === undefined ?
- this.cache( owner ) :
-
- // Always use camelCase key (gh-2257)
- owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];
- },
- access: function( owner, key, value ) {
-
- // In cases where either:
- //
- // 1. No key was specified
- // 2. A string key was specified, but no value provided
- //
- // Take the "read" path and allow the get method to determine
- // which value to return, respectively either:
- //
- // 1. The entire cache object
- // 2. The data stored at the key
- //
- if ( key === undefined ||
- ( ( key && typeof key === "string" ) && value === undefined ) ) {
-
- return this.get( owner, key );
- }
-
- // When the key is not a string, or both a key and value
- // are specified, set or extend (existing objects) with either:
- //
- // 1. An object of properties
- // 2. A key and value
- //
- this.set( owner, key, value );
-
- // Since the "set" path can have two possible entry points
- // return the expected data based on which path was taken[*]
- return value !== undefined ? value : key;
- },
- remove: function( owner, key ) {
- var i,
- cache = owner[ this.expando ];
-
- if ( cache === undefined ) {
- return;
- }
-
- if ( key !== undefined ) {
-
- // Support array or space separated string of keys
- if ( Array.isArray( key ) ) {
-
- // If key is an array of keys...
- // We always set camelCase keys, so remove that.
- key = key.map( camelCase );
- } else {
- key = camelCase( key );
-
- // If a key with the spaces exists, use it.
- // Otherwise, create an array by matching non-whitespace
- key = key in cache ?
- [ key ] :
- ( key.match( rnothtmlwhite ) || [] );
- }
-
- i = key.length;
-
- while ( i-- ) {
- delete cache[ key[ i ] ];
- }
- }
-
- // Remove the expando if there's no more data
- if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
- // Support: Chrome <=35 - 45
- // Webkit & Blink performance suffers when deleting properties
- // from DOM nodes, so set to undefined instead
- // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
- if ( owner.nodeType ) {
- owner[ this.expando ] = undefined;
- } else {
- delete owner[ this.expando ];
- }
- }
- },
- hasData: function( owner ) {
- var cache = owner[ this.expando ];
- return cache !== undefined && !jQuery.isEmptyObject( cache );
- }
-};
-var dataPriv = new Data();
-
-var dataUser = new Data();
-
-
-
-// Implementation Summary
-//
-// 1. Enforce API surface and semantic compatibility with 1.9.x branch
-// 2. Improve the module's maintainability by reducing the storage
-// paths to a single mechanism.
-// 3. Use the same single mechanism to support "private" and "user" data.
-// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-// 5. Avoid exposing implementation details on user objects (eg. expando properties)
-// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /[A-Z]/g;
-
-function getData( data ) {
- if ( data === "true" ) {
- return true;
- }
-
- if ( data === "false" ) {
- return false;
- }
-
- if ( data === "null" ) {
- return null;
- }
-
- // Only convert to a number if it doesn't change the string
- if ( data === +data + "" ) {
- return +data;
- }
-
- if ( rbrace.test( data ) ) {
- return JSON.parse( data );
- }
-
- return data;
-}
-
-function dataAttr( elem, key, data ) {
- var name;
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = getData( data );
- } catch ( e ) {}
-
- // Make sure we set the data so it isn't changed later
- dataUser.set( elem, key, data );
- } else {
- data = undefined;
- }
- }
- return data;
-}
-
-jQuery.extend( {
- hasData: function( elem ) {
- return dataUser.hasData( elem ) || dataPriv.hasData( elem );
- },
-
- data: function( elem, name, data ) {
- return dataUser.access( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- dataUser.remove( elem, name );
- },
-
- // TODO: Now that all calls to _data and _removeData have been replaced
- // with direct calls to dataPriv methods, these can be deprecated.
- _data: function( elem, name, data ) {
- return dataPriv.access( elem, name, data );
- },
-
- _removeData: function( elem, name ) {
- dataPriv.remove( elem, name );
- }
-} );
-
-jQuery.fn.extend( {
- data: function( key, value ) {
- var i, name, data,
- elem = this[ 0 ],
- attrs = elem && elem.attributes;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = dataUser.get( elem );
-
- if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE 11 only
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = camelCase( name.slice( 5 ) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- dataPriv.set( elem, "hasDataAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each( function() {
- dataUser.set( this, key );
- } );
- }
-
- return access( this, function( value ) {
- var data;
-
- // The calling jQuery object (element matches) is not empty
- // (and therefore has an element appears at this[ 0 ]) and the
- // `value` parameter was not undefined. An empty jQuery object
- // will result in `undefined` for elem = this[ 0 ] which will
- // throw an exception if an attempt to read a data cache is made.
- if ( elem && value === undefined ) {
-
- // Attempt to get data from the cache
- // The key will always be camelCased in Data
- data = dataUser.get( elem, key );
- if ( data !== undefined ) {
- return data;
- }
-
- // Attempt to "discover" the data in
- // HTML5 custom data-* attrs
- data = dataAttr( elem, key );
- if ( data !== undefined ) {
- return data;
- }
-
- // We tried really hard, but the data doesn't exist.
- return;
- }
-
- // Set the data...
- this.each( function() {
-
- // We always store the camelCased key
- dataUser.set( this, key, value );
- } );
- }, null, value, arguments.length > 1, null, true );
- },
-
- removeData: function( key ) {
- return this.each( function() {
- dataUser.remove( this, key );
- } );
- }
-} );
-
-
-jQuery.extend( {
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = dataPriv.get( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || Array.isArray( data ) ) {
- queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // Clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // Not public - generate a queueHooks object, or return the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
- empty: jQuery.Callbacks( "once memory" ).add( function() {
- dataPriv.remove( elem, [ type + "queue", key ] );
- } )
- } );
- }
-} );
-
-jQuery.fn.extend( {
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[ 0 ], type );
- }
-
- return data === undefined ?
- this :
- this.each( function() {
- var queue = jQuery.queue( this, type, data );
-
- // Ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- dequeue: function( type ) {
- return this.each( function() {
- jQuery.dequeue( this, type );
- } );
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
-
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-} );
-var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var documentElement = document.documentElement;
-
-
-
- var isAttached = function( elem ) {
- return jQuery.contains( elem.ownerDocument, elem );
- },
- composed = { composed: true };
-
- // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
- // Check attachment across shadow DOM boundaries when possible (gh-3504)
- // Support: iOS 10.0-10.2 only
- // Early iOS 10 versions support `attachShadow` but not `getRootNode`,
- // leading to errors. We need to check for `getRootNode`.
- if ( documentElement.getRootNode ) {
- isAttached = function( elem ) {
- return jQuery.contains( elem.ownerDocument, elem ) ||
- elem.getRootNode( composed ) === elem.ownerDocument;
- };
- }
-var isHiddenWithinTree = function( elem, el ) {
-
- // isHiddenWithinTree might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
-
- // Inline style trumps all
- return elem.style.display === "none" ||
- elem.style.display === "" &&
-
- // Otherwise, check computed style
- // Support: Firefox <=43 - 45
- // Disconnected elements can have computed display: none, so first confirm that elem is
- // in the document.
- isAttached( elem ) &&
-
- jQuery.css( elem, "display" ) === "none";
- };
-
-
-
-function adjustCSS( elem, prop, valueParts, tween ) {
- var adjusted, scale,
- maxIterations = 20,
- currentValue = tween ?
- function() {
- return tween.cur();
- } :
- function() {
- return jQuery.css( elem, prop, "" );
- },
- initial = currentValue(),
- unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- initialInUnit = elem.nodeType &&
- ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
- rcssNum.exec( jQuery.css( elem, prop ) );
-
- if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
- // Support: Firefox <=54
- // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
- initial = initial / 2;
-
- // Trust units reported by jQuery.css
- unit = unit || initialInUnit[ 3 ];
-
- // Iteratively approximate from a nonzero starting point
- initialInUnit = +initial || 1;
-
- while ( maxIterations-- ) {
-
- // Evaluate and update our best guess (doubling guesses that zero out).
- // Finish if the scale equals or crosses 1 (making the old*new product non-positive).
- jQuery.style( elem, prop, initialInUnit + unit );
- if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
- maxIterations = 0;
- }
- initialInUnit = initialInUnit / scale;
-
- }
-
- initialInUnit = initialInUnit * 2;
- jQuery.style( elem, prop, initialInUnit + unit );
-
- // Make sure we update the tween properties later on
- valueParts = valueParts || [];
- }
-
- if ( valueParts ) {
- initialInUnit = +initialInUnit || +initial || 0;
-
- // Apply relative offset (+=/-=) if specified
- adjusted = valueParts[ 1 ] ?
- initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
- +valueParts[ 2 ];
- if ( tween ) {
- tween.unit = unit;
- tween.start = initialInUnit;
- tween.end = adjusted;
- }
- }
- return adjusted;
-}
-
-
-var defaultDisplayMap = {};
-
-function getDefaultDisplay( elem ) {
- var temp,
- doc = elem.ownerDocument,
- nodeName = elem.nodeName,
- display = defaultDisplayMap[ nodeName ];
-
- if ( display ) {
- return display;
- }
-
- temp = doc.body.appendChild( doc.createElement( nodeName ) );
- display = jQuery.css( temp, "display" );
-
- temp.parentNode.removeChild( temp );
-
- if ( display === "none" ) {
- display = "block";
- }
- defaultDisplayMap[ nodeName ] = display;
-
- return display;
-}
-
-function showHide( elements, show ) {
- var display, elem,
- values = [],
- index = 0,
- length = elements.length;
-
- // Determine new display value for elements that need to change
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- display = elem.style.display;
- if ( show ) {
-
- // Since we force visibility upon cascade-hidden elements, an immediate (and slow)
- // check is required in this first loop unless we have a nonempty display value (either
- // inline or about-to-be-restored)
- if ( display === "none" ) {
- values[ index ] = dataPriv.get( elem, "display" ) || null;
- if ( !values[ index ] ) {
- elem.style.display = "";
- }
- }
- if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
- values[ index ] = getDefaultDisplay( elem );
- }
- } else {
- if ( display !== "none" ) {
- values[ index ] = "none";
-
- // Remember what we're overwriting
- dataPriv.set( elem, "display", display );
- }
- }
- }
-
- // Set the display of the elements in a second loop to avoid constant reflow
- for ( index = 0; index < length; index++ ) {
- if ( values[ index ] != null ) {
- elements[ index ].style.display = values[ index ];
- }
- }
-
- return elements;
-}
-
-jQuery.fn.extend( {
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each( function() {
- if ( isHiddenWithinTree( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- } );
- }
-} );
-var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
-
-var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i );
-
-
-
-( function() {
- var fragment = document.createDocumentFragment(),
- div = fragment.appendChild( document.createElement( "div" ) ),
- input = document.createElement( "input" );
-
- // Support: Android 4.0 - 4.3 only
- // Check state lost if the name is set (#11217)
- // Support: Windows Web Apps (WWA)
- // `name` and `type` must use .setAttribute for WWA (#14901)
- input.setAttribute( "type", "radio" );
- input.setAttribute( "checked", "checked" );
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
-
- // Support: Android <=4.1 only
- // Older WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE <=11 only
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- div.innerHTML = "";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-
- // Support: IE <=9 only
- // IE <=9 replaces tags with their contents when inserted outside of
- // the select element.
- div.innerHTML = " ";
- support.option = !!div.lastChild;
-} )();
-
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
-
- // XHTML parsers do not magically insert elements in the
- // same way that tag soup parsers do. So we cannot shorten
- // this by omitting or other required elements.
- thead: [ 1, "" ],
- col: [ 2, "" ],
- tr: [ 2, "" ],
- td: [ 3, "" ],
-
- _default: [ 0, "", "" ]
-};
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// Support: IE <=9 only
-if ( !support.option ) {
- wrapMap.optgroup = wrapMap.option = [ 1, "", " " ];
-}
-
-
-function getAll( context, tag ) {
-
- // Support: IE <=9 - 11 only
- // Use typeof to avoid zero-argument method invocation on host objects (#15151)
- var ret;
-
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- ret = context.getElementsByTagName( tag || "*" );
-
- } else if ( typeof context.querySelectorAll !== "undefined" ) {
- ret = context.querySelectorAll( tag || "*" );
-
- } else {
- ret = [];
- }
-
- if ( tag === undefined || tag && nodeName( context, tag ) ) {
- return jQuery.merge( [ context ], ret );
- }
-
- return ret;
-}
-
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- dataPriv.set(
- elems[ i ],
- "globalEval",
- !refElements || dataPriv.get( refElements[ i ], "globalEval" )
- );
- }
-}
-
-
-var rhtml = /<|?\w+;/;
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
- var elem, tmp, tag, wrap, attached, j,
- fragment = context.createDocumentFragment(),
- nodes = [],
- i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( toType( elem ) === "object" ) {
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, tmp.childNodes );
-
- // Remember the top-level container
- tmp = fragment.firstChild;
-
- // Ensure the created nodes are orphaned (#12392)
- tmp.textContent = "";
- }
- }
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
-
- i = 0;
- while ( ( elem = nodes[ i++ ] ) ) {
-
- // Skip elements already in the context collection (trac-4087)
- if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
- if ( ignored ) {
- ignored.push( elem );
- }
- continue;
- }
-
- attached = isAttached( elem );
-
- // Append to fragment
- tmp = getAll( fragment.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( attached ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( ( elem = tmp[ j++ ] ) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- return fragment;
-}
-
-
-var
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-// Support: IE <=9 - 11+
-// focus() and blur() are asynchronous, except when they are no-op.
-// So expect focus to be synchronous when the element is already active,
-// and blur to be synchronous when the element is not already active.
-// (focus and blur are always synchronous in other supported browsers,
-// this just defines when we can count on it).
-function expectSync( elem, type ) {
- return ( elem === safeActiveElement() ) === ( type === "focus" );
-}
-
-// Support: IE <=9 only
-// Accessing document.activeElement can throw unexpectedly
-// https://bugs.jquery.com/ticket/13393
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
-
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
-
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- on( elem, type, selector, data, types[ type ], one );
- }
- return elem;
- }
-
- if ( data == null && fn == null ) {
-
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
-
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
-
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return elem;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
-
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
-
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return elem.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- } );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
-
- var handleObjIn, eventHandle, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.get( elem );
-
- // Only attach events to objects that accept data
- if ( !acceptData( elem ) ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Ensure that invalid selectors throw exceptions at attach time
- // Evaluate against documentElement in case elem is a non-element node (e.g., document)
- if ( selector ) {
- jQuery.find.matchesSelector( documentElement, selector );
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !( events = elemData.events ) ) {
- events = elemData.events = Object.create( null );
- }
- if ( !( eventHandle = elemData.handle ) ) {
- eventHandle = elemData.handle = function( e ) {
-
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
- jQuery.event.dispatch.apply( elem, arguments ) : undefined;
- };
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend( {
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join( "." )
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !( handlers = events[ type ] ) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener if the special events handler returns false
- if ( !special.setup ||
- special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var j, origCount, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
- if ( !elemData || !( events = elemData.events ) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[ 2 ] &&
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector ||
- selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown ||
- special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove data and the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- dataPriv.remove( elem, "handle events" );
- }
- },
-
- dispatch: function( nativeEvent ) {
-
- var i, j, ret, matched, handleObj, handlerQueue,
- args = new Array( arguments.length ),
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( nativeEvent ),
-
- handlers = (
- dataPriv.get( this, "events" ) || Object.create( null )
- )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[ 0 ] = event;
-
- for ( i = 1; i < arguments.length; i++ ) {
- args[ i ] = arguments[ i ];
- }
-
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( ( handleObj = matched.handlers[ j++ ] ) &&
- !event.isImmediatePropagationStopped() ) {
-
- // If the event is namespaced, then each handler is only invoked if it is
- // specially universal or its namespaces are a superset of the event's.
- if ( !event.rnamespace || handleObj.namespace === false ||
- event.rnamespace.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
- handleObj.handler ).apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( ( event.result = ret ) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, handleObj, sel, matchedHandlers, matchedSelectors,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Find delegate handlers
- if ( delegateCount &&
-
- // Support: IE <=9
- // Black-hole SVG instance trees (trac-13180)
- cur.nodeType &&
-
- // Support: Firefox <=42
- // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
- // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
- // Support: IE 11 only
- // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
- !( event.type === "click" && event.button >= 1 ) ) {
-
- for ( ; cur !== this; cur = cur.parentNode || this ) {
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
- matchedHandlers = [];
- matchedSelectors = {};
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matchedSelectors[ sel ] === undefined ) {
- matchedSelectors[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) > -1 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matchedSelectors[ sel ] ) {
- matchedHandlers.push( handleObj );
- }
- }
- if ( matchedHandlers.length ) {
- handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- cur = this;
- if ( delegateCount < handlers.length ) {
- handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
- }
-
- return handlerQueue;
- },
-
- addProp: function( name, hook ) {
- Object.defineProperty( jQuery.Event.prototype, name, {
- enumerable: true,
- configurable: true,
-
- get: isFunction( hook ) ?
- function() {
- if ( this.originalEvent ) {
- return hook( this.originalEvent );
- }
- } :
- function() {
- if ( this.originalEvent ) {
- return this.originalEvent[ name ];
- }
- },
-
- set: function( value ) {
- Object.defineProperty( this, name, {
- enumerable: true,
- configurable: true,
- writable: true,
- value: value
- } );
- }
- } );
- },
-
- fix: function( originalEvent ) {
- return originalEvent[ jQuery.expando ] ?
- originalEvent :
- new jQuery.Event( originalEvent );
- },
-
- special: {
- load: {
-
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- click: {
-
- // Utilize native event to ensure correct state for checkable inputs
- setup: function( data ) {
-
- // For mutual compressibility with _default, replace `this` access with a local var.
- // `|| data` is dead code meant only to preserve the variable through minification.
- var el = this || data;
-
- // Claim the first handler
- if ( rcheckableType.test( el.type ) &&
- el.click && nodeName( el, "input" ) ) {
-
- // dataPriv.set( el, "click", ... )
- leverageNative( el, "click", returnTrue );
- }
-
- // Return false to allow normal processing in the caller
- return false;
- },
- trigger: function( data ) {
-
- // For mutual compressibility with _default, replace `this` access with a local var.
- // `|| data` is dead code meant only to preserve the variable through minification.
- var el = this || data;
-
- // Force setup before triggering a click
- if ( rcheckableType.test( el.type ) &&
- el.click && nodeName( el, "input" ) ) {
-
- leverageNative( el, "click" );
- }
-
- // Return non-false to allow normal event-path propagation
- return true;
- },
-
- // For cross-browser consistency, suppress native .click() on links
- // Also prevent it if we're currently inside a leveraged native-event stack
- _default: function( event ) {
- var target = event.target;
- return rcheckableType.test( target.type ) &&
- target.click && nodeName( target, "input" ) &&
- dataPriv.get( target, "click" ) ||
- nodeName( target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- }
-};
-
-// Ensure the presence of an event listener that handles manually-triggered
-// synthetic events by interrupting progress until reinvoked in response to
-// *native* events that it fires directly, ensuring that state changes have
-// already occurred before other listeners are invoked.
-function leverageNative( el, type, expectSync ) {
-
- // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
- if ( !expectSync ) {
- if ( dataPriv.get( el, type ) === undefined ) {
- jQuery.event.add( el, type, returnTrue );
- }
- return;
- }
-
- // Register the controller as a special universal handler for all event namespaces
- dataPriv.set( el, type, false );
- jQuery.event.add( el, type, {
- namespace: false,
- handler: function( event ) {
- var notAsync, result,
- saved = dataPriv.get( this, type );
-
- if ( ( event.isTrigger & 1 ) && this[ type ] ) {
-
- // Interrupt processing of the outer synthetic .trigger()ed event
- // Saved data should be false in such cases, but might be a leftover capture object
- // from an async native handler (gh-4350)
- if ( !saved.length ) {
-
- // Store arguments for use when handling the inner native event
- // There will always be at least one argument (an event object), so this array
- // will not be confused with a leftover capture object.
- saved = slice.call( arguments );
- dataPriv.set( this, type, saved );
-
- // Trigger the native event and capture its result
- // Support: IE <=9 - 11+
- // focus() and blur() are asynchronous
- notAsync = expectSync( this, type );
- this[ type ]();
- result = dataPriv.get( this, type );
- if ( saved !== result || notAsync ) {
- dataPriv.set( this, type, false );
- } else {
- result = {};
- }
- if ( saved !== result ) {
-
- // Cancel the outer synthetic event
- event.stopImmediatePropagation();
- event.preventDefault();
- return result.value;
- }
-
- // If this is an inner synthetic event for an event with a bubbling surrogate
- // (focus or blur), assume that the surrogate already propagated from triggering the
- // native event and prevent that from happening again here.
- // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
- // bubbling surrogate propagates *after* the non-bubbling base), but that seems
- // less bad than duplication.
- } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {
- event.stopPropagation();
- }
-
- // If this is a native event triggered above, everything is now in order
- // Fire an inner synthetic event with the original arguments
- } else if ( saved.length ) {
-
- // ...and capture the result
- dataPriv.set( this, type, {
- value: jQuery.event.trigger(
-
- // Support: IE <=9 - 11+
- // Extend with the prototype to reset the above stopImmediatePropagation()
- jQuery.extend( saved[ 0 ], jQuery.Event.prototype ),
- saved.slice( 1 ),
- this
- )
- } );
-
- // Abort handling of the native event
- event.stopImmediatePropagation();
- }
- }
- } );
-}
-
-jQuery.removeEvent = function( elem, type, handle ) {
-
- // This "if" is needed for plain objects
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle );
- }
-};
-
-jQuery.Event = function( src, props ) {
-
- // Allow instantiation without the 'new' keyword
- if ( !( this instanceof jQuery.Event ) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
-
- // Support: Android <=2.3 only
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Create target properties
- // Support: Safari <=6 - 7 only
- // Target should not be a text node (#504, #13143)
- this.target = ( src.target && src.target.nodeType === 3 ) ?
- src.target.parentNode :
- src.target;
-
- this.currentTarget = src.currentTarget;
- this.relatedTarget = src.relatedTarget;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || Date.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- constructor: jQuery.Event,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
- isSimulated: false,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.preventDefault();
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopPropagation();
- }
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Includes all common event props including KeyEvent and MouseEvent specific props
-jQuery.each( {
- altKey: true,
- bubbles: true,
- cancelable: true,
- changedTouches: true,
- ctrlKey: true,
- detail: true,
- eventPhase: true,
- metaKey: true,
- pageX: true,
- pageY: true,
- shiftKey: true,
- view: true,
- "char": true,
- code: true,
- charCode: true,
- key: true,
- keyCode: true,
- button: true,
- buttons: true,
- clientX: true,
- clientY: true,
- offsetX: true,
- offsetY: true,
- pointerId: true,
- pointerType: true,
- screenX: true,
- screenY: true,
- targetTouches: true,
- toElement: true,
- touches: true,
-
- which: function( event ) {
- var button = event.button;
-
- // Add which for key events
- if ( event.which == null && rkeyEvent.test( event.type ) ) {
- return event.charCode != null ? event.charCode : event.keyCode;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
- if ( button & 1 ) {
- return 1;
- }
-
- if ( button & 2 ) {
- return 3;
- }
-
- if ( button & 4 ) {
- return 2;
- }
-
- return 0;
- }
-
- return event.which;
- }
-}, 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 );
-
- // 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.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mouseenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-} );
-
-jQuery.fn.extend( {
-
- on: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn );
- },
- one: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
-
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ?
- handleObj.origType + "." + handleObj.namespace :
- handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
-
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
-
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each( function() {
- jQuery.event.remove( this, types, fn, selector );
- } );
- }
-} );
-
-
-var
-
- // Support: IE <=10 - 11, Edge 12 - 13 only
- // In IE/Edge using regex groups here causes severe slowdowns.
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
- rnoInnerhtml = /
-
-
- */
-/*
- * Queued Ajax requests.
- * A new Ajax request won't be started until the previous queued
- * request has finished.
- */
-
-/*
- * Synced Ajax requests.
- * The Ajax request will happen as soon as you call this method, but
- * the callbacks (success/error/complete) won't fire until all previous
- * synced requests have been completed.
- */
-
-
-(function(jQuery) {
-
- var ajax = jQuery.ajax;
-
- var pendingRequests = {};
-
- var synced = [];
- var syncedData = [];
-
- jQuery.ajax = function(settings) {
- // create settings for compatibility with ajaxSetup
- settings = jQuery.extend(settings, jQuery.extend({}, jQuery.ajaxSettings, settings));
-
- var port = settings.port;
-
- switch(settings.mode) {
- case "abort":
- if ( pendingRequests[port] ) {
- pendingRequests[port].abort();
- }
- return pendingRequests[port] = ajax.apply(this, arguments);
- case "queue":
- var _old = settings.complete;
- settings.complete = function(){
- if ( _old )
- _old.apply( this, arguments );
- jQuery([ajax]).dequeue("ajax" + port );;
- };
-
- jQuery([ ajax ]).queue("ajax" + port, function(){
- ajax( settings );
- });
- return;
- case "sync":
- var pos = synced.length;
-
- synced[ pos ] = {
- error: settings.error,
- success: settings.success,
- complete: settings.complete,
- done: false
- };
-
- syncedData[ pos ] = {
- error: [],
- success: [],
- complete: []
- };
-
- settings.error = function(){ syncedData[ pos ].error = arguments; };
- settings.success = function(){ syncedData[ pos ].success = arguments; };
- settings.complete = function(){
- syncedData[ pos ].complete = arguments;
- synced[ pos ].done = true;
-
- if ( pos == 0 || !synced[ pos-1 ] )
- for ( var i = pos; i < synced.length && synced[i].done; i++ ) {
- if ( synced[i].error ) synced[i].error.apply( jQuery, syncedData[i].error );
- if ( synced[i].success ) synced[i].success.apply( jQuery, syncedData[i].success );
- if ( synced[i].complete ) synced[i].complete.apply( jQuery, syncedData[i].complete );
-
- synced[i] = null;
- syncedData[i] = null;
- }
- };
- }
- return ajax.apply(this, arguments);
- };
-
-})((typeof window.jQuery == 'undefined' && typeof window.django != 'undefined')
- ? django.jQuery
- : jQuery
-);
diff --git a/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.5fc2188f8a16.js.gz b/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.5fc2188f8a16.js.gz
deleted file mode 100644
index fd176d97c..000000000
Binary files a/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.5fc2188f8a16.js.gz and /dev/null differ
diff --git a/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.js b/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.js
deleted file mode 100644
index aca15d9a6..000000000
--- a/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.js
+++ /dev/null
@@ -1,116 +0,0 @@
-/**
- * Ajax Queue Plugin
- */
-
-/**
-
-
-
-
- */
-/*
- * Queued Ajax requests.
- * A new Ajax request won't be started until the previous queued
- * request has finished.
- */
-
-/*
- * Synced Ajax requests.
- * The Ajax request will happen as soon as you call this method, but
- * the callbacks (success/error/complete) won't fire until all previous
- * synced requests have been completed.
- */
-
-
-(function(jQuery) {
-
- var ajax = jQuery.ajax;
-
- var pendingRequests = {};
-
- var synced = [];
- var syncedData = [];
-
- jQuery.ajax = function(settings) {
- // create settings for compatibility with ajaxSetup
- settings = jQuery.extend(settings, jQuery.extend({}, jQuery.ajaxSettings, settings));
-
- var port = settings.port;
-
- switch(settings.mode) {
- case "abort":
- if ( pendingRequests[port] ) {
- pendingRequests[port].abort();
- }
- return pendingRequests[port] = ajax.apply(this, arguments);
- case "queue":
- var _old = settings.complete;
- settings.complete = function(){
- if ( _old )
- _old.apply( this, arguments );
- jQuery([ajax]).dequeue("ajax" + port );;
- };
-
- jQuery([ ajax ]).queue("ajax" + port, function(){
- ajax( settings );
- });
- return;
- case "sync":
- var pos = synced.length;
-
- synced[ pos ] = {
- error: settings.error,
- success: settings.success,
- complete: settings.complete,
- done: false
- };
-
- syncedData[ pos ] = {
- error: [],
- success: [],
- complete: []
- };
-
- settings.error = function(){ syncedData[ pos ].error = arguments; };
- settings.success = function(){ syncedData[ pos ].success = arguments; };
- settings.complete = function(){
- syncedData[ pos ].complete = arguments;
- synced[ pos ].done = true;
-
- if ( pos == 0 || !synced[ pos-1 ] )
- for ( var i = pos; i < synced.length && synced[i].done; i++ ) {
- if ( synced[i].error ) synced[i].error.apply( jQuery, syncedData[i].error );
- if ( synced[i].success ) synced[i].success.apply( jQuery, syncedData[i].success );
- if ( synced[i].complete ) synced[i].complete.apply( jQuery, syncedData[i].complete );
-
- synced[i] = null;
- syncedData[i] = null;
- }
- };
- }
- return ajax.apply(this, arguments);
- };
-
-})((typeof window.jQuery == 'undefined' && typeof window.django != 'undefined')
- ? django.jQuery
- : jQuery
-);
diff --git a/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.js.gz b/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.js.gz
deleted file mode 100644
index fd176d97c..000000000
Binary files a/backend/staticfiles/django_extensions/js/jquery.ajaxQueue.js.gz and /dev/null differ
diff --git a/backend/staticfiles/django_extensions/js/jquery.autocomplete.26e55daaf7c5.js b/backend/staticfiles/django_extensions/js/jquery.autocomplete.26e55daaf7c5.js
deleted file mode 100644
index 77c1db60a..000000000
--- a/backend/staticfiles/django_extensions/js/jquery.autocomplete.26e55daaf7c5.js
+++ /dev/null
@@ -1,1152 +0,0 @@
-/**
- * @fileOverview jquery-autocomplete, the jQuery Autocompleter
- * @author Dylan Verheul
- * @version 2.4.4
- * @requires jQuery 1.6+
- * @license MIT | GPL | Apache 2.0, see LICENSE.txt
- * @see https://github.com/dyve/jquery-autocomplete
- */
-(function($) {
- "use strict";
-
- /**
- * jQuery autocomplete plugin
- * @param {object|string} options
- * @returns (object} jQuery object
- */
- $.fn.autocomplete = function(options) {
- var url;
- if (arguments.length > 1) {
- url = options;
- options = arguments[1];
- options.url = url;
- } else if (typeof options === 'string') {
- url = options;
- options = { url: url };
- }
- var opts = $.extend({}, $.fn.autocomplete.defaults, options);
- return this.each(function() {
- var $this = $(this);
- $this.data('autocompleter', new $.Autocompleter(
- $this,
- $.meta ? $.extend({}, opts, $this.data()) : opts
- ));
- });
- };
-
- /**
- * Store default options
- * @type {object}
- */
- $.fn.autocomplete.defaults = {
- inputClass: 'acInput',
- loadingClass: 'acLoading',
- resultsClass: 'acResults',
- selectClass: 'acSelect',
- queryParamName: 'q',
- extraParams: {},
- remoteDataType: false,
- lineSeparator: '\n',
- cellSeparator: '|',
- minChars: 2,
- maxItemsToShow: 10,
- delay: 400,
- useCache: true,
- maxCacheLength: 10,
- matchSubset: true,
- matchCase: false,
- matchInside: true,
- mustMatch: false,
- selectFirst: false,
- selectOnly: false,
- showResult: null,
- preventDefaultReturn: 1,
- preventDefaultTab: 0,
- autoFill: false,
- filterResults: true,
- filter: true,
- sortResults: true,
- sortFunction: null,
- onItemSelect: null,
- onNoMatch: null,
- onFinish: null,
- matchStringConverter: null,
- beforeUseConverter: null,
- autoWidth: 'min-width',
- useDelimiter: false,
- delimiterChar: ',',
- delimiterKeyCode: 188,
- processData: null,
- onError: null,
- enabled: true
- };
-
- /**
- * Sanitize result
- * @param {Object} result
- * @returns {Object} object with members value (String) and data (Object)
- * @private
- */
- var sanitizeResult = function(result) {
- var value, data;
- var type = typeof result;
- if (type === 'string') {
- value = result;
- data = {};
- } else if ($.isArray(result)) {
- value = result[0];
- data = result.slice(1);
- } else if (type === 'object') {
- value = result.value;
- data = result.data;
- }
- value = String(value);
- if (typeof data !== 'object') {
- data = {};
- }
- return {
- value: value,
- data: data
- };
- };
-
- /**
- * Sanitize integer
- * @param {mixed} value
- * @param {Object} options
- * @returns {Number} integer
- * @private
- */
- var sanitizeInteger = function(value, stdValue, options) {
- var num = parseInt(value, 10);
- options = options || {};
- if (isNaN(num) || (options.min && num < options.min)) {
- num = stdValue;
- }
- return num;
- };
-
- /**
- * Create partial url for a name/value pair
- */
- var makeUrlParam = function(name, value) {
- return [name, encodeURIComponent(value)].join('=');
- };
-
- /**
- * Build an url
- * @param {string} url Base url
- * @param {object} [params] Dictionary of parameters
- */
- var makeUrl = function(url, params) {
- var urlAppend = [];
- $.each(params, function(index, value) {
- urlAppend.push(makeUrlParam(index, value));
- });
- if (urlAppend.length) {
- url += url.indexOf('?') === -1 ? '?' : '&';
- url += urlAppend.join('&');
- }
- return url;
- };
-
- /**
- * Default sort filter
- * @param {object} a
- * @param {object} b
- * @param {boolean} matchCase
- * @returns {number}
- */
- var sortValueAlpha = function(a, b, matchCase) {
- a = String(a.value);
- b = String(b.value);
- if (!matchCase) {
- a = a.toLowerCase();
- b = b.toLowerCase();
- }
- if (a > b) {
- return 1;
- }
- if (a < b) {
- return -1;
- }
- return 0;
- };
-
- /**
- * Parse data received in text format
- * @param {string} text Plain text input
- * @param {string} lineSeparator String that separates lines
- * @param {string} cellSeparator String that separates cells
- * @returns {array} Array of autocomplete data objects
- */
- var plainTextParser = function(text, lineSeparator, cellSeparator) {
- var results = [];
- var i, j, data, line, value, lines;
- // Be nice, fix linebreaks before splitting on lineSeparator
- lines = String(text).replace('\r\n', '\n').split(lineSeparator);
- for (i = 0; i < lines.length; i++) {
- line = lines[i].split(cellSeparator);
- data = [];
- for (j = 0; j < line.length; j++) {
- data.push(decodeURIComponent(line[j]));
- }
- value = data.shift();
- results.push({ value: value, data: data });
- }
- return results;
- };
-
- /**
- * Autocompleter class
- * @param {object} $elem jQuery object with one input tag
- * @param {object} options Settings
- * @constructor
- */
- $.Autocompleter = function($elem, options) {
-
- /**
- * Assert parameters
- */
- if (!$elem || !($elem instanceof $) || $elem.length !== 1 || $elem.get(0).tagName.toUpperCase() !== 'INPUT') {
- throw new Error('Invalid parameter for jquery.Autocompleter, jQuery object with one element with INPUT tag expected.');
- }
-
- /**
- * @constant Link to this instance
- * @type object
- * @private
- */
- var self = this;
-
- /**
- * @property {object} Options for this instance
- * @public
- */
- this.options = options;
-
- /**
- * @property object Cached data for this instance
- * @private
- */
- this.cacheData_ = {};
-
- /**
- * @property {number} Number of cached data items
- * @private
- */
- this.cacheLength_ = 0;
-
- /**
- * @property {string} Class name to mark selected item
- * @private
- */
- this.selectClass_ = 'jquery-autocomplete-selected-item';
-
- /**
- * @property {number} Handler to activation timeout
- * @private
- */
- this.keyTimeout_ = null;
-
- /**
- * @property {number} Handler to finish timeout
- * @private
- */
- this.finishTimeout_ = null;
-
- /**
- * @property {number} Last key pressed in the input field (store for behavior)
- * @private
- */
- this.lastKeyPressed_ = null;
-
- /**
- * @property {string} Last value processed by the autocompleter
- * @private
- */
- this.lastProcessedValue_ = null;
-
- /**
- * @property {string} Last value selected by the user
- * @private
- */
- this.lastSelectedValue_ = null;
-
- /**
- * @property {boolean} Is this autocompleter active (showing results)?
- * @see showResults
- * @private
- */
- this.active_ = false;
-
- /**
- * @property {boolean} Is this autocompleter allowed to finish on blur?
- * @private
- */
- this.finishOnBlur_ = true;
-
- /**
- * Sanitize options
- */
- this.options.minChars = sanitizeInteger(this.options.minChars, $.fn.autocomplete.defaults.minChars, { min: 0 });
- this.options.maxItemsToShow = sanitizeInteger(this.options.maxItemsToShow, $.fn.autocomplete.defaults.maxItemsToShow, { min: 0 });
- this.options.maxCacheLength = sanitizeInteger(this.options.maxCacheLength, $.fn.autocomplete.defaults.maxCacheLength, { min: 1 });
- this.options.delay = sanitizeInteger(this.options.delay, $.fn.autocomplete.defaults.delay, { min: 0 });
- if (this.options.preventDefaultReturn != 2) {
- this.options.preventDefaultReturn = this.options.preventDefaultReturn ? 1 : 0;
- }
- if (this.options.preventDefaultTab != 2) {
- this.options.preventDefaultTab = this.options.preventDefaultTab ? 1 : 0;
- }
-
- /**
- * Init DOM elements repository
- */
- this.dom = {};
-
- /**
- * Store the input element we're attached to in the repository
- */
- this.dom.$elem = $elem;
-
- /**
- * Switch off the native autocomplete and add the input class
- */
- this.dom.$elem.attr('autocomplete', 'off').addClass(this.options.inputClass);
-
- /**
- * Create DOM element to hold results, and force absolute position
- */
- this.dom.$results = $('
').hide().addClass(this.options.resultsClass).css({
- position: 'absolute'
- });
- $('body').append(this.dom.$results);
-
- /**
- * Attach keyboard monitoring to $elem
- */
- $elem.keydown(function(e) {
- self.lastKeyPressed_ = e.keyCode;
- switch(self.lastKeyPressed_) {
-
- case self.options.delimiterKeyCode: // comma = 188
- if (self.options.useDelimiter && self.active_) {
- self.selectCurrent();
- }
- break;
-
- // ignore navigational & special keys
- case 35: // end
- case 36: // home
- case 16: // shift
- case 17: // ctrl
- case 18: // alt
- case 37: // left
- case 39: // right
- break;
-
- case 38: // up
- e.preventDefault();
- if (self.active_) {
- self.focusPrev();
- } else {
- self.activate();
- }
- return false;
-
- case 40: // down
- e.preventDefault();
- if (self.active_) {
- self.focusNext();
- } else {
- self.activate();
- }
- return false;
-
- case 9: // tab
- if (self.active_) {
- self.selectCurrent();
- if (self.options.preventDefaultTab) {
- e.preventDefault();
- return false;
- }
- }
- if (self.options.preventDefaultTab === 2) {
- e.preventDefault();
- return false;
- }
- break;
-
- case 13: // return
- if (self.active_) {
- self.selectCurrent();
- if (self.options.preventDefaultReturn) {
- e.preventDefault();
- return false;
- }
- }
- if (self.options.preventDefaultReturn === 2) {
- e.preventDefault();
- return false;
- }
- break;
-
- case 27: // escape
- if (self.active_) {
- e.preventDefault();
- self.deactivate(true);
- return false;
- }
- break;
-
- default:
- self.activate();
-
- }
- });
-
- /**
- * Attach paste event listener because paste may occur much later then keydown or even without a keydown at all
- */
- $elem.on('paste', function() {
- self.activate();
- });
-
- /**
- * Finish on blur event
- * Use a timeout because instant blur gives race conditions
- */
- var onBlurFunction = function() {
- self.deactivate(true);
- }
- $elem.blur(function() {
- if (self.finishOnBlur_) {
- self.finishTimeout_ = setTimeout(onBlurFunction, 200);
- }
- });
- /**
- * Catch a race condition on form submit
- */
- $elem.parents('form').on('submit', onBlurFunction);
-
- };
-
- /**
- * Position output DOM elements
- * @private
- */
- $.Autocompleter.prototype.position = function() {
- var offset = this.dom.$elem.offset();
- var height = this.dom.$results.outerHeight();
- var totalHeight = $(window).outerHeight();
- var inputBottom = offset.top + this.dom.$elem.outerHeight();
- var bottomIfDown = inputBottom + height;
- // Set autocomplete results at the bottom of input
- var position = {top: inputBottom, left: offset.left};
- if (bottomIfDown > totalHeight) {
- // Try to set autocomplete results at the top of input
- var topIfUp = offset.top - height;
- if (topIfUp >= 0) {
- position.top = topIfUp;
- }
- }
- this.dom.$results.css(position);
- };
-
- /**
- * Read from cache
- * @private
- */
- $.Autocompleter.prototype.cacheRead = function(filter) {
- var filterLength, searchLength, search, maxPos, pos;
- if (this.options.useCache) {
- filter = String(filter);
- filterLength = filter.length;
- if (this.options.matchSubset) {
- searchLength = 1;
- } else {
- searchLength = filterLength;
- }
- while (searchLength <= filterLength) {
- if (this.options.matchInside) {
- maxPos = filterLength - searchLength;
- } else {
- maxPos = 0;
- }
- pos = 0;
- while (pos <= maxPos) {
- search = filter.substr(0, searchLength);
- if (this.cacheData_[search] !== undefined) {
- return this.cacheData_[search];
- }
- pos++;
- }
- searchLength++;
- }
- }
- return false;
- };
-
- /**
- * Write to cache
- * @private
- */
- $.Autocompleter.prototype.cacheWrite = function(filter, data) {
- if (this.options.useCache) {
- if (this.cacheLength_ >= this.options.maxCacheLength) {
- this.cacheFlush();
- }
- filter = String(filter);
- if (this.cacheData_[filter] !== undefined) {
- this.cacheLength_++;
- }
- this.cacheData_[filter] = data;
- return this.cacheData_[filter];
- }
- return false;
- };
-
- /**
- * Flush cache
- * @public
- */
- $.Autocompleter.prototype.cacheFlush = function() {
- this.cacheData_ = {};
- this.cacheLength_ = 0;
- };
-
- /**
- * Call hook
- * Note that all called hooks are passed the autocompleter object
- * @param {string} hook
- * @param data
- * @returns Result of called hook, false if hook is undefined
- */
- $.Autocompleter.prototype.callHook = function(hook, data) {
- var f = this.options[hook];
- if (f && $.isFunction(f)) {
- return f(data, this);
- }
- return false;
- };
-
- /**
- * Set timeout to activate autocompleter
- */
- $.Autocompleter.prototype.activate = function() {
- if (!this.options.enabled) return;
- var self = this;
- if (this.keyTimeout_) {
- clearTimeout(this.keyTimeout_);
- }
- this.keyTimeout_ = setTimeout(function() {
- self.activateNow();
- }, this.options.delay);
- };
-
- /**
- * Activate autocompleter immediately
- */
- $.Autocompleter.prototype.activateNow = function() {
- var value = this.beforeUseConverter(this.dom.$elem.val());
- if (value !== this.lastProcessedValue_ && value !== this.lastSelectedValue_) {
- this.fetchData(value);
- }
- };
-
- /**
- * Get autocomplete data for a given value
- * @param {string} value Value to base autocompletion on
- * @private
- */
- $.Autocompleter.prototype.fetchData = function(value) {
- var self = this;
- var processResults = function(results, filter) {
- if (self.options.processData) {
- results = self.options.processData(results);
- }
- self.showResults(self.filterResults(results, filter), filter);
- };
- this.lastProcessedValue_ = value;
- if (value.length < this.options.minChars) {
- processResults([], value);
- } else if (this.options.data) {
- processResults(this.options.data, value);
- } else {
- this.fetchRemoteData(value, function(remoteData) {
- processResults(remoteData, value);
- });
- }
- };
-
- /**
- * Get remote autocomplete data for a given value
- * @param {string} filter The filter to base remote data on
- * @param {function} callback The function to call after data retrieval
- * @private
- */
- $.Autocompleter.prototype.fetchRemoteData = function(filter, callback) {
- var data = this.cacheRead(filter);
- if (data) {
- callback(data);
- } else {
- var self = this;
- var dataType = self.options.remoteDataType === 'json' ? 'json' : 'text';
- var ajaxCallback = function(data) {
- var parsed = false;
- if (data !== false) {
- parsed = self.parseRemoteData(data);
- self.cacheWrite(filter, parsed);
- }
- self.dom.$elem.removeClass(self.options.loadingClass);
- callback(parsed);
- };
- this.dom.$elem.addClass(this.options.loadingClass);
- $.ajax({
- url: this.makeUrl(filter),
- success: ajaxCallback,
- error: function(jqXHR, textStatus, errorThrown) {
- if($.isFunction(self.options.onError)) {
- self.options.onError(jqXHR, textStatus, errorThrown);
- } else {
- ajaxCallback(false);
- }
- },
- dataType: dataType
- });
- }
- };
-
- /**
- * Create or update an extra parameter for the remote request
- * @param {string} name Parameter name
- * @param {string} value Parameter value
- * @public
- */
- $.Autocompleter.prototype.setExtraParam = function(name, value) {
- var index = $.trim(String(name));
- if (index) {
- if (!this.options.extraParams) {
- this.options.extraParams = {};
- }
- if (this.options.extraParams[index] !== value) {
- this.options.extraParams[index] = value;
- this.cacheFlush();
- }
- }
-
- return this;
- };
-
- /**
- * Build the url for a remote request
- * If options.queryParamName === false, append query to url instead of using a GET parameter
- * @param {string} param The value parameter to pass to the backend
- * @returns {string} The finished url with parameters
- */
- $.Autocompleter.prototype.makeUrl = function(param) {
- var self = this;
- var url = this.options.url;
- var params = $.extend({}, this.options.extraParams);
-
- if (this.options.queryParamName === false) {
- url += encodeURIComponent(param);
- } else {
- params[this.options.queryParamName] = param;
- }
-
- return makeUrl(url, params);
- };
-
- /**
- * Parse data received from server
- * @param remoteData Data received from remote server
- * @returns {array} Parsed data
- */
- $.Autocompleter.prototype.parseRemoteData = function(remoteData) {
- var remoteDataType;
- var data = remoteData;
- if (this.options.remoteDataType === 'json') {
- remoteDataType = typeof(remoteData);
- switch (remoteDataType) {
- case 'object':
- data = remoteData;
- break;
- case 'string':
- data = $.parseJSON(remoteData);
- break;
- default:
- throw new Error("Unexpected remote data type: " + remoteDataType);
- }
- return data;
- }
- return plainTextParser(data, this.options.lineSeparator, this.options.cellSeparator);
- };
-
- /**
- * Default filter for results
- * @param {Object} result
- * @param {String} filter
- * @returns {boolean} Include this result
- * @private
- */
- $.Autocompleter.prototype.defaultFilter = function(result, filter) {
- if (!result.value) {
- return false;
- }
- if (this.options.filterResults) {
- var pattern = this.matchStringConverter(filter);
- var testValue = this.matchStringConverter(result.value);
- if (!this.options.matchCase) {
- pattern = pattern.toLowerCase();
- testValue = testValue.toLowerCase();
- }
- var patternIndex = testValue.indexOf(pattern);
- if (this.options.matchInside) {
- return patternIndex > -1;
- } else {
- return patternIndex === 0;
- }
- }
- return true;
- };
-
- /**
- * Filter result
- * @param {Object} result
- * @param {String} filter
- * @returns {boolean} Include this result
- * @private
- */
- $.Autocompleter.prototype.filterResult = function(result, filter) {
- // No filter
- if (this.options.filter === false) {
- return true;
- }
- // Custom filter
- if ($.isFunction(this.options.filter)) {
- return this.options.filter(result, filter);
- }
- // Default filter
- return this.defaultFilter(result, filter);
- };
-
- /**
- * Filter results
- * @param results
- * @param filter
- */
- $.Autocompleter.prototype.filterResults = function(results, filter) {
- var filtered = [];
- var i, result;
-
- for (i = 0; i < results.length; i++) {
- result = sanitizeResult(results[i]);
- if (this.filterResult(result, filter)) {
- filtered.push(result);
- }
- }
- if (this.options.sortResults) {
- filtered = this.sortResults(filtered, filter);
- }
- if (this.options.maxItemsToShow > 0 && this.options.maxItemsToShow < filtered.length) {
- filtered.length = this.options.maxItemsToShow;
- }
- return filtered;
- };
-
- /**
- * Sort results
- * @param results
- * @param filter
- */
- $.Autocompleter.prototype.sortResults = function(results, filter) {
- var self = this;
- var sortFunction = this.options.sortFunction;
- if (!$.isFunction(sortFunction)) {
- sortFunction = function(a, b, f) {
- return sortValueAlpha(a, b, self.options.matchCase);
- };
- }
- results.sort(function(a, b) {
- return sortFunction(a, b, filter, self.options);
- });
- return results;
- };
-
- /**
- * Convert string before matching
- * @param s
- * @param a
- * @param b
- */
- $.Autocompleter.prototype.matchStringConverter = function(s, a, b) {
- var converter = this.options.matchStringConverter;
- if ($.isFunction(converter)) {
- s = converter(s, a, b);
- }
- return s;
- };
-
- /**
- * Convert string before use
- * @param {String} s
- */
- $.Autocompleter.prototype.beforeUseConverter = function(s) {
- s = this.getValue(s);
- var converter = this.options.beforeUseConverter;
- if ($.isFunction(converter)) {
- s = converter(s);
- }
- return s;
- };
-
- /**
- * Enable finish on blur event
- */
- $.Autocompleter.prototype.enableFinishOnBlur = function() {
- this.finishOnBlur_ = true;
- };
-
- /**
- * Disable finish on blur event
- */
- $.Autocompleter.prototype.disableFinishOnBlur = function() {
- this.finishOnBlur_ = false;
- };
-
- /**
- * Create a results item (LI element) from a result
- * @param result
- */
- $.Autocompleter.prototype.createItemFromResult = function(result) {
- var self = this;
- var $li = $(' ');
- $li.html(this.showResult(result.value, result.data));
- $li.data({value: result.value, data: result.data})
- .click(function() {
- self.selectItem($li);
- })
- .mousedown(self.disableFinishOnBlur)
- .mouseup(self.enableFinishOnBlur)
- ;
- return $li;
- };
-
- /**
- * Get all items from the results list
- * @param result
- */
- $.Autocompleter.prototype.getItems = function() {
- return $('>ul>li', this.dom.$results);
- };
-
- /**
- * Show all results
- * @param results
- * @param filter
- */
- $.Autocompleter.prototype.showResults = function(results, filter) {
- var numResults = results.length;
- var self = this;
- var $ul = $('');
- var i, result, $li, autoWidth, first = false, $first = false;
-
- if (numResults) {
- for (i = 0; i < numResults; i++) {
- result = results[i];
- $li = this.createItemFromResult(result);
- $ul.append($li);
- if (first === false) {
- first = String(result.value);
- $first = $li;
- $li.addClass(this.options.firstItemClass);
- }
- if (i === numResults - 1) {
- $li.addClass(this.options.lastItemClass);
- }
- }
-
- this.dom.$results.html($ul).show();
-
- // Always recalculate position since window size or
- // input element location may have changed.
- this.position();
- if (this.options.autoWidth) {
- autoWidth = this.dom.$elem.outerWidth() - this.dom.$results.outerWidth() + this.dom.$results.width();
- this.dom.$results.css(this.options.autoWidth, autoWidth);
- }
- this.getItems().hover(
- function() { self.focusItem(this); },
- function() { /* void */ }
- );
- if (this.autoFill(first, filter) || this.options.selectFirst || (this.options.selectOnly && numResults === 1)) {
- this.focusItem($first);
- }
- this.active_ = true;
- } else {
- this.hideResults();
- this.active_ = false;
- }
- };
-
- $.Autocompleter.prototype.showResult = function(value, data) {
- if ($.isFunction(this.options.showResult)) {
- return this.options.showResult(value, data);
- } else {
- return $('
').text(value).html();
- }
- };
-
- $.Autocompleter.prototype.autoFill = function(value, filter) {
- var lcValue, lcFilter, valueLength, filterLength;
- if (this.options.autoFill && this.lastKeyPressed_ !== 8) {
- lcValue = String(value).toLowerCase();
- lcFilter = String(filter).toLowerCase();
- valueLength = value.length;
- filterLength = filter.length;
- if (lcValue.substr(0, filterLength) === lcFilter) {
- var d = this.getDelimiterOffsets();
- var pad = d.start ? ' ' : ''; // if there is a preceding delimiter
- this.setValue( pad + value );
- var start = filterLength + d.start + pad.length;
- var end = valueLength + d.start + pad.length;
- this.selectRange(start, end);
- return true;
- }
- }
- return false;
- };
-
- $.Autocompleter.prototype.focusNext = function() {
- this.focusMove(+1);
- };
-
- $.Autocompleter.prototype.focusPrev = function() {
- this.focusMove(-1);
- };
-
- $.Autocompleter.prototype.focusMove = function(modifier) {
- var $items = this.getItems();
- modifier = sanitizeInteger(modifier, 0);
- if (modifier) {
- for (var i = 0; i < $items.length; i++) {
- if ($($items[i]).hasClass(this.selectClass_)) {
- this.focusItem(i + modifier);
- return;
- }
- }
- }
- this.focusItem(0);
- };
-
- $.Autocompleter.prototype.focusItem = function(item) {
- var $item, $items = this.getItems();
- if ($items.length) {
- $items.removeClass(this.selectClass_).removeClass(this.options.selectClass);
- if (typeof item === 'number') {
- if (item < 0) {
- item = 0;
- } else if (item >= $items.length) {
- item = $items.length - 1;
- }
- $item = $($items[item]);
- } else {
- $item = $(item);
- }
- if ($item) {
- $item.addClass(this.selectClass_).addClass(this.options.selectClass);
- }
- }
- };
-
- $.Autocompleter.prototype.selectCurrent = function() {
- var $item = $('li.' + this.selectClass_, this.dom.$results);
- if ($item.length === 1) {
- this.selectItem($item);
- } else {
- this.deactivate(false);
- }
- };
-
- $.Autocompleter.prototype.selectItem = function($li) {
- var value = $li.data('value');
- var data = $li.data('data');
- var displayValue = this.displayValue(value, data);
- var processedDisplayValue = this.beforeUseConverter(displayValue);
- this.lastProcessedValue_ = processedDisplayValue;
- this.lastSelectedValue_ = processedDisplayValue;
- var d = this.getDelimiterOffsets();
- var delimiter = this.options.delimiterChar;
- var elem = this.dom.$elem;
- var extraCaretPos = 0;
- if ( this.options.useDelimiter ) {
- // if there is a preceding delimiter, add a space after the delimiter
- if ( elem.val().substring(d.start-1, d.start) == delimiter && delimiter != ' ' ) {
- displayValue = ' ' + displayValue;
- }
- // if there is not already a delimiter trailing this value, add it
- if ( elem.val().substring(d.end, d.end+1) != delimiter && this.lastKeyPressed_ != this.options.delimiterKeyCode ) {
- displayValue = displayValue + delimiter;
- } else {
- // move the cursor after the existing trailing delimiter
- extraCaretPos = 1;
- }
- }
- this.setValue(displayValue);
- this.setCaret(d.start + displayValue.length + extraCaretPos);
- this.callHook('onItemSelect', { value: value, data: data });
- this.deactivate(true);
- elem.focus();
- };
-
- $.Autocompleter.prototype.displayValue = function(value, data) {
- if ($.isFunction(this.options.displayValue)) {
- return this.options.displayValue(value, data);
- }
- return value;
- };
-
- $.Autocompleter.prototype.hideResults = function() {
- this.dom.$results.hide();
- };
-
- $.Autocompleter.prototype.deactivate = function(finish) {
- if (this.finishTimeout_) {
- clearTimeout(this.finishTimeout_);
- }
- if (this.keyTimeout_) {
- clearTimeout(this.keyTimeout_);
- }
- if (finish) {
- if (this.lastProcessedValue_ !== this.lastSelectedValue_) {
- if (this.options.mustMatch) {
- this.setValue('');
- }
- this.callHook('onNoMatch');
- }
- if (this.active_) {
- this.callHook('onFinish');
- }
- this.lastKeyPressed_ = null;
- this.lastProcessedValue_ = null;
- this.lastSelectedValue_ = null;
- this.active_ = false;
- }
- this.hideResults();
- };
-
- $.Autocompleter.prototype.selectRange = function(start, end) {
- var input = this.dom.$elem.get(0);
- if (input.setSelectionRange) {
- input.focus();
- input.setSelectionRange(start, end);
- } else if (input.createTextRange) {
- var range = input.createTextRange();
- range.collapse(true);
- range.moveEnd('character', end);
- range.moveStart('character', start);
- range.select();
- }
- };
-
- /**
- * Move caret to position
- * @param {Number} pos
- */
- $.Autocompleter.prototype.setCaret = function(pos) {
- this.selectRange(pos, pos);
- };
-
- /**
- * Get caret position
- */
- $.Autocompleter.prototype.getCaret = function() {
- var $elem = this.dom.$elem;
- var elem = $elem[0];
- var val, selection, range, start, end, stored_range;
- if (elem.createTextRange) { // IE
- selection = document.selection;
- if (elem.tagName.toLowerCase() != 'textarea') {
- val = $elem.val();
- range = selection.createRange().duplicate();
- range.moveEnd('character', val.length);
- if (range.text === '') {
- start = val.length;
- } else {
- start = val.lastIndexOf(range.text);
- }
- range = selection.createRange().duplicate();
- range.moveStart('character', -val.length);
- end = range.text.length;
- } else {
- range = selection.createRange();
- stored_range = range.duplicate();
- stored_range.moveToElementText(elem);
- stored_range.setEndPoint('EndToEnd', range);
- start = stored_range.text.length - range.text.length;
- end = start + range.text.length;
- }
- } else {
- start = $elem[0].selectionStart;
- end = $elem[0].selectionEnd;
- }
- return {
- start: start,
- end: end
- };
- };
-
- /**
- * Set the value that is currently being autocompleted
- * @param {String} value
- */
- $.Autocompleter.prototype.setValue = function(value) {
- if ( this.options.useDelimiter ) {
- // set the substring between the current delimiters
- var val = this.dom.$elem.val();
- var d = this.getDelimiterOffsets();
- var preVal = val.substring(0, d.start);
- var postVal = val.substring(d.end);
- value = preVal + value + postVal;
- }
- this.dom.$elem.val(value);
- };
-
- /**
- * Get the value currently being autocompleted
- * @param {String} value
- */
- $.Autocompleter.prototype.getValue = function(value) {
- if ( this.options.useDelimiter ) {
- var d = this.getDelimiterOffsets();
- return value.substring(d.start, d.end).trim();
- } else {
- return value;
- }
- };
-
- /**
- * Get the offsets of the value currently being autocompleted
- */
- $.Autocompleter.prototype.getDelimiterOffsets = function() {
- var val = this.dom.$elem.val();
- if ( this.options.useDelimiter ) {
- var preCaretVal = val.substring(0, this.getCaret().start);
- var start = preCaretVal.lastIndexOf(this.options.delimiterChar) + 1;
- var postCaretVal = val.substring(this.getCaret().start);
- var end = postCaretVal.indexOf(this.options.delimiterChar);
- if ( end == -1 ) end = val.length;
- end += this.getCaret().start;
- } else {
- start = 0;
- end = val.length;
- }
- return {
- start: start,
- end: end
- };
- };
-
-})((typeof window.jQuery == 'undefined' && typeof window.django != 'undefined')? django.jQuery : jQuery);
diff --git a/backend/staticfiles/django_extensions/js/jquery.autocomplete.26e55daaf7c5.js.gz b/backend/staticfiles/django_extensions/js/jquery.autocomplete.26e55daaf7c5.js.gz
deleted file mode 100644
index 829b9dd85..000000000
Binary files a/backend/staticfiles/django_extensions/js/jquery.autocomplete.26e55daaf7c5.js.gz and /dev/null differ
diff --git a/backend/staticfiles/django_extensions/js/jquery.autocomplete.js b/backend/staticfiles/django_extensions/js/jquery.autocomplete.js
deleted file mode 100644
index 77c1db60a..000000000
--- a/backend/staticfiles/django_extensions/js/jquery.autocomplete.js
+++ /dev/null
@@ -1,1152 +0,0 @@
-/**
- * @fileOverview jquery-autocomplete, the jQuery Autocompleter
- * @author Dylan Verheul
- * @version 2.4.4
- * @requires jQuery 1.6+
- * @license MIT | GPL | Apache 2.0, see LICENSE.txt
- * @see https://github.com/dyve/jquery-autocomplete
- */
-(function($) {
- "use strict";
-
- /**
- * jQuery autocomplete plugin
- * @param {object|string} options
- * @returns (object} jQuery object
- */
- $.fn.autocomplete = function(options) {
- var url;
- if (arguments.length > 1) {
- url = options;
- options = arguments[1];
- options.url = url;
- } else if (typeof options === 'string') {
- url = options;
- options = { url: url };
- }
- var opts = $.extend({}, $.fn.autocomplete.defaults, options);
- return this.each(function() {
- var $this = $(this);
- $this.data('autocompleter', new $.Autocompleter(
- $this,
- $.meta ? $.extend({}, opts, $this.data()) : opts
- ));
- });
- };
-
- /**
- * Store default options
- * @type {object}
- */
- $.fn.autocomplete.defaults = {
- inputClass: 'acInput',
- loadingClass: 'acLoading',
- resultsClass: 'acResults',
- selectClass: 'acSelect',
- queryParamName: 'q',
- extraParams: {},
- remoteDataType: false,
- lineSeparator: '\n',
- cellSeparator: '|',
- minChars: 2,
- maxItemsToShow: 10,
- delay: 400,
- useCache: true,
- maxCacheLength: 10,
- matchSubset: true,
- matchCase: false,
- matchInside: true,
- mustMatch: false,
- selectFirst: false,
- selectOnly: false,
- showResult: null,
- preventDefaultReturn: 1,
- preventDefaultTab: 0,
- autoFill: false,
- filterResults: true,
- filter: true,
- sortResults: true,
- sortFunction: null,
- onItemSelect: null,
- onNoMatch: null,
- onFinish: null,
- matchStringConverter: null,
- beforeUseConverter: null,
- autoWidth: 'min-width',
- useDelimiter: false,
- delimiterChar: ',',
- delimiterKeyCode: 188,
- processData: null,
- onError: null,
- enabled: true
- };
-
- /**
- * Sanitize result
- * @param {Object} result
- * @returns {Object} object with members value (String) and data (Object)
- * @private
- */
- var sanitizeResult = function(result) {
- var value, data;
- var type = typeof result;
- if (type === 'string') {
- value = result;
- data = {};
- } else if ($.isArray(result)) {
- value = result[0];
- data = result.slice(1);
- } else if (type === 'object') {
- value = result.value;
- data = result.data;
- }
- value = String(value);
- if (typeof data !== 'object') {
- data = {};
- }
- return {
- value: value,
- data: data
- };
- };
-
- /**
- * Sanitize integer
- * @param {mixed} value
- * @param {Object} options
- * @returns {Number} integer
- * @private
- */
- var sanitizeInteger = function(value, stdValue, options) {
- var num = parseInt(value, 10);
- options = options || {};
- if (isNaN(num) || (options.min && num < options.min)) {
- num = stdValue;
- }
- return num;
- };
-
- /**
- * Create partial url for a name/value pair
- */
- var makeUrlParam = function(name, value) {
- return [name, encodeURIComponent(value)].join('=');
- };
-
- /**
- * Build an url
- * @param {string} url Base url
- * @param {object} [params] Dictionary of parameters
- */
- var makeUrl = function(url, params) {
- var urlAppend = [];
- $.each(params, function(index, value) {
- urlAppend.push(makeUrlParam(index, value));
- });
- if (urlAppend.length) {
- url += url.indexOf('?') === -1 ? '?' : '&';
- url += urlAppend.join('&');
- }
- return url;
- };
-
- /**
- * Default sort filter
- * @param {object} a
- * @param {object} b
- * @param {boolean} matchCase
- * @returns {number}
- */
- var sortValueAlpha = function(a, b, matchCase) {
- a = String(a.value);
- b = String(b.value);
- if (!matchCase) {
- a = a.toLowerCase();
- b = b.toLowerCase();
- }
- if (a > b) {
- return 1;
- }
- if (a < b) {
- return -1;
- }
- return 0;
- };
-
- /**
- * Parse data received in text format
- * @param {string} text Plain text input
- * @param {string} lineSeparator String that separates lines
- * @param {string} cellSeparator String that separates cells
- * @returns {array} Array of autocomplete data objects
- */
- var plainTextParser = function(text, lineSeparator, cellSeparator) {
- var results = [];
- var i, j, data, line, value, lines;
- // Be nice, fix linebreaks before splitting on lineSeparator
- lines = String(text).replace('\r\n', '\n').split(lineSeparator);
- for (i = 0; i < lines.length; i++) {
- line = lines[i].split(cellSeparator);
- data = [];
- for (j = 0; j < line.length; j++) {
- data.push(decodeURIComponent(line[j]));
- }
- value = data.shift();
- results.push({ value: value, data: data });
- }
- return results;
- };
-
- /**
- * Autocompleter class
- * @param {object} $elem jQuery object with one input tag
- * @param {object} options Settings
- * @constructor
- */
- $.Autocompleter = function($elem, options) {
-
- /**
- * Assert parameters
- */
- if (!$elem || !($elem instanceof $) || $elem.length !== 1 || $elem.get(0).tagName.toUpperCase() !== 'INPUT') {
- throw new Error('Invalid parameter for jquery.Autocompleter, jQuery object with one element with INPUT tag expected.');
- }
-
- /**
- * @constant Link to this instance
- * @type object
- * @private
- */
- var self = this;
-
- /**
- * @property {object} Options for this instance
- * @public
- */
- this.options = options;
-
- /**
- * @property object Cached data for this instance
- * @private
- */
- this.cacheData_ = {};
-
- /**
- * @property {number} Number of cached data items
- * @private
- */
- this.cacheLength_ = 0;
-
- /**
- * @property {string} Class name to mark selected item
- * @private
- */
- this.selectClass_ = 'jquery-autocomplete-selected-item';
-
- /**
- * @property {number} Handler to activation timeout
- * @private
- */
- this.keyTimeout_ = null;
-
- /**
- * @property {number} Handler to finish timeout
- * @private
- */
- this.finishTimeout_ = null;
-
- /**
- * @property {number} Last key pressed in the input field (store for behavior)
- * @private
- */
- this.lastKeyPressed_ = null;
-
- /**
- * @property {string} Last value processed by the autocompleter
- * @private
- */
- this.lastProcessedValue_ = null;
-
- /**
- * @property {string} Last value selected by the user
- * @private
- */
- this.lastSelectedValue_ = null;
-
- /**
- * @property {boolean} Is this autocompleter active (showing results)?
- * @see showResults
- * @private
- */
- this.active_ = false;
-
- /**
- * @property {boolean} Is this autocompleter allowed to finish on blur?
- * @private
- */
- this.finishOnBlur_ = true;
-
- /**
- * Sanitize options
- */
- this.options.minChars = sanitizeInteger(this.options.minChars, $.fn.autocomplete.defaults.minChars, { min: 0 });
- this.options.maxItemsToShow = sanitizeInteger(this.options.maxItemsToShow, $.fn.autocomplete.defaults.maxItemsToShow, { min: 0 });
- this.options.maxCacheLength = sanitizeInteger(this.options.maxCacheLength, $.fn.autocomplete.defaults.maxCacheLength, { min: 1 });
- this.options.delay = sanitizeInteger(this.options.delay, $.fn.autocomplete.defaults.delay, { min: 0 });
- if (this.options.preventDefaultReturn != 2) {
- this.options.preventDefaultReturn = this.options.preventDefaultReturn ? 1 : 0;
- }
- if (this.options.preventDefaultTab != 2) {
- this.options.preventDefaultTab = this.options.preventDefaultTab ? 1 : 0;
- }
-
- /**
- * Init DOM elements repository
- */
- this.dom = {};
-
- /**
- * Store the input element we're attached to in the repository
- */
- this.dom.$elem = $elem;
-
- /**
- * Switch off the native autocomplete and add the input class
- */
- this.dom.$elem.attr('autocomplete', 'off').addClass(this.options.inputClass);
-
- /**
- * Create DOM element to hold results, and force absolute position
- */
- this.dom.$results = $('
').hide().addClass(this.options.resultsClass).css({
- position: 'absolute'
- });
- $('body').append(this.dom.$results);
-
- /**
- * Attach keyboard monitoring to $elem
- */
- $elem.keydown(function(e) {
- self.lastKeyPressed_ = e.keyCode;
- switch(self.lastKeyPressed_) {
-
- case self.options.delimiterKeyCode: // comma = 188
- if (self.options.useDelimiter && self.active_) {
- self.selectCurrent();
- }
- break;
-
- // ignore navigational & special keys
- case 35: // end
- case 36: // home
- case 16: // shift
- case 17: // ctrl
- case 18: // alt
- case 37: // left
- case 39: // right
- break;
-
- case 38: // up
- e.preventDefault();
- if (self.active_) {
- self.focusPrev();
- } else {
- self.activate();
- }
- return false;
-
- case 40: // down
- e.preventDefault();
- if (self.active_) {
- self.focusNext();
- } else {
- self.activate();
- }
- return false;
-
- case 9: // tab
- if (self.active_) {
- self.selectCurrent();
- if (self.options.preventDefaultTab) {
- e.preventDefault();
- return false;
- }
- }
- if (self.options.preventDefaultTab === 2) {
- e.preventDefault();
- return false;
- }
- break;
-
- case 13: // return
- if (self.active_) {
- self.selectCurrent();
- if (self.options.preventDefaultReturn) {
- e.preventDefault();
- return false;
- }
- }
- if (self.options.preventDefaultReturn === 2) {
- e.preventDefault();
- return false;
- }
- break;
-
- case 27: // escape
- if (self.active_) {
- e.preventDefault();
- self.deactivate(true);
- return false;
- }
- break;
-
- default:
- self.activate();
-
- }
- });
-
- /**
- * Attach paste event listener because paste may occur much later then keydown or even without a keydown at all
- */
- $elem.on('paste', function() {
- self.activate();
- });
-
- /**
- * Finish on blur event
- * Use a timeout because instant blur gives race conditions
- */
- var onBlurFunction = function() {
- self.deactivate(true);
- }
- $elem.blur(function() {
- if (self.finishOnBlur_) {
- self.finishTimeout_ = setTimeout(onBlurFunction, 200);
- }
- });
- /**
- * Catch a race condition on form submit
- */
- $elem.parents('form').on('submit', onBlurFunction);
-
- };
-
- /**
- * Position output DOM elements
- * @private
- */
- $.Autocompleter.prototype.position = function() {
- var offset = this.dom.$elem.offset();
- var height = this.dom.$results.outerHeight();
- var totalHeight = $(window).outerHeight();
- var inputBottom = offset.top + this.dom.$elem.outerHeight();
- var bottomIfDown = inputBottom + height;
- // Set autocomplete results at the bottom of input
- var position = {top: inputBottom, left: offset.left};
- if (bottomIfDown > totalHeight) {
- // Try to set autocomplete results at the top of input
- var topIfUp = offset.top - height;
- if (topIfUp >= 0) {
- position.top = topIfUp;
- }
- }
- this.dom.$results.css(position);
- };
-
- /**
- * Read from cache
- * @private
- */
- $.Autocompleter.prototype.cacheRead = function(filter) {
- var filterLength, searchLength, search, maxPos, pos;
- if (this.options.useCache) {
- filter = String(filter);
- filterLength = filter.length;
- if (this.options.matchSubset) {
- searchLength = 1;
- } else {
- searchLength = filterLength;
- }
- while (searchLength <= filterLength) {
- if (this.options.matchInside) {
- maxPos = filterLength - searchLength;
- } else {
- maxPos = 0;
- }
- pos = 0;
- while (pos <= maxPos) {
- search = filter.substr(0, searchLength);
- if (this.cacheData_[search] !== undefined) {
- return this.cacheData_[search];
- }
- pos++;
- }
- searchLength++;
- }
- }
- return false;
- };
-
- /**
- * Write to cache
- * @private
- */
- $.Autocompleter.prototype.cacheWrite = function(filter, data) {
- if (this.options.useCache) {
- if (this.cacheLength_ >= this.options.maxCacheLength) {
- this.cacheFlush();
- }
- filter = String(filter);
- if (this.cacheData_[filter] !== undefined) {
- this.cacheLength_++;
- }
- this.cacheData_[filter] = data;
- return this.cacheData_[filter];
- }
- return false;
- };
-
- /**
- * Flush cache
- * @public
- */
- $.Autocompleter.prototype.cacheFlush = function() {
- this.cacheData_ = {};
- this.cacheLength_ = 0;
- };
-
- /**
- * Call hook
- * Note that all called hooks are passed the autocompleter object
- * @param {string} hook
- * @param data
- * @returns Result of called hook, false if hook is undefined
- */
- $.Autocompleter.prototype.callHook = function(hook, data) {
- var f = this.options[hook];
- if (f && $.isFunction(f)) {
- return f(data, this);
- }
- return false;
- };
-
- /**
- * Set timeout to activate autocompleter
- */
- $.Autocompleter.prototype.activate = function() {
- if (!this.options.enabled) return;
- var self = this;
- if (this.keyTimeout_) {
- clearTimeout(this.keyTimeout_);
- }
- this.keyTimeout_ = setTimeout(function() {
- self.activateNow();
- }, this.options.delay);
- };
-
- /**
- * Activate autocompleter immediately
- */
- $.Autocompleter.prototype.activateNow = function() {
- var value = this.beforeUseConverter(this.dom.$elem.val());
- if (value !== this.lastProcessedValue_ && value !== this.lastSelectedValue_) {
- this.fetchData(value);
- }
- };
-
- /**
- * Get autocomplete data for a given value
- * @param {string} value Value to base autocompletion on
- * @private
- */
- $.Autocompleter.prototype.fetchData = function(value) {
- var self = this;
- var processResults = function(results, filter) {
- if (self.options.processData) {
- results = self.options.processData(results);
- }
- self.showResults(self.filterResults(results, filter), filter);
- };
- this.lastProcessedValue_ = value;
- if (value.length < this.options.minChars) {
- processResults([], value);
- } else if (this.options.data) {
- processResults(this.options.data, value);
- } else {
- this.fetchRemoteData(value, function(remoteData) {
- processResults(remoteData, value);
- });
- }
- };
-
- /**
- * Get remote autocomplete data for a given value
- * @param {string} filter The filter to base remote data on
- * @param {function} callback The function to call after data retrieval
- * @private
- */
- $.Autocompleter.prototype.fetchRemoteData = function(filter, callback) {
- var data = this.cacheRead(filter);
- if (data) {
- callback(data);
- } else {
- var self = this;
- var dataType = self.options.remoteDataType === 'json' ? 'json' : 'text';
- var ajaxCallback = function(data) {
- var parsed = false;
- if (data !== false) {
- parsed = self.parseRemoteData(data);
- self.cacheWrite(filter, parsed);
- }
- self.dom.$elem.removeClass(self.options.loadingClass);
- callback(parsed);
- };
- this.dom.$elem.addClass(this.options.loadingClass);
- $.ajax({
- url: this.makeUrl(filter),
- success: ajaxCallback,
- error: function(jqXHR, textStatus, errorThrown) {
- if($.isFunction(self.options.onError)) {
- self.options.onError(jqXHR, textStatus, errorThrown);
- } else {
- ajaxCallback(false);
- }
- },
- dataType: dataType
- });
- }
- };
-
- /**
- * Create or update an extra parameter for the remote request
- * @param {string} name Parameter name
- * @param {string} value Parameter value
- * @public
- */
- $.Autocompleter.prototype.setExtraParam = function(name, value) {
- var index = $.trim(String(name));
- if (index) {
- if (!this.options.extraParams) {
- this.options.extraParams = {};
- }
- if (this.options.extraParams[index] !== value) {
- this.options.extraParams[index] = value;
- this.cacheFlush();
- }
- }
-
- return this;
- };
-
- /**
- * Build the url for a remote request
- * If options.queryParamName === false, append query to url instead of using a GET parameter
- * @param {string} param The value parameter to pass to the backend
- * @returns {string} The finished url with parameters
- */
- $.Autocompleter.prototype.makeUrl = function(param) {
- var self = this;
- var url = this.options.url;
- var params = $.extend({}, this.options.extraParams);
-
- if (this.options.queryParamName === false) {
- url += encodeURIComponent(param);
- } else {
- params[this.options.queryParamName] = param;
- }
-
- return makeUrl(url, params);
- };
-
- /**
- * Parse data received from server
- * @param remoteData Data received from remote server
- * @returns {array} Parsed data
- */
- $.Autocompleter.prototype.parseRemoteData = function(remoteData) {
- var remoteDataType;
- var data = remoteData;
- if (this.options.remoteDataType === 'json') {
- remoteDataType = typeof(remoteData);
- switch (remoteDataType) {
- case 'object':
- data = remoteData;
- break;
- case 'string':
- data = $.parseJSON(remoteData);
- break;
- default:
- throw new Error("Unexpected remote data type: " + remoteDataType);
- }
- return data;
- }
- return plainTextParser(data, this.options.lineSeparator, this.options.cellSeparator);
- };
-
- /**
- * Default filter for results
- * @param {Object} result
- * @param {String} filter
- * @returns {boolean} Include this result
- * @private
- */
- $.Autocompleter.prototype.defaultFilter = function(result, filter) {
- if (!result.value) {
- return false;
- }
- if (this.options.filterResults) {
- var pattern = this.matchStringConverter(filter);
- var testValue = this.matchStringConverter(result.value);
- if (!this.options.matchCase) {
- pattern = pattern.toLowerCase();
- testValue = testValue.toLowerCase();
- }
- var patternIndex = testValue.indexOf(pattern);
- if (this.options.matchInside) {
- return patternIndex > -1;
- } else {
- return patternIndex === 0;
- }
- }
- return true;
- };
-
- /**
- * Filter result
- * @param {Object} result
- * @param {String} filter
- * @returns {boolean} Include this result
- * @private
- */
- $.Autocompleter.prototype.filterResult = function(result, filter) {
- // No filter
- if (this.options.filter === false) {
- return true;
- }
- // Custom filter
- if ($.isFunction(this.options.filter)) {
- return this.options.filter(result, filter);
- }
- // Default filter
- return this.defaultFilter(result, filter);
- };
-
- /**
- * Filter results
- * @param results
- * @param filter
- */
- $.Autocompleter.prototype.filterResults = function(results, filter) {
- var filtered = [];
- var i, result;
-
- for (i = 0; i < results.length; i++) {
- result = sanitizeResult(results[i]);
- if (this.filterResult(result, filter)) {
- filtered.push(result);
- }
- }
- if (this.options.sortResults) {
- filtered = this.sortResults(filtered, filter);
- }
- if (this.options.maxItemsToShow > 0 && this.options.maxItemsToShow < filtered.length) {
- filtered.length = this.options.maxItemsToShow;
- }
- return filtered;
- };
-
- /**
- * Sort results
- * @param results
- * @param filter
- */
- $.Autocompleter.prototype.sortResults = function(results, filter) {
- var self = this;
- var sortFunction = this.options.sortFunction;
- if (!$.isFunction(sortFunction)) {
- sortFunction = function(a, b, f) {
- return sortValueAlpha(a, b, self.options.matchCase);
- };
- }
- results.sort(function(a, b) {
- return sortFunction(a, b, filter, self.options);
- });
- return results;
- };
-
- /**
- * Convert string before matching
- * @param s
- * @param a
- * @param b
- */
- $.Autocompleter.prototype.matchStringConverter = function(s, a, b) {
- var converter = this.options.matchStringConverter;
- if ($.isFunction(converter)) {
- s = converter(s, a, b);
- }
- return s;
- };
-
- /**
- * Convert string before use
- * @param {String} s
- */
- $.Autocompleter.prototype.beforeUseConverter = function(s) {
- s = this.getValue(s);
- var converter = this.options.beforeUseConverter;
- if ($.isFunction(converter)) {
- s = converter(s);
- }
- return s;
- };
-
- /**
- * Enable finish on blur event
- */
- $.Autocompleter.prototype.enableFinishOnBlur = function() {
- this.finishOnBlur_ = true;
- };
-
- /**
- * Disable finish on blur event
- */
- $.Autocompleter.prototype.disableFinishOnBlur = function() {
- this.finishOnBlur_ = false;
- };
-
- /**
- * Create a results item (LI element) from a result
- * @param result
- */
- $.Autocompleter.prototype.createItemFromResult = function(result) {
- var self = this;
- var $li = $(' ');
- $li.html(this.showResult(result.value, result.data));
- $li.data({value: result.value, data: result.data})
- .click(function() {
- self.selectItem($li);
- })
- .mousedown(self.disableFinishOnBlur)
- .mouseup(self.enableFinishOnBlur)
- ;
- return $li;
- };
-
- /**
- * Get all items from the results list
- * @param result
- */
- $.Autocompleter.prototype.getItems = function() {
- return $('>ul>li', this.dom.$results);
- };
-
- /**
- * Show all results
- * @param results
- * @param filter
- */
- $.Autocompleter.prototype.showResults = function(results, filter) {
- var numResults = results.length;
- var self = this;
- var $ul = $('');
- var i, result, $li, autoWidth, first = false, $first = false;
-
- if (numResults) {
- for (i = 0; i < numResults; i++) {
- result = results[i];
- $li = this.createItemFromResult(result);
- $ul.append($li);
- if (first === false) {
- first = String(result.value);
- $first = $li;
- $li.addClass(this.options.firstItemClass);
- }
- if (i === numResults - 1) {
- $li.addClass(this.options.lastItemClass);
- }
- }
-
- this.dom.$results.html($ul).show();
-
- // Always recalculate position since window size or
- // input element location may have changed.
- this.position();
- if (this.options.autoWidth) {
- autoWidth = this.dom.$elem.outerWidth() - this.dom.$results.outerWidth() + this.dom.$results.width();
- this.dom.$results.css(this.options.autoWidth, autoWidth);
- }
- this.getItems().hover(
- function() { self.focusItem(this); },
- function() { /* void */ }
- );
- if (this.autoFill(first, filter) || this.options.selectFirst || (this.options.selectOnly && numResults === 1)) {
- this.focusItem($first);
- }
- this.active_ = true;
- } else {
- this.hideResults();
- this.active_ = false;
- }
- };
-
- $.Autocompleter.prototype.showResult = function(value, data) {
- if ($.isFunction(this.options.showResult)) {
- return this.options.showResult(value, data);
- } else {
- return $('
').text(value).html();
- }
- };
-
- $.Autocompleter.prototype.autoFill = function(value, filter) {
- var lcValue, lcFilter, valueLength, filterLength;
- if (this.options.autoFill && this.lastKeyPressed_ !== 8) {
- lcValue = String(value).toLowerCase();
- lcFilter = String(filter).toLowerCase();
- valueLength = value.length;
- filterLength = filter.length;
- if (lcValue.substr(0, filterLength) === lcFilter) {
- var d = this.getDelimiterOffsets();
- var pad = d.start ? ' ' : ''; // if there is a preceding delimiter
- this.setValue( pad + value );
- var start = filterLength + d.start + pad.length;
- var end = valueLength + d.start + pad.length;
- this.selectRange(start, end);
- return true;
- }
- }
- return false;
- };
-
- $.Autocompleter.prototype.focusNext = function() {
- this.focusMove(+1);
- };
-
- $.Autocompleter.prototype.focusPrev = function() {
- this.focusMove(-1);
- };
-
- $.Autocompleter.prototype.focusMove = function(modifier) {
- var $items = this.getItems();
- modifier = sanitizeInteger(modifier, 0);
- if (modifier) {
- for (var i = 0; i < $items.length; i++) {
- if ($($items[i]).hasClass(this.selectClass_)) {
- this.focusItem(i + modifier);
- return;
- }
- }
- }
- this.focusItem(0);
- };
-
- $.Autocompleter.prototype.focusItem = function(item) {
- var $item, $items = this.getItems();
- if ($items.length) {
- $items.removeClass(this.selectClass_).removeClass(this.options.selectClass);
- if (typeof item === 'number') {
- if (item < 0) {
- item = 0;
- } else if (item >= $items.length) {
- item = $items.length - 1;
- }
- $item = $($items[item]);
- } else {
- $item = $(item);
- }
- if ($item) {
- $item.addClass(this.selectClass_).addClass(this.options.selectClass);
- }
- }
- };
-
- $.Autocompleter.prototype.selectCurrent = function() {
- var $item = $('li.' + this.selectClass_, this.dom.$results);
- if ($item.length === 1) {
- this.selectItem($item);
- } else {
- this.deactivate(false);
- }
- };
-
- $.Autocompleter.prototype.selectItem = function($li) {
- var value = $li.data('value');
- var data = $li.data('data');
- var displayValue = this.displayValue(value, data);
- var processedDisplayValue = this.beforeUseConverter(displayValue);
- this.lastProcessedValue_ = processedDisplayValue;
- this.lastSelectedValue_ = processedDisplayValue;
- var d = this.getDelimiterOffsets();
- var delimiter = this.options.delimiterChar;
- var elem = this.dom.$elem;
- var extraCaretPos = 0;
- if ( this.options.useDelimiter ) {
- // if there is a preceding delimiter, add a space after the delimiter
- if ( elem.val().substring(d.start-1, d.start) == delimiter && delimiter != ' ' ) {
- displayValue = ' ' + displayValue;
- }
- // if there is not already a delimiter trailing this value, add it
- if ( elem.val().substring(d.end, d.end+1) != delimiter && this.lastKeyPressed_ != this.options.delimiterKeyCode ) {
- displayValue = displayValue + delimiter;
- } else {
- // move the cursor after the existing trailing delimiter
- extraCaretPos = 1;
- }
- }
- this.setValue(displayValue);
- this.setCaret(d.start + displayValue.length + extraCaretPos);
- this.callHook('onItemSelect', { value: value, data: data });
- this.deactivate(true);
- elem.focus();
- };
-
- $.Autocompleter.prototype.displayValue = function(value, data) {
- if ($.isFunction(this.options.displayValue)) {
- return this.options.displayValue(value, data);
- }
- return value;
- };
-
- $.Autocompleter.prototype.hideResults = function() {
- this.dom.$results.hide();
- };
-
- $.Autocompleter.prototype.deactivate = function(finish) {
- if (this.finishTimeout_) {
- clearTimeout(this.finishTimeout_);
- }
- if (this.keyTimeout_) {
- clearTimeout(this.keyTimeout_);
- }
- if (finish) {
- if (this.lastProcessedValue_ !== this.lastSelectedValue_) {
- if (this.options.mustMatch) {
- this.setValue('');
- }
- this.callHook('onNoMatch');
- }
- if (this.active_) {
- this.callHook('onFinish');
- }
- this.lastKeyPressed_ = null;
- this.lastProcessedValue_ = null;
- this.lastSelectedValue_ = null;
- this.active_ = false;
- }
- this.hideResults();
- };
-
- $.Autocompleter.prototype.selectRange = function(start, end) {
- var input = this.dom.$elem.get(0);
- if (input.setSelectionRange) {
- input.focus();
- input.setSelectionRange(start, end);
- } else if (input.createTextRange) {
- var range = input.createTextRange();
- range.collapse(true);
- range.moveEnd('character', end);
- range.moveStart('character', start);
- range.select();
- }
- };
-
- /**
- * Move caret to position
- * @param {Number} pos
- */
- $.Autocompleter.prototype.setCaret = function(pos) {
- this.selectRange(pos, pos);
- };
-
- /**
- * Get caret position
- */
- $.Autocompleter.prototype.getCaret = function() {
- var $elem = this.dom.$elem;
- var elem = $elem[0];
- var val, selection, range, start, end, stored_range;
- if (elem.createTextRange) { // IE
- selection = document.selection;
- if (elem.tagName.toLowerCase() != 'textarea') {
- val = $elem.val();
- range = selection.createRange().duplicate();
- range.moveEnd('character', val.length);
- if (range.text === '') {
- start = val.length;
- } else {
- start = val.lastIndexOf(range.text);
- }
- range = selection.createRange().duplicate();
- range.moveStart('character', -val.length);
- end = range.text.length;
- } else {
- range = selection.createRange();
- stored_range = range.duplicate();
- stored_range.moveToElementText(elem);
- stored_range.setEndPoint('EndToEnd', range);
- start = stored_range.text.length - range.text.length;
- end = start + range.text.length;
- }
- } else {
- start = $elem[0].selectionStart;
- end = $elem[0].selectionEnd;
- }
- return {
- start: start,
- end: end
- };
- };
-
- /**
- * Set the value that is currently being autocompleted
- * @param {String} value
- */
- $.Autocompleter.prototype.setValue = function(value) {
- if ( this.options.useDelimiter ) {
- // set the substring between the current delimiters
- var val = this.dom.$elem.val();
- var d = this.getDelimiterOffsets();
- var preVal = val.substring(0, d.start);
- var postVal = val.substring(d.end);
- value = preVal + value + postVal;
- }
- this.dom.$elem.val(value);
- };
-
- /**
- * Get the value currently being autocompleted
- * @param {String} value
- */
- $.Autocompleter.prototype.getValue = function(value) {
- if ( this.options.useDelimiter ) {
- var d = this.getDelimiterOffsets();
- return value.substring(d.start, d.end).trim();
- } else {
- return value;
- }
- };
-
- /**
- * Get the offsets of the value currently being autocompleted
- */
- $.Autocompleter.prototype.getDelimiterOffsets = function() {
- var val = this.dom.$elem.val();
- if ( this.options.useDelimiter ) {
- var preCaretVal = val.substring(0, this.getCaret().start);
- var start = preCaretVal.lastIndexOf(this.options.delimiterChar) + 1;
- var postCaretVal = val.substring(this.getCaret().start);
- var end = postCaretVal.indexOf(this.options.delimiterChar);
- if ( end == -1 ) end = val.length;
- end += this.getCaret().start;
- } else {
- start = 0;
- end = val.length;
- }
- return {
- start: start,
- end: end
- };
- };
-
-})((typeof window.jQuery == 'undefined' && typeof window.django != 'undefined')? django.jQuery : jQuery);
diff --git a/backend/staticfiles/django_extensions/js/jquery.autocomplete.js.gz b/backend/staticfiles/django_extensions/js/jquery.autocomplete.js.gz
deleted file mode 100644
index 829b9dd85..000000000
Binary files a/backend/staticfiles/django_extensions/js/jquery.autocomplete.js.gz and /dev/null differ
diff --git a/backend/staticfiles/django_extensions/js/jquery.bgiframe.68c9c05397e9.js b/backend/staticfiles/django_extensions/js/jquery.bgiframe.68c9c05397e9.js
deleted file mode 100644
index 1a452ba00..000000000
--- a/backend/staticfiles/django_extensions/js/jquery.bgiframe.68c9c05397e9.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*! Copyright (c) 2010 Brandon Aaron (http://brandon.aaron.sh/)
- * Licensed under the MIT License (LICENSE.txt).
- *
- * Version 2.1.2
- */
-
-(function($){
-
-$.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) {
- s = $.extend({
- top : 'auto', // auto == .currentStyle.borderTopWidth
- left : 'auto', // auto == .currentStyle.borderLeftWidth
- width : 'auto', // auto == offsetWidth
- height : 'auto', // auto == offsetHeight
- opacity : true,
- src : 'javascript:false;'
- }, s);
- var html = '';
- return this.each(function() {
- if ( $(this).children('iframe.bgiframe').length === 0 )
- this.insertBefore( document.createElement(html), this.firstChild );
- });
-} : function() { return this; });
-
-// old alias
-$.fn.bgIframe = $.fn.bgiframe;
-
-function prop(n) {
- return n && n.constructor === Number ? n + 'px' : n;
-}
-
-})((typeof window.jQuery == 'undefined' && typeof window.django != 'undefined') ? django.jQuery : jQuery);
diff --git a/backend/staticfiles/django_extensions/js/jquery.bgiframe.68c9c05397e9.js.gz b/backend/staticfiles/django_extensions/js/jquery.bgiframe.68c9c05397e9.js.gz
deleted file mode 100644
index 30c043706..000000000
Binary files a/backend/staticfiles/django_extensions/js/jquery.bgiframe.68c9c05397e9.js.gz and /dev/null differ
diff --git a/backend/staticfiles/django_extensions/js/jquery.bgiframe.js b/backend/staticfiles/django_extensions/js/jquery.bgiframe.js
deleted file mode 100644
index 1a452ba00..000000000
--- a/backend/staticfiles/django_extensions/js/jquery.bgiframe.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*! Copyright (c) 2010 Brandon Aaron (http://brandon.aaron.sh/)
- * Licensed under the MIT License (LICENSE.txt).
- *
- * Version 2.1.2
- */
-
-(function($){
-
-$.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) {
- s = $.extend({
- top : 'auto', // auto == .currentStyle.borderTopWidth
- left : 'auto', // auto == .currentStyle.borderLeftWidth
- width : 'auto', // auto == offsetWidth
- height : 'auto', // auto == offsetHeight
- opacity : true,
- src : 'javascript:false;'
- }, s);
- var html = '';
- return this.each(function() {
- if ( $(this).children('iframe.bgiframe').length === 0 )
- this.insertBefore( document.createElement(html), this.firstChild );
- });
-} : function() { return this; });
-
-// old alias
-$.fn.bgIframe = $.fn.bgiframe;
-
-function prop(n) {
- return n && n.constructor === Number ? n + 'px' : n;
-}
-
-})((typeof window.jQuery == 'undefined' && typeof window.django != 'undefined') ? django.jQuery : jQuery);
diff --git a/backend/staticfiles/django_extensions/js/jquery.bgiframe.js.gz b/backend/staticfiles/django_extensions/js/jquery.bgiframe.js.gz
deleted file mode 100644
index 30c043706..000000000
Binary files a/backend/staticfiles/django_extensions/js/jquery.bgiframe.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/README b/backend/staticfiles/drf-yasg/README
deleted file mode 100644
index eebf91aa9..000000000
--- a/backend/staticfiles/drf-yasg/README
+++ /dev/null
@@ -1,18 +0,0 @@
-Information about external resources
-
-The following files are taken from external resources or trees.
-
-Files: insQ.js
- insQ.min.js
-License: MIT
-Copyright: Zbyszek Tenerowicz
- Eryk Napierała
- Askar Yusupov
- Dan Dascalescu
-Source: https://github.com/naugtur/insertionQuery v1.0.3
-
-Files: immutable.js
- immutable.min.js
-License: MIT
-Copyright: 2014-present, Facebook, Inc
-Source: https://github.com/immutable-js/immutable-js/releases/tag/v3.8.2
diff --git a/backend/staticfiles/drf-yasg/README.723ffa086d8b b/backend/staticfiles/drf-yasg/README.723ffa086d8b
deleted file mode 100644
index eebf91aa9..000000000
--- a/backend/staticfiles/drf-yasg/README.723ffa086d8b
+++ /dev/null
@@ -1,18 +0,0 @@
-Information about external resources
-
-The following files are taken from external resources or trees.
-
-Files: insQ.js
- insQ.min.js
-License: MIT
-Copyright: Zbyszek Tenerowicz
- Eryk Napierała
- Askar Yusupov
- Dan Dascalescu
-Source: https://github.com/naugtur/insertionQuery v1.0.3
-
-Files: immutable.js
- immutable.min.js
-License: MIT
-Copyright: 2014-present, Facebook, Inc
-Source: https://github.com/immutable-js/immutable-js/releases/tag/v3.8.2
diff --git a/backend/staticfiles/drf-yasg/README.723ffa086d8b.gz b/backend/staticfiles/drf-yasg/README.723ffa086d8b.gz
deleted file mode 100644
index 9b8e0e409..000000000
Binary files a/backend/staticfiles/drf-yasg/README.723ffa086d8b.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/README.gz b/backend/staticfiles/drf-yasg/README.gz
deleted file mode 100644
index 9b8e0e409..000000000
Binary files a/backend/staticfiles/drf-yasg/README.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/immutable.37fd83058fde.js b/backend/staticfiles/drf-yasg/immutable.37fd83058fde.js
deleted file mode 100644
index 0e2ac973d..000000000
--- a/backend/staticfiles/drf-yasg/immutable.37fd83058fde.js
+++ /dev/null
@@ -1,4977 +0,0 @@
-/**
- * Copyright (c) 2014-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
- typeof define === 'function' && define.amd ? define(factory) :
- (global.Immutable = factory());
-}(this, function () { 'use strict';var SLICE$0 = Array.prototype.slice;
-
- function createClass(ctor, superClass) {
- if (superClass) {
- ctor.prototype = Object.create(superClass.prototype);
- }
- ctor.prototype.constructor = ctor;
- }
-
- function Iterable(value) {
- return isIterable(value) ? value : Seq(value);
- }
-
-
- createClass(KeyedIterable, Iterable);
- function KeyedIterable(value) {
- return isKeyed(value) ? value : KeyedSeq(value);
- }
-
-
- createClass(IndexedIterable, Iterable);
- function IndexedIterable(value) {
- return isIndexed(value) ? value : IndexedSeq(value);
- }
-
-
- createClass(SetIterable, Iterable);
- function SetIterable(value) {
- return isIterable(value) && !isAssociative(value) ? value : SetSeq(value);
- }
-
-
-
- function isIterable(maybeIterable) {
- return !!(maybeIterable && maybeIterable[IS_ITERABLE_SENTINEL]);
- }
-
- function isKeyed(maybeKeyed) {
- return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL]);
- }
-
- function isIndexed(maybeIndexed) {
- return !!(maybeIndexed && maybeIndexed[IS_INDEXED_SENTINEL]);
- }
-
- function isAssociative(maybeAssociative) {
- return isKeyed(maybeAssociative) || isIndexed(maybeAssociative);
- }
-
- function isOrdered(maybeOrdered) {
- return !!(maybeOrdered && maybeOrdered[IS_ORDERED_SENTINEL]);
- }
-
- Iterable.isIterable = isIterable;
- Iterable.isKeyed = isKeyed;
- Iterable.isIndexed = isIndexed;
- Iterable.isAssociative = isAssociative;
- Iterable.isOrdered = isOrdered;
-
- Iterable.Keyed = KeyedIterable;
- Iterable.Indexed = IndexedIterable;
- Iterable.Set = SetIterable;
-
-
- var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
- var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
- var IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@';
- var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
-
- // Used for setting prototype methods that IE8 chokes on.
- var DELETE = 'delete';
-
- // Constants describing the size of trie nodes.
- var SHIFT = 5; // Resulted in best performance after ______?
- var SIZE = 1 << SHIFT;
- var MASK = SIZE - 1;
-
- // A consistent shared value representing "not set" which equals nothing other
- // than itself, and nothing that could be provided externally.
- var NOT_SET = {};
-
- // Boolean references, Rough equivalent of `bool &`.
- var CHANGE_LENGTH = { value: false };
- var DID_ALTER = { value: false };
-
- function MakeRef(ref) {
- ref.value = false;
- return ref;
- }
-
- function SetRef(ref) {
- ref && (ref.value = true);
- }
-
- // A function which returns a value representing an "owner" for transient writes
- // to tries. The return value will only ever equal itself, and will not equal
- // the return of any subsequent call of this function.
- function OwnerID() {}
-
- // http://jsperf.com/copy-array-inline
- function arrCopy(arr, offset) {
- offset = offset || 0;
- var len = Math.max(0, arr.length - offset);
- var newArr = new Array(len);
- for (var ii = 0; ii < len; ii++) {
- newArr[ii] = arr[ii + offset];
- }
- return newArr;
- }
-
- function ensureSize(iter) {
- if (iter.size === undefined) {
- iter.size = iter.__iterate(returnTrue);
- }
- return iter.size;
- }
-
- function wrapIndex(iter, index) {
- // This implements "is array index" which the ECMAString spec defines as:
- //
- // A String property name P is an array index if and only if
- // ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal
- // to 2^32−1.
- //
- // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects
- if (typeof index !== 'number') {
- var uint32Index = index >>> 0; // N >>> 0 is shorthand for ToUint32
- if ('' + uint32Index !== index || uint32Index === 4294967295) {
- return NaN;
- }
- index = uint32Index;
- }
- return index < 0 ? ensureSize(iter) + index : index;
- }
-
- function returnTrue() {
- return true;
- }
-
- function wholeSlice(begin, end, size) {
- return (begin === 0 || (size !== undefined && begin <= -size)) &&
- (end === undefined || (size !== undefined && end >= size));
- }
-
- function resolveBegin(begin, size) {
- return resolveIndex(begin, size, 0);
- }
-
- function resolveEnd(end, size) {
- return resolveIndex(end, size, size);
- }
-
- function resolveIndex(index, size, defaultIndex) {
- return index === undefined ?
- defaultIndex :
- index < 0 ?
- Math.max(0, size + index) :
- size === undefined ?
- index :
- Math.min(size, index);
- }
-
- /* global Symbol */
-
- var ITERATE_KEYS = 0;
- var ITERATE_VALUES = 1;
- var ITERATE_ENTRIES = 2;
-
- var REAL_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
-
- var ITERATOR_SYMBOL = REAL_ITERATOR_SYMBOL || FAUX_ITERATOR_SYMBOL;
-
-
- function Iterator(next) {
- this.next = next;
- }
-
- Iterator.prototype.toString = function() {
- return '[Iterator]';
- };
-
-
- Iterator.KEYS = ITERATE_KEYS;
- Iterator.VALUES = ITERATE_VALUES;
- Iterator.ENTRIES = ITERATE_ENTRIES;
-
- Iterator.prototype.inspect =
- Iterator.prototype.toSource = function () { return this.toString(); }
- Iterator.prototype[ITERATOR_SYMBOL] = function () {
- return this;
- };
-
-
- function iteratorValue(type, k, v, iteratorResult) {
- var value = type === 0 ? k : type === 1 ? v : [k, v];
- iteratorResult ? (iteratorResult.value = value) : (iteratorResult = {
- value: value, done: false
- });
- return iteratorResult;
- }
-
- function iteratorDone() {
- return { value: undefined, done: true };
- }
-
- function hasIterator(maybeIterable) {
- return !!getIteratorFn(maybeIterable);
- }
-
- function isIterator(maybeIterator) {
- return maybeIterator && typeof maybeIterator.next === 'function';
- }
-
- function getIterator(iterable) {
- var iteratorFn = getIteratorFn(iterable);
- return iteratorFn && iteratorFn.call(iterable);
- }
-
- function getIteratorFn(iterable) {
- var iteratorFn = iterable && (
- (REAL_ITERATOR_SYMBOL && iterable[REAL_ITERATOR_SYMBOL]) ||
- iterable[FAUX_ITERATOR_SYMBOL]
- );
- if (typeof iteratorFn === 'function') {
- return iteratorFn;
- }
- }
-
- function isArrayLike(value) {
- return value && typeof value.length === 'number';
- }
-
- createClass(Seq, Iterable);
- function Seq(value) {
- return value === null || value === undefined ? emptySequence() :
- isIterable(value) ? value.toSeq() : seqFromValue(value);
- }
-
- Seq.of = function(/*...values*/) {
- return Seq(arguments);
- };
-
- Seq.prototype.toSeq = function() {
- return this;
- };
-
- Seq.prototype.toString = function() {
- return this.__toString('Seq {', '}');
- };
-
- Seq.prototype.cacheResult = function() {
- if (!this._cache && this.__iterateUncached) {
- this._cache = this.entrySeq().toArray();
- this.size = this._cache.length;
- }
- return this;
- };
-
- // abstract __iterateUncached(fn, reverse)
-
- Seq.prototype.__iterate = function(fn, reverse) {
- return seqIterate(this, fn, reverse, true);
- };
-
- // abstract __iteratorUncached(type, reverse)
-
- Seq.prototype.__iterator = function(type, reverse) {
- return seqIterator(this, type, reverse, true);
- };
-
-
-
- createClass(KeyedSeq, Seq);
- function KeyedSeq(value) {
- return value === null || value === undefined ?
- emptySequence().toKeyedSeq() :
- isIterable(value) ?
- (isKeyed(value) ? value.toSeq() : value.fromEntrySeq()) :
- keyedSeqFromValue(value);
- }
-
- KeyedSeq.prototype.toKeyedSeq = function() {
- return this;
- };
-
-
-
- createClass(IndexedSeq, Seq);
- function IndexedSeq(value) {
- return value === null || value === undefined ? emptySequence() :
- !isIterable(value) ? indexedSeqFromValue(value) :
- isKeyed(value) ? value.entrySeq() : value.toIndexedSeq();
- }
-
- IndexedSeq.of = function(/*...values*/) {
- return IndexedSeq(arguments);
- };
-
- IndexedSeq.prototype.toIndexedSeq = function() {
- return this;
- };
-
- IndexedSeq.prototype.toString = function() {
- return this.__toString('Seq [', ']');
- };
-
- IndexedSeq.prototype.__iterate = function(fn, reverse) {
- return seqIterate(this, fn, reverse, false);
- };
-
- IndexedSeq.prototype.__iterator = function(type, reverse) {
- return seqIterator(this, type, reverse, false);
- };
-
-
-
- createClass(SetSeq, Seq);
- function SetSeq(value) {
- return (
- value === null || value === undefined ? emptySequence() :
- !isIterable(value) ? indexedSeqFromValue(value) :
- isKeyed(value) ? value.entrySeq() : value
- ).toSetSeq();
- }
-
- SetSeq.of = function(/*...values*/) {
- return SetSeq(arguments);
- };
-
- SetSeq.prototype.toSetSeq = function() {
- return this;
- };
-
-
-
- Seq.isSeq = isSeq;
- Seq.Keyed = KeyedSeq;
- Seq.Set = SetSeq;
- Seq.Indexed = IndexedSeq;
-
- var IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@';
-
- Seq.prototype[IS_SEQ_SENTINEL] = true;
-
-
-
- createClass(ArraySeq, IndexedSeq);
- function ArraySeq(array) {
- this._array = array;
- this.size = array.length;
- }
-
- ArraySeq.prototype.get = function(index, notSetValue) {
- return this.has(index) ? this._array[wrapIndex(this, index)] : notSetValue;
- };
-
- ArraySeq.prototype.__iterate = function(fn, reverse) {
- var array = this._array;
- var maxIndex = array.length - 1;
- for (var ii = 0; ii <= maxIndex; ii++) {
- if (fn(array[reverse ? maxIndex - ii : ii], ii, this) === false) {
- return ii + 1;
- }
- }
- return ii;
- };
-
- ArraySeq.prototype.__iterator = function(type, reverse) {
- var array = this._array;
- var maxIndex = array.length - 1;
- var ii = 0;
- return new Iterator(function()
- {return ii > maxIndex ?
- iteratorDone() :
- iteratorValue(type, ii, array[reverse ? maxIndex - ii++ : ii++])}
- );
- };
-
-
-
- createClass(ObjectSeq, KeyedSeq);
- function ObjectSeq(object) {
- var keys = Object.keys(object);
- this._object = object;
- this._keys = keys;
- this.size = keys.length;
- }
-
- ObjectSeq.prototype.get = function(key, notSetValue) {
- if (notSetValue !== undefined && !this.has(key)) {
- return notSetValue;
- }
- return this._object[key];
- };
-
- ObjectSeq.prototype.has = function(key) {
- return this._object.hasOwnProperty(key);
- };
-
- ObjectSeq.prototype.__iterate = function(fn, reverse) {
- var object = this._object;
- var keys = this._keys;
- var maxIndex = keys.length - 1;
- for (var ii = 0; ii <= maxIndex; ii++) {
- var key = keys[reverse ? maxIndex - ii : ii];
- if (fn(object[key], key, this) === false) {
- return ii + 1;
- }
- }
- return ii;
- };
-
- ObjectSeq.prototype.__iterator = function(type, reverse) {
- var object = this._object;
- var keys = this._keys;
- var maxIndex = keys.length - 1;
- var ii = 0;
- return new Iterator(function() {
- var key = keys[reverse ? maxIndex - ii : ii];
- return ii++ > maxIndex ?
- iteratorDone() :
- iteratorValue(type, key, object[key]);
- });
- };
-
- ObjectSeq.prototype[IS_ORDERED_SENTINEL] = true;
-
-
- createClass(IterableSeq, IndexedSeq);
- function IterableSeq(iterable) {
- this._iterable = iterable;
- this.size = iterable.length || iterable.size;
- }
-
- IterableSeq.prototype.__iterateUncached = function(fn, reverse) {
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var iterable = this._iterable;
- var iterator = getIterator(iterable);
- var iterations = 0;
- if (isIterator(iterator)) {
- var step;
- while (!(step = iterator.next()).done) {
- if (fn(step.value, iterations++, this) === false) {
- break;
- }
- }
- }
- return iterations;
- };
-
- IterableSeq.prototype.__iteratorUncached = function(type, reverse) {
- if (reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- var iterable = this._iterable;
- var iterator = getIterator(iterable);
- if (!isIterator(iterator)) {
- return new Iterator(iteratorDone);
- }
- var iterations = 0;
- return new Iterator(function() {
- var step = iterator.next();
- return step.done ? step : iteratorValue(type, iterations++, step.value);
- });
- };
-
-
-
- createClass(IteratorSeq, IndexedSeq);
- function IteratorSeq(iterator) {
- this._iterator = iterator;
- this._iteratorCache = [];
- }
-
- IteratorSeq.prototype.__iterateUncached = function(fn, reverse) {
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var iterator = this._iterator;
- var cache = this._iteratorCache;
- var iterations = 0;
- while (iterations < cache.length) {
- if (fn(cache[iterations], iterations++, this) === false) {
- return iterations;
- }
- }
- var step;
- while (!(step = iterator.next()).done) {
- var val = step.value;
- cache[iterations] = val;
- if (fn(val, iterations++, this) === false) {
- break;
- }
- }
- return iterations;
- };
-
- IteratorSeq.prototype.__iteratorUncached = function(type, reverse) {
- if (reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- var iterator = this._iterator;
- var cache = this._iteratorCache;
- var iterations = 0;
- return new Iterator(function() {
- if (iterations >= cache.length) {
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- cache[iterations] = step.value;
- }
- return iteratorValue(type, iterations, cache[iterations++]);
- });
- };
-
-
-
-
- // # pragma Helper functions
-
- function isSeq(maybeSeq) {
- return !!(maybeSeq && maybeSeq[IS_SEQ_SENTINEL]);
- }
-
- var EMPTY_SEQ;
-
- function emptySequence() {
- return EMPTY_SEQ || (EMPTY_SEQ = new ArraySeq([]));
- }
-
- function keyedSeqFromValue(value) {
- var seq =
- Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :
- isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :
- hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :
- typeof value === 'object' ? new ObjectSeq(value) :
- undefined;
- if (!seq) {
- throw new TypeError(
- 'Expected Array or iterable object of [k, v] entries, '+
- 'or keyed object: ' + value
- );
- }
- return seq;
- }
-
- function indexedSeqFromValue(value) {
- var seq = maybeIndexedSeqFromValue(value);
- if (!seq) {
- throw new TypeError(
- 'Expected Array or iterable object of values: ' + value
- );
- }
- return seq;
- }
-
- function seqFromValue(value) {
- var seq = maybeIndexedSeqFromValue(value) ||
- (typeof value === 'object' && new ObjectSeq(value));
- if (!seq) {
- throw new TypeError(
- 'Expected Array or iterable object of values, or keyed object: ' + value
- );
- }
- return seq;
- }
-
- function maybeIndexedSeqFromValue(value) {
- return (
- isArrayLike(value) ? new ArraySeq(value) :
- isIterator(value) ? new IteratorSeq(value) :
- hasIterator(value) ? new IterableSeq(value) :
- undefined
- );
- }
-
- function seqIterate(seq, fn, reverse, useKeys) {
- var cache = seq._cache;
- if (cache) {
- var maxIndex = cache.length - 1;
- for (var ii = 0; ii <= maxIndex; ii++) {
- var entry = cache[reverse ? maxIndex - ii : ii];
- if (fn(entry[1], useKeys ? entry[0] : ii, seq) === false) {
- return ii + 1;
- }
- }
- return ii;
- }
- return seq.__iterateUncached(fn, reverse);
- }
-
- function seqIterator(seq, type, reverse, useKeys) {
- var cache = seq._cache;
- if (cache) {
- var maxIndex = cache.length - 1;
- var ii = 0;
- return new Iterator(function() {
- var entry = cache[reverse ? maxIndex - ii : ii];
- return ii++ > maxIndex ?
- iteratorDone() :
- iteratorValue(type, useKeys ? entry[0] : ii - 1, entry[1]);
- });
- }
- return seq.__iteratorUncached(type, reverse);
- }
-
- function fromJS(json, converter) {
- return converter ?
- fromJSWith(converter, json, '', {'': json}) :
- fromJSDefault(json);
- }
-
- function fromJSWith(converter, json, key, parentJSON) {
- if (Array.isArray(json)) {
- return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k) {return fromJSWith(converter, v, k, json)}));
- }
- if (isPlainObj(json)) {
- return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k) {return fromJSWith(converter, v, k, json)}));
- }
- return json;
- }
-
- function fromJSDefault(json) {
- if (Array.isArray(json)) {
- return IndexedSeq(json).map(fromJSDefault).toList();
- }
- if (isPlainObj(json)) {
- return KeyedSeq(json).map(fromJSDefault).toMap();
- }
- return json;
- }
-
- function isPlainObj(value) {
- return value && (value.constructor === Object || value.constructor === undefined);
- }
-
- /**
- * An extension of the "same-value" algorithm as [described for use by ES6 Map
- * and Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Key_equality)
- *
- * NaN is considered the same as NaN, however -0 and 0 are considered the same
- * value, which is different from the algorithm described by
- * [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
- *
- * This is extended further to allow Objects to describe the values they
- * represent, by way of `valueOf` or `equals` (and `hashCode`).
- *
- * Note: because of this extension, the key equality of Immutable.Map and the
- * value equality of Immutable.Set will differ from ES6 Map and Set.
- *
- * ### Defining custom values
- *
- * The easiest way to describe the value an object represents is by implementing
- * `valueOf`. For example, `Date` represents a value by returning a unix
- * timestamp for `valueOf`:
- *
- * var date1 = new Date(1234567890000); // Fri Feb 13 2009 ...
- * var date2 = new Date(1234567890000);
- * date1.valueOf(); // 1234567890000
- * assert( date1 !== date2 );
- * assert( Immutable.is( date1, date2 ) );
- *
- * Note: overriding `valueOf` may have other implications if you use this object
- * where JavaScript expects a primitive, such as implicit string coercion.
- *
- * For more complex types, especially collections, implementing `valueOf` may
- * not be performant. An alternative is to implement `equals` and `hashCode`.
- *
- * `equals` takes another object, presumably of similar type, and returns true
- * if the it is equal. Equality is symmetrical, so the same result should be
- * returned if this and the argument are flipped.
- *
- * assert( a.equals(b) === b.equals(a) );
- *
- * `hashCode` returns a 32bit integer number representing the object which will
- * be used to determine how to store the value object in a Map or Set. You must
- * provide both or neither methods, one must not exist without the other.
- *
- * Also, an important relationship between these methods must be upheld: if two
- * values are equal, they *must* return the same hashCode. If the values are not
- * equal, they might have the same hashCode; this is called a hash collision,
- * and while undesirable for performance reasons, it is acceptable.
- *
- * if (a.equals(b)) {
- * assert( a.hashCode() === b.hashCode() );
- * }
- *
- * All Immutable collections implement `equals` and `hashCode`.
- *
- */
- function is(valueA, valueB) {
- if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) {
- return true;
- }
- if (!valueA || !valueB) {
- return false;
- }
- if (typeof valueA.valueOf === 'function' &&
- typeof valueB.valueOf === 'function') {
- valueA = valueA.valueOf();
- valueB = valueB.valueOf();
- if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) {
- return true;
- }
- if (!valueA || !valueB) {
- return false;
- }
- }
- if (typeof valueA.equals === 'function' &&
- typeof valueB.equals === 'function' &&
- valueA.equals(valueB)) {
- return true;
- }
- return false;
- }
-
- function deepEqual(a, b) {
- if (a === b) {
- return true;
- }
-
- if (
- !isIterable(b) ||
- a.size !== undefined && b.size !== undefined && a.size !== b.size ||
- a.__hash !== undefined && b.__hash !== undefined && a.__hash !== b.__hash ||
- isKeyed(a) !== isKeyed(b) ||
- isIndexed(a) !== isIndexed(b) ||
- isOrdered(a) !== isOrdered(b)
- ) {
- return false;
- }
-
- if (a.size === 0 && b.size === 0) {
- return true;
- }
-
- var notAssociative = !isAssociative(a);
-
- if (isOrdered(a)) {
- var entries = a.entries();
- return b.every(function(v, k) {
- var entry = entries.next().value;
- return entry && is(entry[1], v) && (notAssociative || is(entry[0], k));
- }) && entries.next().done;
- }
-
- var flipped = false;
-
- if (a.size === undefined) {
- if (b.size === undefined) {
- if (typeof a.cacheResult === 'function') {
- a.cacheResult();
- }
- } else {
- flipped = true;
- var _ = a;
- a = b;
- b = _;
- }
- }
-
- var allEqual = true;
- var bSize = b.__iterate(function(v, k) {
- if (notAssociative ? !a.has(v) :
- flipped ? !is(v, a.get(k, NOT_SET)) : !is(a.get(k, NOT_SET), v)) {
- allEqual = false;
- return false;
- }
- });
-
- return allEqual && a.size === bSize;
- }
-
- createClass(Repeat, IndexedSeq);
-
- function Repeat(value, times) {
- if (!(this instanceof Repeat)) {
- return new Repeat(value, times);
- }
- this._value = value;
- this.size = times === undefined ? Infinity : Math.max(0, times);
- if (this.size === 0) {
- if (EMPTY_REPEAT) {
- return EMPTY_REPEAT;
- }
- EMPTY_REPEAT = this;
- }
- }
-
- Repeat.prototype.toString = function() {
- if (this.size === 0) {
- return 'Repeat []';
- }
- return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';
- };
-
- Repeat.prototype.get = function(index, notSetValue) {
- return this.has(index) ? this._value : notSetValue;
- };
-
- Repeat.prototype.includes = function(searchValue) {
- return is(this._value, searchValue);
- };
-
- Repeat.prototype.slice = function(begin, end) {
- var size = this.size;
- return wholeSlice(begin, end, size) ? this :
- new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));
- };
-
- Repeat.prototype.reverse = function() {
- return this;
- };
-
- Repeat.prototype.indexOf = function(searchValue) {
- if (is(this._value, searchValue)) {
- return 0;
- }
- return -1;
- };
-
- Repeat.prototype.lastIndexOf = function(searchValue) {
- if (is(this._value, searchValue)) {
- return this.size;
- }
- return -1;
- };
-
- Repeat.prototype.__iterate = function(fn, reverse) {
- for (var ii = 0; ii < this.size; ii++) {
- if (fn(this._value, ii, this) === false) {
- return ii + 1;
- }
- }
- return ii;
- };
-
- Repeat.prototype.__iterator = function(type, reverse) {var this$0 = this;
- var ii = 0;
- return new Iterator(function()
- {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value) : iteratorDone()}
- );
- };
-
- Repeat.prototype.equals = function(other) {
- return other instanceof Repeat ?
- is(this._value, other._value) :
- deepEqual(other);
- };
-
-
- var EMPTY_REPEAT;
-
- function invariant(condition, error) {
- if (!condition) throw new Error(error);
- }
-
- createClass(Range, IndexedSeq);
-
- function Range(start, end, step) {
- if (!(this instanceof Range)) {
- return new Range(start, end, step);
- }
- invariant(step !== 0, 'Cannot step a Range by 0');
- start = start || 0;
- if (end === undefined) {
- end = Infinity;
- }
- step = step === undefined ? 1 : Math.abs(step);
- if (end < start) {
- step = -step;
- }
- this._start = start;
- this._end = end;
- this._step = step;
- this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1);
- if (this.size === 0) {
- if (EMPTY_RANGE) {
- return EMPTY_RANGE;
- }
- EMPTY_RANGE = this;
- }
- }
-
- Range.prototype.toString = function() {
- if (this.size === 0) {
- return 'Range []';
- }
- return 'Range [ ' +
- this._start + '...' + this._end +
- (this._step !== 1 ? ' by ' + this._step : '') +
- ' ]';
- };
-
- Range.prototype.get = function(index, notSetValue) {
- return this.has(index) ?
- this._start + wrapIndex(this, index) * this._step :
- notSetValue;
- };
-
- Range.prototype.includes = function(searchValue) {
- var possibleIndex = (searchValue - this._start) / this._step;
- return possibleIndex >= 0 &&
- possibleIndex < this.size &&
- possibleIndex === Math.floor(possibleIndex);
- };
-
- Range.prototype.slice = function(begin, end) {
- if (wholeSlice(begin, end, this.size)) {
- return this;
- }
- begin = resolveBegin(begin, this.size);
- end = resolveEnd(end, this.size);
- if (end <= begin) {
- return new Range(0, 0);
- }
- return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);
- };
-
- Range.prototype.indexOf = function(searchValue) {
- var offsetValue = searchValue - this._start;
- if (offsetValue % this._step === 0) {
- var index = offsetValue / this._step;
- if (index >= 0 && index < this.size) {
- return index
- }
- }
- return -1;
- };
-
- Range.prototype.lastIndexOf = function(searchValue) {
- return this.indexOf(searchValue);
- };
-
- Range.prototype.__iterate = function(fn, reverse) {
- var maxIndex = this.size - 1;
- var step = this._step;
- var value = reverse ? this._start + maxIndex * step : this._start;
- for (var ii = 0; ii <= maxIndex; ii++) {
- if (fn(value, ii, this) === false) {
- return ii + 1;
- }
- value += reverse ? -step : step;
- }
- return ii;
- };
-
- Range.prototype.__iterator = function(type, reverse) {
- var maxIndex = this.size - 1;
- var step = this._step;
- var value = reverse ? this._start + maxIndex * step : this._start;
- var ii = 0;
- return new Iterator(function() {
- var v = value;
- value += reverse ? -step : step;
- return ii > maxIndex ? iteratorDone() : iteratorValue(type, ii++, v);
- });
- };
-
- Range.prototype.equals = function(other) {
- return other instanceof Range ?
- this._start === other._start &&
- this._end === other._end &&
- this._step === other._step :
- deepEqual(this, other);
- };
-
-
- var EMPTY_RANGE;
-
- createClass(Collection, Iterable);
- function Collection() {
- throw TypeError('Abstract');
- }
-
-
- createClass(KeyedCollection, Collection);function KeyedCollection() {}
-
- createClass(IndexedCollection, Collection);function IndexedCollection() {}
-
- createClass(SetCollection, Collection);function SetCollection() {}
-
-
- Collection.Keyed = KeyedCollection;
- Collection.Indexed = IndexedCollection;
- Collection.Set = SetCollection;
-
- var imul =
- typeof Math.imul === 'function' && Math.imul(0xffffffff, 2) === -2 ?
- Math.imul :
- function imul(a, b) {
- a = a | 0; // int
- b = b | 0; // int
- var c = a & 0xffff;
- var d = b & 0xffff;
- // Shift by 0 fixes the sign on the high part.
- return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int
- };
-
- // v8 has an optimization for storing 31-bit signed numbers.
- // Values which have either 00 or 11 as the high order bits qualify.
- // This function drops the highest order bit in a signed number, maintaining
- // the sign bit.
- function smi(i32) {
- return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);
- }
-
- function hash(o) {
- if (o === false || o === null || o === undefined) {
- return 0;
- }
- if (typeof o.valueOf === 'function') {
- o = o.valueOf();
- if (o === false || o === null || o === undefined) {
- return 0;
- }
- }
- if (o === true) {
- return 1;
- }
- var type = typeof o;
- if (type === 'number') {
- if (o !== o || o === Infinity) {
- return 0;
- }
- var h = o | 0;
- if (h !== o) {
- h ^= o * 0xFFFFFFFF;
- }
- while (o > 0xFFFFFFFF) {
- o /= 0xFFFFFFFF;
- h ^= o;
- }
- return smi(h);
- }
- if (type === 'string') {
- return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o) : hashString(o);
- }
- if (typeof o.hashCode === 'function') {
- return o.hashCode();
- }
- if (type === 'object') {
- return hashJSObj(o);
- }
- if (typeof o.toString === 'function') {
- return hashString(o.toString());
- }
- throw new Error('Value type ' + type + ' cannot be hashed.');
- }
-
- function cachedHashString(string) {
- var hash = stringHashCache[string];
- if (hash === undefined) {
- hash = hashString(string);
- if (STRING_HASH_CACHE_SIZE === STRING_HASH_CACHE_MAX_SIZE) {
- STRING_HASH_CACHE_SIZE = 0;
- stringHashCache = {};
- }
- STRING_HASH_CACHE_SIZE++;
- stringHashCache[string] = hash;
- }
- return hash;
- }
-
- // http://jsperf.com/hashing-strings
- function hashString(string) {
- // This is the hash from JVM
- // The hash code for a string is computed as
- // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],
- // where s[i] is the ith character of the string and n is the length of
- // the string. We "mod" the result to make it between 0 (inclusive) and 2^31
- // (exclusive) by dropping high bits.
- var hash = 0;
- for (var ii = 0; ii < string.length; ii++) {
- hash = 31 * hash + string.charCodeAt(ii) | 0;
- }
- return smi(hash);
- }
-
- function hashJSObj(obj) {
- var hash;
- if (usingWeakMap) {
- hash = weakMap.get(obj);
- if (hash !== undefined) {
- return hash;
- }
- }
-
- hash = obj[UID_HASH_KEY];
- if (hash !== undefined) {
- return hash;
- }
-
- if (!canDefineProperty) {
- hash = obj.propertyIsEnumerable && obj.propertyIsEnumerable[UID_HASH_KEY];
- if (hash !== undefined) {
- return hash;
- }
-
- hash = getIENodeHash(obj);
- if (hash !== undefined) {
- return hash;
- }
- }
-
- hash = ++objHashUID;
- if (objHashUID & 0x40000000) {
- objHashUID = 0;
- }
-
- if (usingWeakMap) {
- weakMap.set(obj, hash);
- } else if (isExtensible !== undefined && isExtensible(obj) === false) {
- throw new Error('Non-extensible objects are not allowed as keys.');
- } else if (canDefineProperty) {
- Object.defineProperty(obj, UID_HASH_KEY, {
- 'enumerable': false,
- 'configurable': false,
- 'writable': false,
- 'value': hash
- });
- } else if (obj.propertyIsEnumerable !== undefined &&
- obj.propertyIsEnumerable === obj.constructor.prototype.propertyIsEnumerable) {
- // Since we can't define a non-enumerable property on the object
- // we'll hijack one of the less-used non-enumerable properties to
- // save our hash on it. Since this is a function it will not show up in
- // `JSON.stringify` which is what we want.
- obj.propertyIsEnumerable = function() {
- return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);
- };
- obj.propertyIsEnumerable[UID_HASH_KEY] = hash;
- } else if (obj.nodeType !== undefined) {
- // At this point we couldn't get the IE `uniqueID` to use as a hash
- // and we couldn't use a non-enumerable property to exploit the
- // dontEnum bug so we simply add the `UID_HASH_KEY` on the node
- // itself.
- obj[UID_HASH_KEY] = hash;
- } else {
- throw new Error('Unable to set a non-enumerable property on object.');
- }
-
- return hash;
- }
-
- // Get references to ES5 object methods.
- var isExtensible = Object.isExtensible;
-
- // True if Object.defineProperty works as expected. IE8 fails this test.
- var canDefineProperty = (function() {
- try {
- Object.defineProperty({}, '@', {});
- return true;
- } catch (e) {
- return false;
- }
- }());
-
- // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it
- // and avoid memory leaks from the IE cloneNode bug.
- function getIENodeHash(node) {
- if (node && node.nodeType > 0) {
- switch (node.nodeType) {
- case 1: // Element
- return node.uniqueID;
- case 9: // Document
- return node.documentElement && node.documentElement.uniqueID;
- }
- }
- }
-
- // If possible, use a WeakMap.
- var usingWeakMap = typeof WeakMap === 'function';
- var weakMap;
- if (usingWeakMap) {
- weakMap = new WeakMap();
- }
-
- var objHashUID = 0;
-
- var UID_HASH_KEY = '__immutablehash__';
- if (typeof Symbol === 'function') {
- UID_HASH_KEY = Symbol(UID_HASH_KEY);
- }
-
- var STRING_HASH_CACHE_MIN_STRLEN = 16;
- var STRING_HASH_CACHE_MAX_SIZE = 255;
- var STRING_HASH_CACHE_SIZE = 0;
- var stringHashCache = {};
-
- function assertNotInfinite(size) {
- invariant(
- size !== Infinity,
- 'Cannot perform this action with an infinite size.'
- );
- }
-
- createClass(Map, KeyedCollection);
-
- // @pragma Construction
-
- function Map(value) {
- return value === null || value === undefined ? emptyMap() :
- isMap(value) && !isOrdered(value) ? value :
- emptyMap().withMutations(function(map ) {
- var iter = KeyedIterable(value);
- assertNotInfinite(iter.size);
- iter.forEach(function(v, k) {return map.set(k, v)});
- });
- }
-
- Map.of = function() {var keyValues = SLICE$0.call(arguments, 0);
- return emptyMap().withMutations(function(map ) {
- for (var i = 0; i < keyValues.length; i += 2) {
- if (i + 1 >= keyValues.length) {
- throw new Error('Missing value for key: ' + keyValues[i]);
- }
- map.set(keyValues[i], keyValues[i + 1]);
- }
- });
- };
-
- Map.prototype.toString = function() {
- return this.__toString('Map {', '}');
- };
-
- // @pragma Access
-
- Map.prototype.get = function(k, notSetValue) {
- return this._root ?
- this._root.get(0, undefined, k, notSetValue) :
- notSetValue;
- };
-
- // @pragma Modification
-
- Map.prototype.set = function(k, v) {
- return updateMap(this, k, v);
- };
-
- Map.prototype.setIn = function(keyPath, v) {
- return this.updateIn(keyPath, NOT_SET, function() {return v});
- };
-
- Map.prototype.remove = function(k) {
- return updateMap(this, k, NOT_SET);
- };
-
- Map.prototype.deleteIn = function(keyPath) {
- return this.updateIn(keyPath, function() {return NOT_SET});
- };
-
- Map.prototype.update = function(k, notSetValue, updater) {
- return arguments.length === 1 ?
- k(this) :
- this.updateIn([k], notSetValue, updater);
- };
-
- Map.prototype.updateIn = function(keyPath, notSetValue, updater) {
- if (!updater) {
- updater = notSetValue;
- notSetValue = undefined;
- }
- var updatedValue = updateInDeepMap(
- this,
- forceIterator(keyPath),
- notSetValue,
- updater
- );
- return updatedValue === NOT_SET ? undefined : updatedValue;
- };
-
- Map.prototype.clear = function() {
- if (this.size === 0) {
- return this;
- }
- if (this.__ownerID) {
- this.size = 0;
- this._root = null;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return emptyMap();
- };
-
- // @pragma Composition
-
- Map.prototype.merge = function(/*...iters*/) {
- return mergeIntoMapWith(this, undefined, arguments);
- };
-
- Map.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return mergeIntoMapWith(this, merger, iters);
- };
-
- Map.prototype.mergeIn = function(keyPath) {var iters = SLICE$0.call(arguments, 1);
- return this.updateIn(
- keyPath,
- emptyMap(),
- function(m ) {return typeof m.merge === 'function' ?
- m.merge.apply(m, iters) :
- iters[iters.length - 1]}
- );
- };
-
- Map.prototype.mergeDeep = function(/*...iters*/) {
- return mergeIntoMapWith(this, deepMerger, arguments);
- };
-
- Map.prototype.mergeDeepWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return mergeIntoMapWith(this, deepMergerWith(merger), iters);
- };
-
- Map.prototype.mergeDeepIn = function(keyPath) {var iters = SLICE$0.call(arguments, 1);
- return this.updateIn(
- keyPath,
- emptyMap(),
- function(m ) {return typeof m.mergeDeep === 'function' ?
- m.mergeDeep.apply(m, iters) :
- iters[iters.length - 1]}
- );
- };
-
- Map.prototype.sort = function(comparator) {
- // Late binding
- return OrderedMap(sortFactory(this, comparator));
- };
-
- Map.prototype.sortBy = function(mapper, comparator) {
- // Late binding
- return OrderedMap(sortFactory(this, comparator, mapper));
- };
-
- // @pragma Mutability
-
- Map.prototype.withMutations = function(fn) {
- var mutable = this.asMutable();
- fn(mutable);
- return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID) : this;
- };
-
- Map.prototype.asMutable = function() {
- return this.__ownerID ? this : this.__ensureOwner(new OwnerID());
- };
-
- Map.prototype.asImmutable = function() {
- return this.__ensureOwner();
- };
-
- Map.prototype.wasAltered = function() {
- return this.__altered;
- };
-
- Map.prototype.__iterator = function(type, reverse) {
- return new MapIterator(this, type, reverse);
- };
-
- Map.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- var iterations = 0;
- this._root && this._root.iterate(function(entry ) {
- iterations++;
- return fn(entry[1], entry[0], this$0);
- }, reverse);
- return iterations;
- };
-
- Map.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- if (!ownerID) {
- this.__ownerID = ownerID;
- this.__altered = false;
- return this;
- }
- return makeMap(this.size, this._root, ownerID, this.__hash);
- };
-
-
- function isMap(maybeMap) {
- return !!(maybeMap && maybeMap[IS_MAP_SENTINEL]);
- }
-
- Map.isMap = isMap;
-
- var IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@';
-
- var MapPrototype = Map.prototype;
- MapPrototype[IS_MAP_SENTINEL] = true;
- MapPrototype[DELETE] = MapPrototype.remove;
- MapPrototype.removeIn = MapPrototype.deleteIn;
-
-
- // #pragma Trie Nodes
-
-
-
- function ArrayMapNode(ownerID, entries) {
- this.ownerID = ownerID;
- this.entries = entries;
- }
-
- ArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- var entries = this.entries;
- for (var ii = 0, len = entries.length; ii < len; ii++) {
- if (is(key, entries[ii][0])) {
- return entries[ii][1];
- }
- }
- return notSetValue;
- };
-
- ArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- var removed = value === NOT_SET;
-
- var entries = this.entries;
- var idx = 0;
- for (var len = entries.length; idx < len; idx++) {
- if (is(key, entries[idx][0])) {
- break;
- }
- }
- var exists = idx < len;
-
- if (exists ? entries[idx][1] === value : removed) {
- return this;
- }
-
- SetRef(didAlter);
- (removed || !exists) && SetRef(didChangeSize);
-
- if (removed && entries.length === 1) {
- return; // undefined
- }
-
- if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) {
- return createNodes(ownerID, entries, key, value);
- }
-
- var isEditable = ownerID && ownerID === this.ownerID;
- var newEntries = isEditable ? entries : arrCopy(entries);
-
- if (exists) {
- if (removed) {
- idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop());
- } else {
- newEntries[idx] = [key, value];
- }
- } else {
- newEntries.push([key, value]);
- }
-
- if (isEditable) {
- this.entries = newEntries;
- return this;
- }
-
- return new ArrayMapNode(ownerID, newEntries);
- };
-
-
-
-
- function BitmapIndexedNode(ownerID, bitmap, nodes) {
- this.ownerID = ownerID;
- this.bitmap = bitmap;
- this.nodes = nodes;
- }
-
- BitmapIndexedNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
- var bit = (1 << ((shift === 0 ? keyHash : keyHash >>> shift) & MASK));
- var bitmap = this.bitmap;
- return (bitmap & bit) === 0 ? notSetValue :
- this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);
- };
-
- BitmapIndexedNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
- var keyHashFrag = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
- var bit = 1 << keyHashFrag;
- var bitmap = this.bitmap;
- var exists = (bitmap & bit) !== 0;
-
- if (!exists && value === NOT_SET) {
- return this;
- }
-
- var idx = popCount(bitmap & (bit - 1));
- var nodes = this.nodes;
- var node = exists ? nodes[idx] : undefined;
- var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);
-
- if (newNode === node) {
- return this;
- }
-
- if (!exists && newNode && nodes.length >= MAX_BITMAP_INDEXED_SIZE) {
- return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);
- }
-
- if (exists && !newNode && nodes.length === 2 && isLeafNode(nodes[idx ^ 1])) {
- return nodes[idx ^ 1];
- }
-
- if (exists && newNode && nodes.length === 1 && isLeafNode(newNode)) {
- return newNode;
- }
-
- var isEditable = ownerID && ownerID === this.ownerID;
- var newBitmap = exists ? newNode ? bitmap : bitmap ^ bit : bitmap | bit;
- var newNodes = exists ? newNode ?
- setIn(nodes, idx, newNode, isEditable) :
- spliceOut(nodes, idx, isEditable) :
- spliceIn(nodes, idx, newNode, isEditable);
-
- if (isEditable) {
- this.bitmap = newBitmap;
- this.nodes = newNodes;
- return this;
- }
-
- return new BitmapIndexedNode(ownerID, newBitmap, newNodes);
- };
-
-
-
-
- function HashArrayMapNode(ownerID, count, nodes) {
- this.ownerID = ownerID;
- this.count = count;
- this.nodes = nodes;
- }
-
- HashArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
- var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
- var node = this.nodes[idx];
- return node ? node.get(shift + SHIFT, keyHash, key, notSetValue) : notSetValue;
- };
-
- HashArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
- var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
- var removed = value === NOT_SET;
- var nodes = this.nodes;
- var node = nodes[idx];
-
- if (removed && !node) {
- return this;
- }
-
- var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);
- if (newNode === node) {
- return this;
- }
-
- var newCount = this.count;
- if (!node) {
- newCount++;
- } else if (!newNode) {
- newCount--;
- if (newCount < MIN_HASH_ARRAY_MAP_SIZE) {
- return packNodes(ownerID, nodes, newCount, idx);
- }
- }
-
- var isEditable = ownerID && ownerID === this.ownerID;
- var newNodes = setIn(nodes, idx, newNode, isEditable);
-
- if (isEditable) {
- this.count = newCount;
- this.nodes = newNodes;
- return this;
- }
-
- return new HashArrayMapNode(ownerID, newCount, newNodes);
- };
-
-
-
-
- function HashCollisionNode(ownerID, keyHash, entries) {
- this.ownerID = ownerID;
- this.keyHash = keyHash;
- this.entries = entries;
- }
-
- HashCollisionNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- var entries = this.entries;
- for (var ii = 0, len = entries.length; ii < len; ii++) {
- if (is(key, entries[ii][0])) {
- return entries[ii][1];
- }
- }
- return notSetValue;
- };
-
- HashCollisionNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
-
- var removed = value === NOT_SET;
-
- if (keyHash !== this.keyHash) {
- if (removed) {
- return this;
- }
- SetRef(didAlter);
- SetRef(didChangeSize);
- return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);
- }
-
- var entries = this.entries;
- var idx = 0;
- for (var len = entries.length; idx < len; idx++) {
- if (is(key, entries[idx][0])) {
- break;
- }
- }
- var exists = idx < len;
-
- if (exists ? entries[idx][1] === value : removed) {
- return this;
- }
-
- SetRef(didAlter);
- (removed || !exists) && SetRef(didChangeSize);
-
- if (removed && len === 2) {
- return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);
- }
-
- var isEditable = ownerID && ownerID === this.ownerID;
- var newEntries = isEditable ? entries : arrCopy(entries);
-
- if (exists) {
- if (removed) {
- idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop());
- } else {
- newEntries[idx] = [key, value];
- }
- } else {
- newEntries.push([key, value]);
- }
-
- if (isEditable) {
- this.entries = newEntries;
- return this;
- }
-
- return new HashCollisionNode(ownerID, this.keyHash, newEntries);
- };
-
-
-
-
- function ValueNode(ownerID, keyHash, entry) {
- this.ownerID = ownerID;
- this.keyHash = keyHash;
- this.entry = entry;
- }
-
- ValueNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- return is(key, this.entry[0]) ? this.entry[1] : notSetValue;
- };
-
- ValueNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- var removed = value === NOT_SET;
- var keyMatch = is(key, this.entry[0]);
- if (keyMatch ? value === this.entry[1] : removed) {
- return this;
- }
-
- SetRef(didAlter);
-
- if (removed) {
- SetRef(didChangeSize);
- return; // undefined
- }
-
- if (keyMatch) {
- if (ownerID && ownerID === this.ownerID) {
- this.entry[1] = value;
- return this;
- }
- return new ValueNode(ownerID, this.keyHash, [key, value]);
- }
-
- SetRef(didChangeSize);
- return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);
- };
-
-
-
- // #pragma Iterators
-
- ArrayMapNode.prototype.iterate =
- HashCollisionNode.prototype.iterate = function (fn, reverse) {
- var entries = this.entries;
- for (var ii = 0, maxIndex = entries.length - 1; ii <= maxIndex; ii++) {
- if (fn(entries[reverse ? maxIndex - ii : ii]) === false) {
- return false;
- }
- }
- }
-
- BitmapIndexedNode.prototype.iterate =
- HashArrayMapNode.prototype.iterate = function (fn, reverse) {
- var nodes = this.nodes;
- for (var ii = 0, maxIndex = nodes.length - 1; ii <= maxIndex; ii++) {
- var node = nodes[reverse ? maxIndex - ii : ii];
- if (node && node.iterate(fn, reverse) === false) {
- return false;
- }
- }
- }
-
- ValueNode.prototype.iterate = function (fn, reverse) {
- return fn(this.entry);
- }
-
- createClass(MapIterator, Iterator);
-
- function MapIterator(map, type, reverse) {
- this._type = type;
- this._reverse = reverse;
- this._stack = map._root && mapIteratorFrame(map._root);
- }
-
- MapIterator.prototype.next = function() {
- var type = this._type;
- var stack = this._stack;
- while (stack) {
- var node = stack.node;
- var index = stack.index++;
- var maxIndex;
- if (node.entry) {
- if (index === 0) {
- return mapIteratorValue(type, node.entry);
- }
- } else if (node.entries) {
- maxIndex = node.entries.length - 1;
- if (index <= maxIndex) {
- return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index : index]);
- }
- } else {
- maxIndex = node.nodes.length - 1;
- if (index <= maxIndex) {
- var subNode = node.nodes[this._reverse ? maxIndex - index : index];
- if (subNode) {
- if (subNode.entry) {
- return mapIteratorValue(type, subNode.entry);
- }
- stack = this._stack = mapIteratorFrame(subNode, stack);
- }
- continue;
- }
- }
- stack = this._stack = this._stack.__prev;
- }
- return iteratorDone();
- };
-
-
- function mapIteratorValue(type, entry) {
- return iteratorValue(type, entry[0], entry[1]);
- }
-
- function mapIteratorFrame(node, prev) {
- return {
- node: node,
- index: 0,
- __prev: prev
- };
- }
-
- function makeMap(size, root, ownerID, hash) {
- var map = Object.create(MapPrototype);
- map.size = size;
- map._root = root;
- map.__ownerID = ownerID;
- map.__hash = hash;
- map.__altered = false;
- return map;
- }
-
- var EMPTY_MAP;
- function emptyMap() {
- return EMPTY_MAP || (EMPTY_MAP = makeMap(0));
- }
-
- function updateMap(map, k, v) {
- var newRoot;
- var newSize;
- if (!map._root) {
- if (v === NOT_SET) {
- return map;
- }
- newSize = 1;
- newRoot = new ArrayMapNode(map.__ownerID, [[k, v]]);
- } else {
- var didChangeSize = MakeRef(CHANGE_LENGTH);
- var didAlter = MakeRef(DID_ALTER);
- newRoot = updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);
- if (!didAlter.value) {
- return map;
- }
- newSize = map.size + (didChangeSize.value ? v === NOT_SET ? -1 : 1 : 0);
- }
- if (map.__ownerID) {
- map.size = newSize;
- map._root = newRoot;
- map.__hash = undefined;
- map.__altered = true;
- return map;
- }
- return newRoot ? makeMap(newSize, newRoot) : emptyMap();
- }
-
- function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- if (!node) {
- if (value === NOT_SET) {
- return node;
- }
- SetRef(didAlter);
- SetRef(didChangeSize);
- return new ValueNode(ownerID, keyHash, [key, value]);
- }
- return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);
- }
-
- function isLeafNode(node) {
- return node.constructor === ValueNode || node.constructor === HashCollisionNode;
- }
-
- function mergeIntoNode(node, ownerID, shift, keyHash, entry) {
- if (node.keyHash === keyHash) {
- return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);
- }
-
- var idx1 = (shift === 0 ? node.keyHash : node.keyHash >>> shift) & MASK;
- var idx2 = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
-
- var newNode;
- var nodes = idx1 === idx2 ?
- [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :
- ((newNode = new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode] : [newNode, node]);
-
- return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);
- }
-
- function createNodes(ownerID, entries, key, value) {
- if (!ownerID) {
- ownerID = new OwnerID();
- }
- var node = new ValueNode(ownerID, hash(key), [key, value]);
- for (var ii = 0; ii < entries.length; ii++) {
- var entry = entries[ii];
- node = node.update(ownerID, 0, undefined, entry[0], entry[1]);
- }
- return node;
- }
-
- function packNodes(ownerID, nodes, count, excluding) {
- var bitmap = 0;
- var packedII = 0;
- var packedNodes = new Array(count);
- for (var ii = 0, bit = 1, len = nodes.length; ii < len; ii++, bit <<= 1) {
- var node = nodes[ii];
- if (node !== undefined && ii !== excluding) {
- bitmap |= bit;
- packedNodes[packedII++] = node;
- }
- }
- return new BitmapIndexedNode(ownerID, bitmap, packedNodes);
- }
-
- function expandNodes(ownerID, nodes, bitmap, including, node) {
- var count = 0;
- var expandedNodes = new Array(SIZE);
- for (var ii = 0; bitmap !== 0; ii++, bitmap >>>= 1) {
- expandedNodes[ii] = bitmap & 1 ? nodes[count++] : undefined;
- }
- expandedNodes[including] = node;
- return new HashArrayMapNode(ownerID, count + 1, expandedNodes);
- }
-
- function mergeIntoMapWith(map, merger, iterables) {
- var iters = [];
- for (var ii = 0; ii < iterables.length; ii++) {
- var value = iterables[ii];
- var iter = KeyedIterable(value);
- if (!isIterable(value)) {
- iter = iter.map(function(v ) {return fromJS(v)});
- }
- iters.push(iter);
- }
- return mergeIntoCollectionWith(map, merger, iters);
- }
-
- function deepMerger(existing, value, key) {
- return existing && existing.mergeDeep && isIterable(value) ?
- existing.mergeDeep(value) :
- is(existing, value) ? existing : value;
- }
-
- function deepMergerWith(merger) {
- return function(existing, value, key) {
- if (existing && existing.mergeDeepWith && isIterable(value)) {
- return existing.mergeDeepWith(merger, value);
- }
- var nextValue = merger(existing, value, key);
- return is(existing, nextValue) ? existing : nextValue;
- };
- }
-
- function mergeIntoCollectionWith(collection, merger, iters) {
- iters = iters.filter(function(x ) {return x.size !== 0});
- if (iters.length === 0) {
- return collection;
- }
- if (collection.size === 0 && !collection.__ownerID && iters.length === 1) {
- return collection.constructor(iters[0]);
- }
- return collection.withMutations(function(collection ) {
- var mergeIntoMap = merger ?
- function(value, key) {
- collection.update(key, NOT_SET, function(existing )
- {return existing === NOT_SET ? value : merger(existing, value, key)}
- );
- } :
- function(value, key) {
- collection.set(key, value);
- }
- for (var ii = 0; ii < iters.length; ii++) {
- iters[ii].forEach(mergeIntoMap);
- }
- });
- }
-
- function updateInDeepMap(existing, keyPathIter, notSetValue, updater) {
- var isNotSet = existing === NOT_SET;
- var step = keyPathIter.next();
- if (step.done) {
- var existingValue = isNotSet ? notSetValue : existing;
- var newValue = updater(existingValue);
- return newValue === existingValue ? existing : newValue;
- }
- invariant(
- isNotSet || (existing && existing.set),
- 'invalid keyPath'
- );
- var key = step.value;
- var nextExisting = isNotSet ? NOT_SET : existing.get(key, NOT_SET);
- var nextUpdated = updateInDeepMap(
- nextExisting,
- keyPathIter,
- notSetValue,
- updater
- );
- return nextUpdated === nextExisting ? existing :
- nextUpdated === NOT_SET ? existing.remove(key) :
- (isNotSet ? emptyMap() : existing).set(key, nextUpdated);
- }
-
- function popCount(x) {
- x = x - ((x >> 1) & 0x55555555);
- x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
- x = (x + (x >> 4)) & 0x0f0f0f0f;
- x = x + (x >> 8);
- x = x + (x >> 16);
- return x & 0x7f;
- }
-
- function setIn(array, idx, val, canEdit) {
- var newArray = canEdit ? array : arrCopy(array);
- newArray[idx] = val;
- return newArray;
- }
-
- function spliceIn(array, idx, val, canEdit) {
- var newLen = array.length + 1;
- if (canEdit && idx + 1 === newLen) {
- array[idx] = val;
- return array;
- }
- var newArray = new Array(newLen);
- var after = 0;
- for (var ii = 0; ii < newLen; ii++) {
- if (ii === idx) {
- newArray[ii] = val;
- after = -1;
- } else {
- newArray[ii] = array[ii + after];
- }
- }
- return newArray;
- }
-
- function spliceOut(array, idx, canEdit) {
- var newLen = array.length - 1;
- if (canEdit && idx === newLen) {
- array.pop();
- return array;
- }
- var newArray = new Array(newLen);
- var after = 0;
- for (var ii = 0; ii < newLen; ii++) {
- if (ii === idx) {
- after = 1;
- }
- newArray[ii] = array[ii + after];
- }
- return newArray;
- }
-
- var MAX_ARRAY_MAP_SIZE = SIZE / 4;
- var MAX_BITMAP_INDEXED_SIZE = SIZE / 2;
- var MIN_HASH_ARRAY_MAP_SIZE = SIZE / 4;
-
- createClass(List, IndexedCollection);
-
- // @pragma Construction
-
- function List(value) {
- var empty = emptyList();
- if (value === null || value === undefined) {
- return empty;
- }
- if (isList(value)) {
- return value;
- }
- var iter = IndexedIterable(value);
- var size = iter.size;
- if (size === 0) {
- return empty;
- }
- assertNotInfinite(size);
- if (size > 0 && size < SIZE) {
- return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));
- }
- return empty.withMutations(function(list ) {
- list.setSize(size);
- iter.forEach(function(v, i) {return list.set(i, v)});
- });
- }
-
- List.of = function(/*...values*/) {
- return this(arguments);
- };
-
- List.prototype.toString = function() {
- return this.__toString('List [', ']');
- };
-
- // @pragma Access
-
- List.prototype.get = function(index, notSetValue) {
- index = wrapIndex(this, index);
- if (index >= 0 && index < this.size) {
- index += this._origin;
- var node = listNodeFor(this, index);
- return node && node.array[index & MASK];
- }
- return notSetValue;
- };
-
- // @pragma Modification
-
- List.prototype.set = function(index, value) {
- return updateList(this, index, value);
- };
-
- List.prototype.remove = function(index) {
- return !this.has(index) ? this :
- index === 0 ? this.shift() :
- index === this.size - 1 ? this.pop() :
- this.splice(index, 1);
- };
-
- List.prototype.insert = function(index, value) {
- return this.splice(index, 0, value);
- };
-
- List.prototype.clear = function() {
- if (this.size === 0) {
- return this;
- }
- if (this.__ownerID) {
- this.size = this._origin = this._capacity = 0;
- this._level = SHIFT;
- this._root = this._tail = null;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return emptyList();
- };
-
- List.prototype.push = function(/*...values*/) {
- var values = arguments;
- var oldSize = this.size;
- return this.withMutations(function(list ) {
- setListBounds(list, 0, oldSize + values.length);
- for (var ii = 0; ii < values.length; ii++) {
- list.set(oldSize + ii, values[ii]);
- }
- });
- };
-
- List.prototype.pop = function() {
- return setListBounds(this, 0, -1);
- };
-
- List.prototype.unshift = function(/*...values*/) {
- var values = arguments;
- return this.withMutations(function(list ) {
- setListBounds(list, -values.length);
- for (var ii = 0; ii < values.length; ii++) {
- list.set(ii, values[ii]);
- }
- });
- };
-
- List.prototype.shift = function() {
- return setListBounds(this, 1);
- };
-
- // @pragma Composition
-
- List.prototype.merge = function(/*...iters*/) {
- return mergeIntoListWith(this, undefined, arguments);
- };
-
- List.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return mergeIntoListWith(this, merger, iters);
- };
-
- List.prototype.mergeDeep = function(/*...iters*/) {
- return mergeIntoListWith(this, deepMerger, arguments);
- };
-
- List.prototype.mergeDeepWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return mergeIntoListWith(this, deepMergerWith(merger), iters);
- };
-
- List.prototype.setSize = function(size) {
- return setListBounds(this, 0, size);
- };
-
- // @pragma Iteration
-
- List.prototype.slice = function(begin, end) {
- var size = this.size;
- if (wholeSlice(begin, end, size)) {
- return this;
- }
- return setListBounds(
- this,
- resolveBegin(begin, size),
- resolveEnd(end, size)
- );
- };
-
- List.prototype.__iterator = function(type, reverse) {
- var index = 0;
- var values = iterateList(this, reverse);
- return new Iterator(function() {
- var value = values();
- return value === DONE ?
- iteratorDone() :
- iteratorValue(type, index++, value);
- });
- };
-
- List.prototype.__iterate = function(fn, reverse) {
- var index = 0;
- var values = iterateList(this, reverse);
- var value;
- while ((value = values()) !== DONE) {
- if (fn(value, index++, this) === false) {
- break;
- }
- }
- return index;
- };
-
- List.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- if (!ownerID) {
- this.__ownerID = ownerID;
- return this;
- }
- return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);
- };
-
-
- function isList(maybeList) {
- return !!(maybeList && maybeList[IS_LIST_SENTINEL]);
- }
-
- List.isList = isList;
-
- var IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
-
- var ListPrototype = List.prototype;
- ListPrototype[IS_LIST_SENTINEL] = true;
- ListPrototype[DELETE] = ListPrototype.remove;
- ListPrototype.setIn = MapPrototype.setIn;
- ListPrototype.deleteIn =
- ListPrototype.removeIn = MapPrototype.removeIn;
- ListPrototype.update = MapPrototype.update;
- ListPrototype.updateIn = MapPrototype.updateIn;
- ListPrototype.mergeIn = MapPrototype.mergeIn;
- ListPrototype.mergeDeepIn = MapPrototype.mergeDeepIn;
- ListPrototype.withMutations = MapPrototype.withMutations;
- ListPrototype.asMutable = MapPrototype.asMutable;
- ListPrototype.asImmutable = MapPrototype.asImmutable;
- ListPrototype.wasAltered = MapPrototype.wasAltered;
-
-
-
- function VNode(array, ownerID) {
- this.array = array;
- this.ownerID = ownerID;
- }
-
- // TODO: seems like these methods are very similar
-
- VNode.prototype.removeBefore = function(ownerID, level, index) {
- if (index === level ? 1 << level : 0 || this.array.length === 0) {
- return this;
- }
- var originIndex = (index >>> level) & MASK;
- if (originIndex >= this.array.length) {
- return new VNode([], ownerID);
- }
- var removingFirst = originIndex === 0;
- var newChild;
- if (level > 0) {
- var oldChild = this.array[originIndex];
- newChild = oldChild && oldChild.removeBefore(ownerID, level - SHIFT, index);
- if (newChild === oldChild && removingFirst) {
- return this;
- }
- }
- if (removingFirst && !newChild) {
- return this;
- }
- var editable = editableVNode(this, ownerID);
- if (!removingFirst) {
- for (var ii = 0; ii < originIndex; ii++) {
- editable.array[ii] = undefined;
- }
- }
- if (newChild) {
- editable.array[originIndex] = newChild;
- }
- return editable;
- };
-
- VNode.prototype.removeAfter = function(ownerID, level, index) {
- if (index === (level ? 1 << level : 0) || this.array.length === 0) {
- return this;
- }
- var sizeIndex = ((index - 1) >>> level) & MASK;
- if (sizeIndex >= this.array.length) {
- return this;
- }
-
- var newChild;
- if (level > 0) {
- var oldChild = this.array[sizeIndex];
- newChild = oldChild && oldChild.removeAfter(ownerID, level - SHIFT, index);
- if (newChild === oldChild && sizeIndex === this.array.length - 1) {
- return this;
- }
- }
-
- var editable = editableVNode(this, ownerID);
- editable.array.splice(sizeIndex + 1);
- if (newChild) {
- editable.array[sizeIndex] = newChild;
- }
- return editable;
- };
-
-
-
- var DONE = {};
-
- function iterateList(list, reverse) {
- var left = list._origin;
- var right = list._capacity;
- var tailPos = getTailOffset(right);
- var tail = list._tail;
-
- return iterateNodeOrLeaf(list._root, list._level, 0);
-
- function iterateNodeOrLeaf(node, level, offset) {
- return level === 0 ?
- iterateLeaf(node, offset) :
- iterateNode(node, level, offset);
- }
-
- function iterateLeaf(node, offset) {
- var array = offset === tailPos ? tail && tail.array : node && node.array;
- var from = offset > left ? 0 : left - offset;
- var to = right - offset;
- if (to > SIZE) {
- to = SIZE;
- }
- return function() {
- if (from === to) {
- return DONE;
- }
- var idx = reverse ? --to : from++;
- return array && array[idx];
- };
- }
-
- function iterateNode(node, level, offset) {
- var values;
- var array = node && node.array;
- var from = offset > left ? 0 : (left - offset) >> level;
- var to = ((right - offset) >> level) + 1;
- if (to > SIZE) {
- to = SIZE;
- }
- return function() {
- do {
- if (values) {
- var value = values();
- if (value !== DONE) {
- return value;
- }
- values = null;
- }
- if (from === to) {
- return DONE;
- }
- var idx = reverse ? --to : from++;
- values = iterateNodeOrLeaf(
- array && array[idx], level - SHIFT, offset + (idx << level)
- );
- } while (true);
- };
- }
- }
-
- function makeList(origin, capacity, level, root, tail, ownerID, hash) {
- var list = Object.create(ListPrototype);
- list.size = capacity - origin;
- list._origin = origin;
- list._capacity = capacity;
- list._level = level;
- list._root = root;
- list._tail = tail;
- list.__ownerID = ownerID;
- list.__hash = hash;
- list.__altered = false;
- return list;
- }
-
- var EMPTY_LIST;
- function emptyList() {
- return EMPTY_LIST || (EMPTY_LIST = makeList(0, 0, SHIFT));
- }
-
- function updateList(list, index, value) {
- index = wrapIndex(list, index);
-
- if (index !== index) {
- return list;
- }
-
- if (index >= list.size || index < 0) {
- return list.withMutations(function(list ) {
- index < 0 ?
- setListBounds(list, index).set(0, value) :
- setListBounds(list, 0, index + 1).set(index, value)
- });
- }
-
- index += list._origin;
-
- var newTail = list._tail;
- var newRoot = list._root;
- var didAlter = MakeRef(DID_ALTER);
- if (index >= getTailOffset(list._capacity)) {
- newTail = updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);
- } else {
- newRoot = updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);
- }
-
- if (!didAlter.value) {
- return list;
- }
-
- if (list.__ownerID) {
- list._root = newRoot;
- list._tail = newTail;
- list.__hash = undefined;
- list.__altered = true;
- return list;
- }
- return makeList(list._origin, list._capacity, list._level, newRoot, newTail);
- }
-
- function updateVNode(node, ownerID, level, index, value, didAlter) {
- var idx = (index >>> level) & MASK;
- var nodeHas = node && idx < node.array.length;
- if (!nodeHas && value === undefined) {
- return node;
- }
-
- var newNode;
-
- if (level > 0) {
- var lowerNode = node && node.array[idx];
- var newLowerNode = updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);
- if (newLowerNode === lowerNode) {
- return node;
- }
- newNode = editableVNode(node, ownerID);
- newNode.array[idx] = newLowerNode;
- return newNode;
- }
-
- if (nodeHas && node.array[idx] === value) {
- return node;
- }
-
- SetRef(didAlter);
-
- newNode = editableVNode(node, ownerID);
- if (value === undefined && idx === newNode.array.length - 1) {
- newNode.array.pop();
- } else {
- newNode.array[idx] = value;
- }
- return newNode;
- }
-
- function editableVNode(node, ownerID) {
- if (ownerID && node && ownerID === node.ownerID) {
- return node;
- }
- return new VNode(node ? node.array.slice() : [], ownerID);
- }
-
- function listNodeFor(list, rawIndex) {
- if (rawIndex >= getTailOffset(list._capacity)) {
- return list._tail;
- }
- if (rawIndex < 1 << (list._level + SHIFT)) {
- var node = list._root;
- var level = list._level;
- while (node && level > 0) {
- node = node.array[(rawIndex >>> level) & MASK];
- level -= SHIFT;
- }
- return node;
- }
- }
-
- function setListBounds(list, begin, end) {
- // Sanitize begin & end using this shorthand for ToInt32(argument)
- // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
- if (begin !== undefined) {
- begin = begin | 0;
- }
- if (end !== undefined) {
- end = end | 0;
- }
- var owner = list.__ownerID || new OwnerID();
- var oldOrigin = list._origin;
- var oldCapacity = list._capacity;
- var newOrigin = oldOrigin + begin;
- var newCapacity = end === undefined ? oldCapacity : end < 0 ? oldCapacity + end : oldOrigin + end;
- if (newOrigin === oldOrigin && newCapacity === oldCapacity) {
- return list;
- }
-
- // If it's going to end after it starts, it's empty.
- if (newOrigin >= newCapacity) {
- return list.clear();
- }
-
- var newLevel = list._level;
- var newRoot = list._root;
-
- // New origin might need creating a higher root.
- var offsetShift = 0;
- while (newOrigin + offsetShift < 0) {
- newRoot = new VNode(newRoot && newRoot.array.length ? [undefined, newRoot] : [], owner);
- newLevel += SHIFT;
- offsetShift += 1 << newLevel;
- }
- if (offsetShift) {
- newOrigin += offsetShift;
- oldOrigin += offsetShift;
- newCapacity += offsetShift;
- oldCapacity += offsetShift;
- }
-
- var oldTailOffset = getTailOffset(oldCapacity);
- var newTailOffset = getTailOffset(newCapacity);
-
- // New size might need creating a higher root.
- while (newTailOffset >= 1 << (newLevel + SHIFT)) {
- newRoot = new VNode(newRoot && newRoot.array.length ? [newRoot] : [], owner);
- newLevel += SHIFT;
- }
-
- // Locate or create the new tail.
- var oldTail = list._tail;
- var newTail = newTailOffset < oldTailOffset ?
- listNodeFor(list, newCapacity - 1) :
- newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail;
-
- // Merge Tail into tree.
- if (oldTail && newTailOffset > oldTailOffset && newOrigin < oldCapacity && oldTail.array.length) {
- newRoot = editableVNode(newRoot, owner);
- var node = newRoot;
- for (var level = newLevel; level > SHIFT; level -= SHIFT) {
- var idx = (oldTailOffset >>> level) & MASK;
- node = node.array[idx] = editableVNode(node.array[idx], owner);
- }
- node.array[(oldTailOffset >>> SHIFT) & MASK] = oldTail;
- }
-
- // If the size has been reduced, there's a chance the tail needs to be trimmed.
- if (newCapacity < oldCapacity) {
- newTail = newTail && newTail.removeAfter(owner, 0, newCapacity);
- }
-
- // If the new origin is within the tail, then we do not need a root.
- if (newOrigin >= newTailOffset) {
- newOrigin -= newTailOffset;
- newCapacity -= newTailOffset;
- newLevel = SHIFT;
- newRoot = null;
- newTail = newTail && newTail.removeBefore(owner, 0, newOrigin);
-
- // Otherwise, if the root has been trimmed, garbage collect.
- } else if (newOrigin > oldOrigin || newTailOffset < oldTailOffset) {
- offsetShift = 0;
-
- // Identify the new top root node of the subtree of the old root.
- while (newRoot) {
- var beginIndex = (newOrigin >>> newLevel) & MASK;
- if (beginIndex !== (newTailOffset >>> newLevel) & MASK) {
- break;
- }
- if (beginIndex) {
- offsetShift += (1 << newLevel) * beginIndex;
- }
- newLevel -= SHIFT;
- newRoot = newRoot.array[beginIndex];
- }
-
- // Trim the new sides of the new root.
- if (newRoot && newOrigin > oldOrigin) {
- newRoot = newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);
- }
- if (newRoot && newTailOffset < oldTailOffset) {
- newRoot = newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);
- }
- if (offsetShift) {
- newOrigin -= offsetShift;
- newCapacity -= offsetShift;
- }
- }
-
- if (list.__ownerID) {
- list.size = newCapacity - newOrigin;
- list._origin = newOrigin;
- list._capacity = newCapacity;
- list._level = newLevel;
- list._root = newRoot;
- list._tail = newTail;
- list.__hash = undefined;
- list.__altered = true;
- return list;
- }
- return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);
- }
-
- function mergeIntoListWith(list, merger, iterables) {
- var iters = [];
- var maxSize = 0;
- for (var ii = 0; ii < iterables.length; ii++) {
- var value = iterables[ii];
- var iter = IndexedIterable(value);
- if (iter.size > maxSize) {
- maxSize = iter.size;
- }
- if (!isIterable(value)) {
- iter = iter.map(function(v ) {return fromJS(v)});
- }
- iters.push(iter);
- }
- if (maxSize > list.size) {
- list = list.setSize(maxSize);
- }
- return mergeIntoCollectionWith(list, merger, iters);
- }
-
- function getTailOffset(size) {
- return size < SIZE ? 0 : (((size - 1) >>> SHIFT) << SHIFT);
- }
-
- createClass(OrderedMap, Map);
-
- // @pragma Construction
-
- function OrderedMap(value) {
- return value === null || value === undefined ? emptyOrderedMap() :
- isOrderedMap(value) ? value :
- emptyOrderedMap().withMutations(function(map ) {
- var iter = KeyedIterable(value);
- assertNotInfinite(iter.size);
- iter.forEach(function(v, k) {return map.set(k, v)});
- });
- }
-
- OrderedMap.of = function(/*...values*/) {
- return this(arguments);
- };
-
- OrderedMap.prototype.toString = function() {
- return this.__toString('OrderedMap {', '}');
- };
-
- // @pragma Access
-
- OrderedMap.prototype.get = function(k, notSetValue) {
- var index = this._map.get(k);
- return index !== undefined ? this._list.get(index)[1] : notSetValue;
- };
-
- // @pragma Modification
-
- OrderedMap.prototype.clear = function() {
- if (this.size === 0) {
- return this;
- }
- if (this.__ownerID) {
- this.size = 0;
- this._map.clear();
- this._list.clear();
- return this;
- }
- return emptyOrderedMap();
- };
-
- OrderedMap.prototype.set = function(k, v) {
- return updateOrderedMap(this, k, v);
- };
-
- OrderedMap.prototype.remove = function(k) {
- return updateOrderedMap(this, k, NOT_SET);
- };
-
- OrderedMap.prototype.wasAltered = function() {
- return this._map.wasAltered() || this._list.wasAltered();
- };
-
- OrderedMap.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return this._list.__iterate(
- function(entry ) {return entry && fn(entry[1], entry[0], this$0)},
- reverse
- );
- };
-
- OrderedMap.prototype.__iterator = function(type, reverse) {
- return this._list.fromEntrySeq().__iterator(type, reverse);
- };
-
- OrderedMap.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- var newMap = this._map.__ensureOwner(ownerID);
- var newList = this._list.__ensureOwner(ownerID);
- if (!ownerID) {
- this.__ownerID = ownerID;
- this._map = newMap;
- this._list = newList;
- return this;
- }
- return makeOrderedMap(newMap, newList, ownerID, this.__hash);
- };
-
-
- function isOrderedMap(maybeOrderedMap) {
- return isMap(maybeOrderedMap) && isOrdered(maybeOrderedMap);
- }
-
- OrderedMap.isOrderedMap = isOrderedMap;
-
- OrderedMap.prototype[IS_ORDERED_SENTINEL] = true;
- OrderedMap.prototype[DELETE] = OrderedMap.prototype.remove;
-
-
-
- function makeOrderedMap(map, list, ownerID, hash) {
- var omap = Object.create(OrderedMap.prototype);
- omap.size = map ? map.size : 0;
- omap._map = map;
- omap._list = list;
- omap.__ownerID = ownerID;
- omap.__hash = hash;
- return omap;
- }
-
- var EMPTY_ORDERED_MAP;
- function emptyOrderedMap() {
- return EMPTY_ORDERED_MAP || (EMPTY_ORDERED_MAP = makeOrderedMap(emptyMap(), emptyList()));
- }
-
- function updateOrderedMap(omap, k, v) {
- var map = omap._map;
- var list = omap._list;
- var i = map.get(k);
- var has = i !== undefined;
- var newMap;
- var newList;
- if (v === NOT_SET) { // removed
- if (!has) {
- return omap;
- }
- if (list.size >= SIZE && list.size >= map.size * 2) {
- newList = list.filter(function(entry, idx) {return entry !== undefined && i !== idx});
- newMap = newList.toKeyedSeq().map(function(entry ) {return entry[0]}).flip().toMap();
- if (omap.__ownerID) {
- newMap.__ownerID = newList.__ownerID = omap.__ownerID;
- }
- } else {
- newMap = map.remove(k);
- newList = i === list.size - 1 ? list.pop() : list.set(i, undefined);
- }
- } else {
- if (has) {
- if (v === list.get(i)[1]) {
- return omap;
- }
- newMap = map;
- newList = list.set(i, [k, v]);
- } else {
- newMap = map.set(k, list.size);
- newList = list.set(list.size, [k, v]);
- }
- }
- if (omap.__ownerID) {
- omap.size = newMap.size;
- omap._map = newMap;
- omap._list = newList;
- omap.__hash = undefined;
- return omap;
- }
- return makeOrderedMap(newMap, newList);
- }
-
- createClass(ToKeyedSequence, KeyedSeq);
- function ToKeyedSequence(indexed, useKeys) {
- this._iter = indexed;
- this._useKeys = useKeys;
- this.size = indexed.size;
- }
-
- ToKeyedSequence.prototype.get = function(key, notSetValue) {
- return this._iter.get(key, notSetValue);
- };
-
- ToKeyedSequence.prototype.has = function(key) {
- return this._iter.has(key);
- };
-
- ToKeyedSequence.prototype.valueSeq = function() {
- return this._iter.valueSeq();
- };
-
- ToKeyedSequence.prototype.reverse = function() {var this$0 = this;
- var reversedSequence = reverseFactory(this, true);
- if (!this._useKeys) {
- reversedSequence.valueSeq = function() {return this$0._iter.toSeq().reverse()};
- }
- return reversedSequence;
- };
-
- ToKeyedSequence.prototype.map = function(mapper, context) {var this$0 = this;
- var mappedSequence = mapFactory(this, mapper, context);
- if (!this._useKeys) {
- mappedSequence.valueSeq = function() {return this$0._iter.toSeq().map(mapper, context)};
- }
- return mappedSequence;
- };
-
- ToKeyedSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- var ii;
- return this._iter.__iterate(
- this._useKeys ?
- function(v, k) {return fn(v, k, this$0)} :
- ((ii = reverse ? resolveSize(this) : 0),
- function(v ) {return fn(v, reverse ? --ii : ii++, this$0)}),
- reverse
- );
- };
-
- ToKeyedSequence.prototype.__iterator = function(type, reverse) {
- if (this._useKeys) {
- return this._iter.__iterator(type, reverse);
- }
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
- var ii = reverse ? resolveSize(this) : 0;
- return new Iterator(function() {
- var step = iterator.next();
- return step.done ? step :
- iteratorValue(type, reverse ? --ii : ii++, step.value, step);
- });
- };
-
- ToKeyedSequence.prototype[IS_ORDERED_SENTINEL] = true;
-
-
- createClass(ToIndexedSequence, IndexedSeq);
- function ToIndexedSequence(iter) {
- this._iter = iter;
- this.size = iter.size;
- }
-
- ToIndexedSequence.prototype.includes = function(value) {
- return this._iter.includes(value);
- };
-
- ToIndexedSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- var iterations = 0;
- return this._iter.__iterate(function(v ) {return fn(v, iterations++, this$0)}, reverse);
- };
-
- ToIndexedSequence.prototype.__iterator = function(type, reverse) {
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
- var iterations = 0;
- return new Iterator(function() {
- var step = iterator.next();
- return step.done ? step :
- iteratorValue(type, iterations++, step.value, step)
- });
- };
-
-
-
- createClass(ToSetSequence, SetSeq);
- function ToSetSequence(iter) {
- this._iter = iter;
- this.size = iter.size;
- }
-
- ToSetSequence.prototype.has = function(key) {
- return this._iter.includes(key);
- };
-
- ToSetSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return this._iter.__iterate(function(v ) {return fn(v, v, this$0)}, reverse);
- };
-
- ToSetSequence.prototype.__iterator = function(type, reverse) {
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
- return new Iterator(function() {
- var step = iterator.next();
- return step.done ? step :
- iteratorValue(type, step.value, step.value, step);
- });
- };
-
-
-
- createClass(FromEntriesSequence, KeyedSeq);
- function FromEntriesSequence(entries) {
- this._iter = entries;
- this.size = entries.size;
- }
-
- FromEntriesSequence.prototype.entrySeq = function() {
- return this._iter.toSeq();
- };
-
- FromEntriesSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return this._iter.__iterate(function(entry ) {
- // Check if entry exists first so array access doesn't throw for holes
- // in the parent iteration.
- if (entry) {
- validateEntry(entry);
- var indexedIterable = isIterable(entry);
- return fn(
- indexedIterable ? entry.get(1) : entry[1],
- indexedIterable ? entry.get(0) : entry[0],
- this$0
- );
- }
- }, reverse);
- };
-
- FromEntriesSequence.prototype.__iterator = function(type, reverse) {
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
- return new Iterator(function() {
- while (true) {
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- var entry = step.value;
- // Check if entry exists first so array access doesn't throw for holes
- // in the parent iteration.
- if (entry) {
- validateEntry(entry);
- var indexedIterable = isIterable(entry);
- return iteratorValue(
- type,
- indexedIterable ? entry.get(0) : entry[0],
- indexedIterable ? entry.get(1) : entry[1],
- step
- );
- }
- }
- });
- };
-
-
- ToIndexedSequence.prototype.cacheResult =
- ToKeyedSequence.prototype.cacheResult =
- ToSetSequence.prototype.cacheResult =
- FromEntriesSequence.prototype.cacheResult =
- cacheResultThrough;
-
-
- function flipFactory(iterable) {
- var flipSequence = makeSequence(iterable);
- flipSequence._iter = iterable;
- flipSequence.size = iterable.size;
- flipSequence.flip = function() {return iterable};
- flipSequence.reverse = function () {
- var reversedSequence = iterable.reverse.apply(this); // super.reverse()
- reversedSequence.flip = function() {return iterable.reverse()};
- return reversedSequence;
- };
- flipSequence.has = function(key ) {return iterable.includes(key)};
- flipSequence.includes = function(key ) {return iterable.has(key)};
- flipSequence.cacheResult = cacheResultThrough;
- flipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
- return iterable.__iterate(function(v, k) {return fn(k, v, this$0) !== false}, reverse);
- }
- flipSequence.__iteratorUncached = function(type, reverse) {
- if (type === ITERATE_ENTRIES) {
- var iterator = iterable.__iterator(type, reverse);
- return new Iterator(function() {
- var step = iterator.next();
- if (!step.done) {
- var k = step.value[0];
- step.value[0] = step.value[1];
- step.value[1] = k;
- }
- return step;
- });
- }
- return iterable.__iterator(
- type === ITERATE_VALUES ? ITERATE_KEYS : ITERATE_VALUES,
- reverse
- );
- }
- return flipSequence;
- }
-
-
- function mapFactory(iterable, mapper, context) {
- var mappedSequence = makeSequence(iterable);
- mappedSequence.size = iterable.size;
- mappedSequence.has = function(key ) {return iterable.has(key)};
- mappedSequence.get = function(key, notSetValue) {
- var v = iterable.get(key, NOT_SET);
- return v === NOT_SET ?
- notSetValue :
- mapper.call(context, v, key, iterable);
- };
- mappedSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
- return iterable.__iterate(
- function(v, k, c) {return fn(mapper.call(context, v, k, c), k, this$0) !== false},
- reverse
- );
- }
- mappedSequence.__iteratorUncached = function (type, reverse) {
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
- return new Iterator(function() {
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- var entry = step.value;
- var key = entry[0];
- return iteratorValue(
- type,
- key,
- mapper.call(context, entry[1], key, iterable),
- step
- );
- });
- }
- return mappedSequence;
- }
-
-
- function reverseFactory(iterable, useKeys) {
- var reversedSequence = makeSequence(iterable);
- reversedSequence._iter = iterable;
- reversedSequence.size = iterable.size;
- reversedSequence.reverse = function() {return iterable};
- if (iterable.flip) {
- reversedSequence.flip = function () {
- var flipSequence = flipFactory(iterable);
- flipSequence.reverse = function() {return iterable.flip()};
- return flipSequence;
- };
- }
- reversedSequence.get = function(key, notSetValue)
- {return iterable.get(useKeys ? key : -1 - key, notSetValue)};
- reversedSequence.has = function(key )
- {return iterable.has(useKeys ? key : -1 - key)};
- reversedSequence.includes = function(value ) {return iterable.includes(value)};
- reversedSequence.cacheResult = cacheResultThrough;
- reversedSequence.__iterate = function (fn, reverse) {var this$0 = this;
- return iterable.__iterate(function(v, k) {return fn(v, k, this$0)}, !reverse);
- };
- reversedSequence.__iterator =
- function(type, reverse) {return iterable.__iterator(type, !reverse)};
- return reversedSequence;
- }
-
-
- function filterFactory(iterable, predicate, context, useKeys) {
- var filterSequence = makeSequence(iterable);
- if (useKeys) {
- filterSequence.has = function(key ) {
- var v = iterable.get(key, NOT_SET);
- return v !== NOT_SET && !!predicate.call(context, v, key, iterable);
- };
- filterSequence.get = function(key, notSetValue) {
- var v = iterable.get(key, NOT_SET);
- return v !== NOT_SET && predicate.call(context, v, key, iterable) ?
- v : notSetValue;
- };
- }
- filterSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
- var iterations = 0;
- iterable.__iterate(function(v, k, c) {
- if (predicate.call(context, v, k, c)) {
- iterations++;
- return fn(v, useKeys ? k : iterations - 1, this$0);
- }
- }, reverse);
- return iterations;
- };
- filterSequence.__iteratorUncached = function (type, reverse) {
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
- var iterations = 0;
- return new Iterator(function() {
- while (true) {
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- var entry = step.value;
- var key = entry[0];
- var value = entry[1];
- if (predicate.call(context, value, key, iterable)) {
- return iteratorValue(type, useKeys ? key : iterations++, value, step);
- }
- }
- });
- }
- return filterSequence;
- }
-
-
- function countByFactory(iterable, grouper, context) {
- var groups = Map().asMutable();
- iterable.__iterate(function(v, k) {
- groups.update(
- grouper.call(context, v, k, iterable),
- 0,
- function(a ) {return a + 1}
- );
- });
- return groups.asImmutable();
- }
-
-
- function groupByFactory(iterable, grouper, context) {
- var isKeyedIter = isKeyed(iterable);
- var groups = (isOrdered(iterable) ? OrderedMap() : Map()).asMutable();
- iterable.__iterate(function(v, k) {
- groups.update(
- grouper.call(context, v, k, iterable),
- function(a ) {return (a = a || [], a.push(isKeyedIter ? [k, v] : v), a)}
- );
- });
- var coerce = iterableClass(iterable);
- return groups.map(function(arr ) {return reify(iterable, coerce(arr))});
- }
-
-
- function sliceFactory(iterable, begin, end, useKeys) {
- var originalSize = iterable.size;
-
- // Sanitize begin & end using this shorthand for ToInt32(argument)
- // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
- if (begin !== undefined) {
- begin = begin | 0;
- }
- if (end !== undefined) {
- if (end === Infinity) {
- end = originalSize;
- } else {
- end = end | 0;
- }
- }
-
- if (wholeSlice(begin, end, originalSize)) {
- return iterable;
- }
-
- var resolvedBegin = resolveBegin(begin, originalSize);
- var resolvedEnd = resolveEnd(end, originalSize);
-
- // begin or end will be NaN if they were provided as negative numbers and
- // this iterable's size is unknown. In that case, cache first so there is
- // a known size and these do not resolve to NaN.
- if (resolvedBegin !== resolvedBegin || resolvedEnd !== resolvedEnd) {
- return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);
- }
-
- // Note: resolvedEnd is undefined when the original sequence's length is
- // unknown and this slice did not supply an end and should contain all
- // elements after resolvedBegin.
- // In that case, resolvedSize will be NaN and sliceSize will remain undefined.
- var resolvedSize = resolvedEnd - resolvedBegin;
- var sliceSize;
- if (resolvedSize === resolvedSize) {
- sliceSize = resolvedSize < 0 ? 0 : resolvedSize;
- }
-
- var sliceSeq = makeSequence(iterable);
-
- // If iterable.size is undefined, the size of the realized sliceSeq is
- // unknown at this point unless the number of items to slice is 0
- sliceSeq.size = sliceSize === 0 ? sliceSize : iterable.size && sliceSize || undefined;
-
- if (!useKeys && isSeq(iterable) && sliceSize >= 0) {
- sliceSeq.get = function (index, notSetValue) {
- index = wrapIndex(this, index);
- return index >= 0 && index < sliceSize ?
- iterable.get(index + resolvedBegin, notSetValue) :
- notSetValue;
- }
- }
-
- sliceSeq.__iterateUncached = function(fn, reverse) {var this$0 = this;
- if (sliceSize === 0) {
- return 0;
- }
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var skipped = 0;
- var isSkipping = true;
- var iterations = 0;
- iterable.__iterate(function(v, k) {
- if (!(isSkipping && (isSkipping = skipped++ < resolvedBegin))) {
- iterations++;
- return fn(v, useKeys ? k : iterations - 1, this$0) !== false &&
- iterations !== sliceSize;
- }
- });
- return iterations;
- };
-
- sliceSeq.__iteratorUncached = function(type, reverse) {
- if (sliceSize !== 0 && reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- // Don't bother instantiating parent iterator if taking 0.
- var iterator = sliceSize !== 0 && iterable.__iterator(type, reverse);
- var skipped = 0;
- var iterations = 0;
- return new Iterator(function() {
- while (skipped++ < resolvedBegin) {
- iterator.next();
- }
- if (++iterations > sliceSize) {
- return iteratorDone();
- }
- var step = iterator.next();
- if (useKeys || type === ITERATE_VALUES) {
- return step;
- } else if (type === ITERATE_KEYS) {
- return iteratorValue(type, iterations - 1, undefined, step);
- } else {
- return iteratorValue(type, iterations - 1, step.value[1], step);
- }
- });
- }
-
- return sliceSeq;
- }
-
-
- function takeWhileFactory(iterable, predicate, context) {
- var takeSequence = makeSequence(iterable);
- takeSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var iterations = 0;
- iterable.__iterate(function(v, k, c)
- {return predicate.call(context, v, k, c) && ++iterations && fn(v, k, this$0)}
- );
- return iterations;
- };
- takeSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
- if (reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
- var iterating = true;
- return new Iterator(function() {
- if (!iterating) {
- return iteratorDone();
- }
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- var entry = step.value;
- var k = entry[0];
- var v = entry[1];
- if (!predicate.call(context, v, k, this$0)) {
- iterating = false;
- return iteratorDone();
- }
- return type === ITERATE_ENTRIES ? step :
- iteratorValue(type, k, v, step);
- });
- };
- return takeSequence;
- }
-
-
- function skipWhileFactory(iterable, predicate, context, useKeys) {
- var skipSequence = makeSequence(iterable);
- skipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var isSkipping = true;
- var iterations = 0;
- iterable.__iterate(function(v, k, c) {
- if (!(isSkipping && (isSkipping = predicate.call(context, v, k, c)))) {
- iterations++;
- return fn(v, useKeys ? k : iterations - 1, this$0);
- }
- });
- return iterations;
- };
- skipSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
- if (reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
- var skipping = true;
- var iterations = 0;
- return new Iterator(function() {
- var step, k, v;
- do {
- step = iterator.next();
- if (step.done) {
- if (useKeys || type === ITERATE_VALUES) {
- return step;
- } else if (type === ITERATE_KEYS) {
- return iteratorValue(type, iterations++, undefined, step);
- } else {
- return iteratorValue(type, iterations++, step.value[1], step);
- }
- }
- var entry = step.value;
- k = entry[0];
- v = entry[1];
- skipping && (skipping = predicate.call(context, v, k, this$0));
- } while (skipping);
- return type === ITERATE_ENTRIES ? step :
- iteratorValue(type, k, v, step);
- });
- };
- return skipSequence;
- }
-
-
- function concatFactory(iterable, values) {
- var isKeyedIterable = isKeyed(iterable);
- var iters = [iterable].concat(values).map(function(v ) {
- if (!isIterable(v)) {
- v = isKeyedIterable ?
- keyedSeqFromValue(v) :
- indexedSeqFromValue(Array.isArray(v) ? v : [v]);
- } else if (isKeyedIterable) {
- v = KeyedIterable(v);
- }
- return v;
- }).filter(function(v ) {return v.size !== 0});
-
- if (iters.length === 0) {
- return iterable;
- }
-
- if (iters.length === 1) {
- var singleton = iters[0];
- if (singleton === iterable ||
- isKeyedIterable && isKeyed(singleton) ||
- isIndexed(iterable) && isIndexed(singleton)) {
- return singleton;
- }
- }
-
- var concatSeq = new ArraySeq(iters);
- if (isKeyedIterable) {
- concatSeq = concatSeq.toKeyedSeq();
- } else if (!isIndexed(iterable)) {
- concatSeq = concatSeq.toSetSeq();
- }
- concatSeq = concatSeq.flatten(true);
- concatSeq.size = iters.reduce(
- function(sum, seq) {
- if (sum !== undefined) {
- var size = seq.size;
- if (size !== undefined) {
- return sum + size;
- }
- }
- },
- 0
- );
- return concatSeq;
- }
-
-
- function flattenFactory(iterable, depth, useKeys) {
- var flatSequence = makeSequence(iterable);
- flatSequence.__iterateUncached = function(fn, reverse) {
- var iterations = 0;
- var stopped = false;
- function flatDeep(iter, currentDepth) {var this$0 = this;
- iter.__iterate(function(v, k) {
- if ((!depth || currentDepth < depth) && isIterable(v)) {
- flatDeep(v, currentDepth + 1);
- } else if (fn(v, useKeys ? k : iterations++, this$0) === false) {
- stopped = true;
- }
- return !stopped;
- }, reverse);
- }
- flatDeep(iterable, 0);
- return iterations;
- }
- flatSequence.__iteratorUncached = function(type, reverse) {
- var iterator = iterable.__iterator(type, reverse);
- var stack = [];
- var iterations = 0;
- return new Iterator(function() {
- while (iterator) {
- var step = iterator.next();
- if (step.done !== false) {
- iterator = stack.pop();
- continue;
- }
- var v = step.value;
- if (type === ITERATE_ENTRIES) {
- v = v[1];
- }
- if ((!depth || stack.length < depth) && isIterable(v)) {
- stack.push(iterator);
- iterator = v.__iterator(type, reverse);
- } else {
- return useKeys ? step : iteratorValue(type, iterations++, v, step);
- }
- }
- return iteratorDone();
- });
- }
- return flatSequence;
- }
-
-
- function flatMapFactory(iterable, mapper, context) {
- var coerce = iterableClass(iterable);
- return iterable.toSeq().map(
- function(v, k) {return coerce(mapper.call(context, v, k, iterable))}
- ).flatten(true);
- }
-
-
- function interposeFactory(iterable, separator) {
- var interposedSequence = makeSequence(iterable);
- interposedSequence.size = iterable.size && iterable.size * 2 -1;
- interposedSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
- var iterations = 0;
- iterable.__iterate(function(v, k)
- {return (!iterations || fn(separator, iterations++, this$0) !== false) &&
- fn(v, iterations++, this$0) !== false},
- reverse
- );
- return iterations;
- };
- interposedSequence.__iteratorUncached = function(type, reverse) {
- var iterator = iterable.__iterator(ITERATE_VALUES, reverse);
- var iterations = 0;
- var step;
- return new Iterator(function() {
- if (!step || iterations % 2) {
- step = iterator.next();
- if (step.done) {
- return step;
- }
- }
- return iterations % 2 ?
- iteratorValue(type, iterations++, separator) :
- iteratorValue(type, iterations++, step.value, step);
- });
- };
- return interposedSequence;
- }
-
-
- function sortFactory(iterable, comparator, mapper) {
- if (!comparator) {
- comparator = defaultComparator;
- }
- var isKeyedIterable = isKeyed(iterable);
- var index = 0;
- var entries = iterable.toSeq().map(
- function(v, k) {return [k, v, index++, mapper ? mapper(v, k, iterable) : v]}
- ).toArray();
- entries.sort(function(a, b) {return comparator(a[3], b[3]) || a[2] - b[2]}).forEach(
- isKeyedIterable ?
- function(v, i) { entries[i].length = 2; } :
- function(v, i) { entries[i] = v[1]; }
- );
- return isKeyedIterable ? KeyedSeq(entries) :
- isIndexed(iterable) ? IndexedSeq(entries) :
- SetSeq(entries);
- }
-
-
- function maxFactory(iterable, comparator, mapper) {
- if (!comparator) {
- comparator = defaultComparator;
- }
- if (mapper) {
- var entry = iterable.toSeq()
- .map(function(v, k) {return [v, mapper(v, k, iterable)]})
- .reduce(function(a, b) {return maxCompare(comparator, a[1], b[1]) ? b : a});
- return entry && entry[0];
- } else {
- return iterable.reduce(function(a, b) {return maxCompare(comparator, a, b) ? b : a});
- }
- }
-
- function maxCompare(comparator, a, b) {
- var comp = comparator(b, a);
- // b is considered the new max if the comparator declares them equal, but
- // they are not equal and b is in fact a nullish value.
- return (comp === 0 && b !== a && (b === undefined || b === null || b !== b)) || comp > 0;
- }
-
-
- function zipWithFactory(keyIter, zipper, iters) {
- var zipSequence = makeSequence(keyIter);
- zipSequence.size = new ArraySeq(iters).map(function(i ) {return i.size}).min();
- // Note: this a generic base implementation of __iterate in terms of
- // __iterator which may be more generically useful in the future.
- zipSequence.__iterate = function(fn, reverse) {
- /* generic:
- var iterator = this.__iterator(ITERATE_ENTRIES, reverse);
- var step;
- var iterations = 0;
- while (!(step = iterator.next()).done) {
- iterations++;
- if (fn(step.value[1], step.value[0], this) === false) {
- break;
- }
- }
- return iterations;
- */
- // indexed:
- var iterator = this.__iterator(ITERATE_VALUES, reverse);
- var step;
- var iterations = 0;
- while (!(step = iterator.next()).done) {
- if (fn(step.value, iterations++, this) === false) {
- break;
- }
- }
- return iterations;
- };
- zipSequence.__iteratorUncached = function(type, reverse) {
- var iterators = iters.map(function(i )
- {return (i = Iterable(i), getIterator(reverse ? i.reverse() : i))}
- );
- var iterations = 0;
- var isDone = false;
- return new Iterator(function() {
- var steps;
- if (!isDone) {
- steps = iterators.map(function(i ) {return i.next()});
- isDone = steps.some(function(s ) {return s.done});
- }
- if (isDone) {
- return iteratorDone();
- }
- return iteratorValue(
- type,
- iterations++,
- zipper.apply(null, steps.map(function(s ) {return s.value}))
- );
- });
- };
- return zipSequence
- }
-
-
- // #pragma Helper Functions
-
- function reify(iter, seq) {
- return isSeq(iter) ? seq : iter.constructor(seq);
- }
-
- function validateEntry(entry) {
- if (entry !== Object(entry)) {
- throw new TypeError('Expected [K, V] tuple: ' + entry);
- }
- }
-
- function resolveSize(iter) {
- assertNotInfinite(iter.size);
- return ensureSize(iter);
- }
-
- function iterableClass(iterable) {
- return isKeyed(iterable) ? KeyedIterable :
- isIndexed(iterable) ? IndexedIterable :
- SetIterable;
- }
-
- function makeSequence(iterable) {
- return Object.create(
- (
- isKeyed(iterable) ? KeyedSeq :
- isIndexed(iterable) ? IndexedSeq :
- SetSeq
- ).prototype
- );
- }
-
- function cacheResultThrough() {
- if (this._iter.cacheResult) {
- this._iter.cacheResult();
- this.size = this._iter.size;
- return this;
- } else {
- return Seq.prototype.cacheResult.call(this);
- }
- }
-
- function defaultComparator(a, b) {
- return a > b ? 1 : a < b ? -1 : 0;
- }
-
- function forceIterator(keyPath) {
- var iter = getIterator(keyPath);
- if (!iter) {
- // Array might not be iterable in this environment, so we need a fallback
- // to our wrapped type.
- if (!isArrayLike(keyPath)) {
- throw new TypeError('Expected iterable or array-like: ' + keyPath);
- }
- iter = getIterator(Iterable(keyPath));
- }
- return iter;
- }
-
- createClass(Record, KeyedCollection);
-
- function Record(defaultValues, name) {
- var hasInitialized;
-
- var RecordType = function Record(values) {
- if (values instanceof RecordType) {
- return values;
- }
- if (!(this instanceof RecordType)) {
- return new RecordType(values);
- }
- if (!hasInitialized) {
- hasInitialized = true;
- var keys = Object.keys(defaultValues);
- setProps(RecordTypePrototype, keys);
- RecordTypePrototype.size = keys.length;
- RecordTypePrototype._name = name;
- RecordTypePrototype._keys = keys;
- RecordTypePrototype._defaultValues = defaultValues;
- }
- this._map = Map(values);
- };
-
- var RecordTypePrototype = RecordType.prototype = Object.create(RecordPrototype);
- RecordTypePrototype.constructor = RecordType;
-
- return RecordType;
- }
-
- Record.prototype.toString = function() {
- return this.__toString(recordName(this) + ' {', '}');
- };
-
- // @pragma Access
-
- Record.prototype.has = function(k) {
- return this._defaultValues.hasOwnProperty(k);
- };
-
- Record.prototype.get = function(k, notSetValue) {
- if (!this.has(k)) {
- return notSetValue;
- }
- var defaultVal = this._defaultValues[k];
- return this._map ? this._map.get(k, defaultVal) : defaultVal;
- };
-
- // @pragma Modification
-
- Record.prototype.clear = function() {
- if (this.__ownerID) {
- this._map && this._map.clear();
- return this;
- }
- var RecordType = this.constructor;
- return RecordType._empty || (RecordType._empty = makeRecord(this, emptyMap()));
- };
-
- Record.prototype.set = function(k, v) {
- if (!this.has(k)) {
- throw new Error('Cannot set unknown key "' + k + '" on ' + recordName(this));
- }
- if (this._map && !this._map.has(k)) {
- var defaultVal = this._defaultValues[k];
- if (v === defaultVal) {
- return this;
- }
- }
- var newMap = this._map && this._map.set(k, v);
- if (this.__ownerID || newMap === this._map) {
- return this;
- }
- return makeRecord(this, newMap);
- };
-
- Record.prototype.remove = function(k) {
- if (!this.has(k)) {
- return this;
- }
- var newMap = this._map && this._map.remove(k);
- if (this.__ownerID || newMap === this._map) {
- return this;
- }
- return makeRecord(this, newMap);
- };
-
- Record.prototype.wasAltered = function() {
- return this._map.wasAltered();
- };
-
- Record.prototype.__iterator = function(type, reverse) {var this$0 = this;
- return KeyedIterable(this._defaultValues).map(function(_, k) {return this$0.get(k)}).__iterator(type, reverse);
- };
-
- Record.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return KeyedIterable(this._defaultValues).map(function(_, k) {return this$0.get(k)}).__iterate(fn, reverse);
- };
-
- Record.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- var newMap = this._map && this._map.__ensureOwner(ownerID);
- if (!ownerID) {
- this.__ownerID = ownerID;
- this._map = newMap;
- return this;
- }
- return makeRecord(this, newMap, ownerID);
- };
-
-
- var RecordPrototype = Record.prototype;
- RecordPrototype[DELETE] = RecordPrototype.remove;
- RecordPrototype.deleteIn =
- RecordPrototype.removeIn = MapPrototype.removeIn;
- RecordPrototype.merge = MapPrototype.merge;
- RecordPrototype.mergeWith = MapPrototype.mergeWith;
- RecordPrototype.mergeIn = MapPrototype.mergeIn;
- RecordPrototype.mergeDeep = MapPrototype.mergeDeep;
- RecordPrototype.mergeDeepWith = MapPrototype.mergeDeepWith;
- RecordPrototype.mergeDeepIn = MapPrototype.mergeDeepIn;
- RecordPrototype.setIn = MapPrototype.setIn;
- RecordPrototype.update = MapPrototype.update;
- RecordPrototype.updateIn = MapPrototype.updateIn;
- RecordPrototype.withMutations = MapPrototype.withMutations;
- RecordPrototype.asMutable = MapPrototype.asMutable;
- RecordPrototype.asImmutable = MapPrototype.asImmutable;
-
-
- function makeRecord(likeRecord, map, ownerID) {
- var record = Object.create(Object.getPrototypeOf(likeRecord));
- record._map = map;
- record.__ownerID = ownerID;
- return record;
- }
-
- function recordName(record) {
- return record._name || record.constructor.name || 'Record';
- }
-
- function setProps(prototype, names) {
- try {
- names.forEach(setProp.bind(undefined, prototype));
- } catch (error) {
- // Object.defineProperty failed. Probably IE8.
- }
- }
-
- function setProp(prototype, name) {
- Object.defineProperty(prototype, name, {
- get: function() {
- return this.get(name);
- },
- set: function(value) {
- invariant(this.__ownerID, 'Cannot set on an immutable record.');
- this.set(name, value);
- }
- });
- }
-
- createClass(Set, SetCollection);
-
- // @pragma Construction
-
- function Set(value) {
- return value === null || value === undefined ? emptySet() :
- isSet(value) && !isOrdered(value) ? value :
- emptySet().withMutations(function(set ) {
- var iter = SetIterable(value);
- assertNotInfinite(iter.size);
- iter.forEach(function(v ) {return set.add(v)});
- });
- }
-
- Set.of = function(/*...values*/) {
- return this(arguments);
- };
-
- Set.fromKeys = function(value) {
- return this(KeyedIterable(value).keySeq());
- };
-
- Set.prototype.toString = function() {
- return this.__toString('Set {', '}');
- };
-
- // @pragma Access
-
- Set.prototype.has = function(value) {
- return this._map.has(value);
- };
-
- // @pragma Modification
-
- Set.prototype.add = function(value) {
- return updateSet(this, this._map.set(value, true));
- };
-
- Set.prototype.remove = function(value) {
- return updateSet(this, this._map.remove(value));
- };
-
- Set.prototype.clear = function() {
- return updateSet(this, this._map.clear());
- };
-
- // @pragma Composition
-
- Set.prototype.union = function() {var iters = SLICE$0.call(arguments, 0);
- iters = iters.filter(function(x ) {return x.size !== 0});
- if (iters.length === 0) {
- return this;
- }
- if (this.size === 0 && !this.__ownerID && iters.length === 1) {
- return this.constructor(iters[0]);
- }
- return this.withMutations(function(set ) {
- for (var ii = 0; ii < iters.length; ii++) {
- SetIterable(iters[ii]).forEach(function(value ) {return set.add(value)});
- }
- });
- };
-
- Set.prototype.intersect = function() {var iters = SLICE$0.call(arguments, 0);
- if (iters.length === 0) {
- return this;
- }
- iters = iters.map(function(iter ) {return SetIterable(iter)});
- var originalSet = this;
- return this.withMutations(function(set ) {
- originalSet.forEach(function(value ) {
- if (!iters.every(function(iter ) {return iter.includes(value)})) {
- set.remove(value);
- }
- });
- });
- };
-
- Set.prototype.subtract = function() {var iters = SLICE$0.call(arguments, 0);
- if (iters.length === 0) {
- return this;
- }
- iters = iters.map(function(iter ) {return SetIterable(iter)});
- var originalSet = this;
- return this.withMutations(function(set ) {
- originalSet.forEach(function(value ) {
- if (iters.some(function(iter ) {return iter.includes(value)})) {
- set.remove(value);
- }
- });
- });
- };
-
- Set.prototype.merge = function() {
- return this.union.apply(this, arguments);
- };
-
- Set.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return this.union.apply(this, iters);
- };
-
- Set.prototype.sort = function(comparator) {
- // Late binding
- return OrderedSet(sortFactory(this, comparator));
- };
-
- Set.prototype.sortBy = function(mapper, comparator) {
- // Late binding
- return OrderedSet(sortFactory(this, comparator, mapper));
- };
-
- Set.prototype.wasAltered = function() {
- return this._map.wasAltered();
- };
-
- Set.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return this._map.__iterate(function(_, k) {return fn(k, k, this$0)}, reverse);
- };
-
- Set.prototype.__iterator = function(type, reverse) {
- return this._map.map(function(_, k) {return k}).__iterator(type, reverse);
- };
-
- Set.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- var newMap = this._map.__ensureOwner(ownerID);
- if (!ownerID) {
- this.__ownerID = ownerID;
- this._map = newMap;
- return this;
- }
- return this.__make(newMap, ownerID);
- };
-
-
- function isSet(maybeSet) {
- return !!(maybeSet && maybeSet[IS_SET_SENTINEL]);
- }
-
- Set.isSet = isSet;
-
- var IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@';
-
- var SetPrototype = Set.prototype;
- SetPrototype[IS_SET_SENTINEL] = true;
- SetPrototype[DELETE] = SetPrototype.remove;
- SetPrototype.mergeDeep = SetPrototype.merge;
- SetPrototype.mergeDeepWith = SetPrototype.mergeWith;
- SetPrototype.withMutations = MapPrototype.withMutations;
- SetPrototype.asMutable = MapPrototype.asMutable;
- SetPrototype.asImmutable = MapPrototype.asImmutable;
-
- SetPrototype.__empty = emptySet;
- SetPrototype.__make = makeSet;
-
- function updateSet(set, newMap) {
- if (set.__ownerID) {
- set.size = newMap.size;
- set._map = newMap;
- return set;
- }
- return newMap === set._map ? set :
- newMap.size === 0 ? set.__empty() :
- set.__make(newMap);
- }
-
- function makeSet(map, ownerID) {
- var set = Object.create(SetPrototype);
- set.size = map ? map.size : 0;
- set._map = map;
- set.__ownerID = ownerID;
- return set;
- }
-
- var EMPTY_SET;
- function emptySet() {
- return EMPTY_SET || (EMPTY_SET = makeSet(emptyMap()));
- }
-
- createClass(OrderedSet, Set);
-
- // @pragma Construction
-
- function OrderedSet(value) {
- return value === null || value === undefined ? emptyOrderedSet() :
- isOrderedSet(value) ? value :
- emptyOrderedSet().withMutations(function(set ) {
- var iter = SetIterable(value);
- assertNotInfinite(iter.size);
- iter.forEach(function(v ) {return set.add(v)});
- });
- }
-
- OrderedSet.of = function(/*...values*/) {
- return this(arguments);
- };
-
- OrderedSet.fromKeys = function(value) {
- return this(KeyedIterable(value).keySeq());
- };
-
- OrderedSet.prototype.toString = function() {
- return this.__toString('OrderedSet {', '}');
- };
-
-
- function isOrderedSet(maybeOrderedSet) {
- return isSet(maybeOrderedSet) && isOrdered(maybeOrderedSet);
- }
-
- OrderedSet.isOrderedSet = isOrderedSet;
-
- var OrderedSetPrototype = OrderedSet.prototype;
- OrderedSetPrototype[IS_ORDERED_SENTINEL] = true;
-
- OrderedSetPrototype.__empty = emptyOrderedSet;
- OrderedSetPrototype.__make = makeOrderedSet;
-
- function makeOrderedSet(map, ownerID) {
- var set = Object.create(OrderedSetPrototype);
- set.size = map ? map.size : 0;
- set._map = map;
- set.__ownerID = ownerID;
- return set;
- }
-
- var EMPTY_ORDERED_SET;
- function emptyOrderedSet() {
- return EMPTY_ORDERED_SET || (EMPTY_ORDERED_SET = makeOrderedSet(emptyOrderedMap()));
- }
-
- createClass(Stack, IndexedCollection);
-
- // @pragma Construction
-
- function Stack(value) {
- return value === null || value === undefined ? emptyStack() :
- isStack(value) ? value :
- emptyStack().unshiftAll(value);
- }
-
- Stack.of = function(/*...values*/) {
- return this(arguments);
- };
-
- Stack.prototype.toString = function() {
- return this.__toString('Stack [', ']');
- };
-
- // @pragma Access
-
- Stack.prototype.get = function(index, notSetValue) {
- var head = this._head;
- index = wrapIndex(this, index);
- while (head && index--) {
- head = head.next;
- }
- return head ? head.value : notSetValue;
- };
-
- Stack.prototype.peek = function() {
- return this._head && this._head.value;
- };
-
- // @pragma Modification
-
- Stack.prototype.push = function(/*...values*/) {
- if (arguments.length === 0) {
- return this;
- }
- var newSize = this.size + arguments.length;
- var head = this._head;
- for (var ii = arguments.length - 1; ii >= 0; ii--) {
- head = {
- value: arguments[ii],
- next: head
- };
- }
- if (this.__ownerID) {
- this.size = newSize;
- this._head = head;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return makeStack(newSize, head);
- };
-
- Stack.prototype.pushAll = function(iter) {
- iter = IndexedIterable(iter);
- if (iter.size === 0) {
- return this;
- }
- assertNotInfinite(iter.size);
- var newSize = this.size;
- var head = this._head;
- iter.reverse().forEach(function(value ) {
- newSize++;
- head = {
- value: value,
- next: head
- };
- });
- if (this.__ownerID) {
- this.size = newSize;
- this._head = head;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return makeStack(newSize, head);
- };
-
- Stack.prototype.pop = function() {
- return this.slice(1);
- };
-
- Stack.prototype.unshift = function(/*...values*/) {
- return this.push.apply(this, arguments);
- };
-
- Stack.prototype.unshiftAll = function(iter) {
- return this.pushAll(iter);
- };
-
- Stack.prototype.shift = function() {
- return this.pop.apply(this, arguments);
- };
-
- Stack.prototype.clear = function() {
- if (this.size === 0) {
- return this;
- }
- if (this.__ownerID) {
- this.size = 0;
- this._head = undefined;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return emptyStack();
- };
-
- Stack.prototype.slice = function(begin, end) {
- if (wholeSlice(begin, end, this.size)) {
- return this;
- }
- var resolvedBegin = resolveBegin(begin, this.size);
- var resolvedEnd = resolveEnd(end, this.size);
- if (resolvedEnd !== this.size) {
- // super.slice(begin, end);
- return IndexedCollection.prototype.slice.call(this, begin, end);
- }
- var newSize = this.size - resolvedBegin;
- var head = this._head;
- while (resolvedBegin--) {
- head = head.next;
- }
- if (this.__ownerID) {
- this.size = newSize;
- this._head = head;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return makeStack(newSize, head);
- };
-
- // @pragma Mutability
-
- Stack.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- if (!ownerID) {
- this.__ownerID = ownerID;
- this.__altered = false;
- return this;
- }
- return makeStack(this.size, this._head, ownerID, this.__hash);
- };
-
- // @pragma Iteration
-
- Stack.prototype.__iterate = function(fn, reverse) {
- if (reverse) {
- return this.reverse().__iterate(fn);
- }
- var iterations = 0;
- var node = this._head;
- while (node) {
- if (fn(node.value, iterations++, this) === false) {
- break;
- }
- node = node.next;
- }
- return iterations;
- };
-
- Stack.prototype.__iterator = function(type, reverse) {
- if (reverse) {
- return this.reverse().__iterator(type);
- }
- var iterations = 0;
- var node = this._head;
- return new Iterator(function() {
- if (node) {
- var value = node.value;
- node = node.next;
- return iteratorValue(type, iterations++, value);
- }
- return iteratorDone();
- });
- };
-
-
- function isStack(maybeStack) {
- return !!(maybeStack && maybeStack[IS_STACK_SENTINEL]);
- }
-
- Stack.isStack = isStack;
-
- var IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@';
-
- var StackPrototype = Stack.prototype;
- StackPrototype[IS_STACK_SENTINEL] = true;
- StackPrototype.withMutations = MapPrototype.withMutations;
- StackPrototype.asMutable = MapPrototype.asMutable;
- StackPrototype.asImmutable = MapPrototype.asImmutable;
- StackPrototype.wasAltered = MapPrototype.wasAltered;
-
-
- function makeStack(size, head, ownerID, hash) {
- var map = Object.create(StackPrototype);
- map.size = size;
- map._head = head;
- map.__ownerID = ownerID;
- map.__hash = hash;
- map.__altered = false;
- return map;
- }
-
- var EMPTY_STACK;
- function emptyStack() {
- return EMPTY_STACK || (EMPTY_STACK = makeStack(0));
- }
-
- /**
- * Contributes additional methods to a constructor
- */
- function mixin(ctor, methods) {
- var keyCopier = function(key ) { ctor.prototype[key] = methods[key]; };
- Object.keys(methods).forEach(keyCopier);
- Object.getOwnPropertySymbols &&
- Object.getOwnPropertySymbols(methods).forEach(keyCopier);
- return ctor;
- }
-
- Iterable.Iterator = Iterator;
-
- mixin(Iterable, {
-
- // ### Conversion to other types
-
- toArray: function() {
- assertNotInfinite(this.size);
- var array = new Array(this.size || 0);
- this.valueSeq().__iterate(function(v, i) { array[i] = v; });
- return array;
- },
-
- toIndexedSeq: function() {
- return new ToIndexedSequence(this);
- },
-
- toJS: function() {
- return this.toSeq().map(
- function(value ) {return value && typeof value.toJS === 'function' ? value.toJS() : value}
- ).__toJS();
- },
-
- toJSON: function() {
- return this.toSeq().map(
- function(value ) {return value && typeof value.toJSON === 'function' ? value.toJSON() : value}
- ).__toJS();
- },
-
- toKeyedSeq: function() {
- return new ToKeyedSequence(this, true);
- },
-
- toMap: function() {
- // Use Late Binding here to solve the circular dependency.
- return Map(this.toKeyedSeq());
- },
-
- toObject: function() {
- assertNotInfinite(this.size);
- var object = {};
- this.__iterate(function(v, k) { object[k] = v; });
- return object;
- },
-
- toOrderedMap: function() {
- // Use Late Binding here to solve the circular dependency.
- return OrderedMap(this.toKeyedSeq());
- },
-
- toOrderedSet: function() {
- // Use Late Binding here to solve the circular dependency.
- return OrderedSet(isKeyed(this) ? this.valueSeq() : this);
- },
-
- toSet: function() {
- // Use Late Binding here to solve the circular dependency.
- return Set(isKeyed(this) ? this.valueSeq() : this);
- },
-
- toSetSeq: function() {
- return new ToSetSequence(this);
- },
-
- toSeq: function() {
- return isIndexed(this) ? this.toIndexedSeq() :
- isKeyed(this) ? this.toKeyedSeq() :
- this.toSetSeq();
- },
-
- toStack: function() {
- // Use Late Binding here to solve the circular dependency.
- return Stack(isKeyed(this) ? this.valueSeq() : this);
- },
-
- toList: function() {
- // Use Late Binding here to solve the circular dependency.
- return List(isKeyed(this) ? this.valueSeq() : this);
- },
-
-
- // ### Common JavaScript methods and properties
-
- toString: function() {
- return '[Iterable]';
- },
-
- __toString: function(head, tail) {
- if (this.size === 0) {
- return head + tail;
- }
- return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;
- },
-
-
- // ### ES6 Collection methods (ES6 Array and Map)
-
- concat: function() {var values = SLICE$0.call(arguments, 0);
- return reify(this, concatFactory(this, values));
- },
-
- includes: function(searchValue) {
- return this.some(function(value ) {return is(value, searchValue)});
- },
-
- entries: function() {
- return this.__iterator(ITERATE_ENTRIES);
- },
-
- every: function(predicate, context) {
- assertNotInfinite(this.size);
- var returnValue = true;
- this.__iterate(function(v, k, c) {
- if (!predicate.call(context, v, k, c)) {
- returnValue = false;
- return false;
- }
- });
- return returnValue;
- },
-
- filter: function(predicate, context) {
- return reify(this, filterFactory(this, predicate, context, true));
- },
-
- find: function(predicate, context, notSetValue) {
- var entry = this.findEntry(predicate, context);
- return entry ? entry[1] : notSetValue;
- },
-
- forEach: function(sideEffect, context) {
- assertNotInfinite(this.size);
- return this.__iterate(context ? sideEffect.bind(context) : sideEffect);
- },
-
- join: function(separator) {
- assertNotInfinite(this.size);
- separator = separator !== undefined ? '' + separator : ',';
- var joined = '';
- var isFirst = true;
- this.__iterate(function(v ) {
- isFirst ? (isFirst = false) : (joined += separator);
- joined += v !== null && v !== undefined ? v.toString() : '';
- });
- return joined;
- },
-
- keys: function() {
- return this.__iterator(ITERATE_KEYS);
- },
-
- map: function(mapper, context) {
- return reify(this, mapFactory(this, mapper, context));
- },
-
- reduce: function(reducer, initialReduction, context) {
- assertNotInfinite(this.size);
- var reduction;
- var useFirst;
- if (arguments.length < 2) {
- useFirst = true;
- } else {
- reduction = initialReduction;
- }
- this.__iterate(function(v, k, c) {
- if (useFirst) {
- useFirst = false;
- reduction = v;
- } else {
- reduction = reducer.call(context, reduction, v, k, c);
- }
- });
- return reduction;
- },
-
- reduceRight: function(reducer, initialReduction, context) {
- var reversed = this.toKeyedSeq().reverse();
- return reversed.reduce.apply(reversed, arguments);
- },
-
- reverse: function() {
- return reify(this, reverseFactory(this, true));
- },
-
- slice: function(begin, end) {
- return reify(this, sliceFactory(this, begin, end, true));
- },
-
- some: function(predicate, context) {
- return !this.every(not(predicate), context);
- },
-
- sort: function(comparator) {
- return reify(this, sortFactory(this, comparator));
- },
-
- values: function() {
- return this.__iterator(ITERATE_VALUES);
- },
-
-
- // ### More sequential methods
-
- butLast: function() {
- return this.slice(0, -1);
- },
-
- isEmpty: function() {
- return this.size !== undefined ? this.size === 0 : !this.some(function() {return true});
- },
-
- count: function(predicate, context) {
- return ensureSize(
- predicate ? this.toSeq().filter(predicate, context) : this
- );
- },
-
- countBy: function(grouper, context) {
- return countByFactory(this, grouper, context);
- },
-
- equals: function(other) {
- return deepEqual(this, other);
- },
-
- entrySeq: function() {
- var iterable = this;
- if (iterable._cache) {
- // We cache as an entries array, so we can just return the cache!
- return new ArraySeq(iterable._cache);
- }
- var entriesSequence = iterable.toSeq().map(entryMapper).toIndexedSeq();
- entriesSequence.fromEntrySeq = function() {return iterable.toSeq()};
- return entriesSequence;
- },
-
- filterNot: function(predicate, context) {
- return this.filter(not(predicate), context);
- },
-
- findEntry: function(predicate, context, notSetValue) {
- var found = notSetValue;
- this.__iterate(function(v, k, c) {
- if (predicate.call(context, v, k, c)) {
- found = [k, v];
- return false;
- }
- });
- return found;
- },
-
- findKey: function(predicate, context) {
- var entry = this.findEntry(predicate, context);
- return entry && entry[0];
- },
-
- findLast: function(predicate, context, notSetValue) {
- return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);
- },
-
- findLastEntry: function(predicate, context, notSetValue) {
- return this.toKeyedSeq().reverse().findEntry(predicate, context, notSetValue);
- },
-
- findLastKey: function(predicate, context) {
- return this.toKeyedSeq().reverse().findKey(predicate, context);
- },
-
- first: function() {
- return this.find(returnTrue);
- },
-
- flatMap: function(mapper, context) {
- return reify(this, flatMapFactory(this, mapper, context));
- },
-
- flatten: function(depth) {
- return reify(this, flattenFactory(this, depth, true));
- },
-
- fromEntrySeq: function() {
- return new FromEntriesSequence(this);
- },
-
- get: function(searchKey, notSetValue) {
- return this.find(function(_, key) {return is(key, searchKey)}, undefined, notSetValue);
- },
-
- getIn: function(searchKeyPath, notSetValue) {
- var nested = this;
- // Note: in an ES6 environment, we would prefer:
- // for (var key of searchKeyPath) {
- var iter = forceIterator(searchKeyPath);
- var step;
- while (!(step = iter.next()).done) {
- var key = step.value;
- nested = nested && nested.get ? nested.get(key, NOT_SET) : NOT_SET;
- if (nested === NOT_SET) {
- return notSetValue;
- }
- }
- return nested;
- },
-
- groupBy: function(grouper, context) {
- return groupByFactory(this, grouper, context);
- },
-
- has: function(searchKey) {
- return this.get(searchKey, NOT_SET) !== NOT_SET;
- },
-
- hasIn: function(searchKeyPath) {
- return this.getIn(searchKeyPath, NOT_SET) !== NOT_SET;
- },
-
- isSubset: function(iter) {
- iter = typeof iter.includes === 'function' ? iter : Iterable(iter);
- return this.every(function(value ) {return iter.includes(value)});
- },
-
- isSuperset: function(iter) {
- iter = typeof iter.isSubset === 'function' ? iter : Iterable(iter);
- return iter.isSubset(this);
- },
-
- keyOf: function(searchValue) {
- return this.findKey(function(value ) {return is(value, searchValue)});
- },
-
- keySeq: function() {
- return this.toSeq().map(keyMapper).toIndexedSeq();
- },
-
- last: function() {
- return this.toSeq().reverse().first();
- },
-
- lastKeyOf: function(searchValue) {
- return this.toKeyedSeq().reverse().keyOf(searchValue);
- },
-
- max: function(comparator) {
- return maxFactory(this, comparator);
- },
-
- maxBy: function(mapper, comparator) {
- return maxFactory(this, comparator, mapper);
- },
-
- min: function(comparator) {
- return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator);
- },
-
- minBy: function(mapper, comparator) {
- return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator, mapper);
- },
-
- rest: function() {
- return this.slice(1);
- },
-
- skip: function(amount) {
- return this.slice(Math.max(0, amount));
- },
-
- skipLast: function(amount) {
- return reify(this, this.toSeq().reverse().skip(amount).reverse());
- },
-
- skipWhile: function(predicate, context) {
- return reify(this, skipWhileFactory(this, predicate, context, true));
- },
-
- skipUntil: function(predicate, context) {
- return this.skipWhile(not(predicate), context);
- },
-
- sortBy: function(mapper, comparator) {
- return reify(this, sortFactory(this, comparator, mapper));
- },
-
- take: function(amount) {
- return this.slice(0, Math.max(0, amount));
- },
-
- takeLast: function(amount) {
- return reify(this, this.toSeq().reverse().take(amount).reverse());
- },
-
- takeWhile: function(predicate, context) {
- return reify(this, takeWhileFactory(this, predicate, context));
- },
-
- takeUntil: function(predicate, context) {
- return this.takeWhile(not(predicate), context);
- },
-
- valueSeq: function() {
- return this.toIndexedSeq();
- },
-
-
- // ### Hashable Object
-
- hashCode: function() {
- return this.__hash || (this.__hash = hashIterable(this));
- }
-
-
- // ### Internal
-
- // abstract __iterate(fn, reverse)
-
- // abstract __iterator(type, reverse)
- });
-
- // var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
- // var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
- // var IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@';
- // var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
-
- var IterablePrototype = Iterable.prototype;
- IterablePrototype[IS_ITERABLE_SENTINEL] = true;
- IterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.values;
- IterablePrototype.__toJS = IterablePrototype.toArray;
- IterablePrototype.__toStringMapper = quoteString;
- IterablePrototype.inspect =
- IterablePrototype.toSource = function() { return this.toString(); };
- IterablePrototype.chain = IterablePrototype.flatMap;
- IterablePrototype.contains = IterablePrototype.includes;
-
- mixin(KeyedIterable, {
-
- // ### More sequential methods
-
- flip: function() {
- return reify(this, flipFactory(this));
- },
-
- mapEntries: function(mapper, context) {var this$0 = this;
- var iterations = 0;
- return reify(this,
- this.toSeq().map(
- function(v, k) {return mapper.call(context, [k, v], iterations++, this$0)}
- ).fromEntrySeq()
- );
- },
-
- mapKeys: function(mapper, context) {var this$0 = this;
- return reify(this,
- this.toSeq().flip().map(
- function(k, v) {return mapper.call(context, k, v, this$0)}
- ).flip()
- );
- }
-
- });
-
- var KeyedIterablePrototype = KeyedIterable.prototype;
- KeyedIterablePrototype[IS_KEYED_SENTINEL] = true;
- KeyedIterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.entries;
- KeyedIterablePrototype.__toJS = IterablePrototype.toObject;
- KeyedIterablePrototype.__toStringMapper = function(v, k) {return JSON.stringify(k) + ': ' + quoteString(v)};
-
-
-
- mixin(IndexedIterable, {
-
- // ### Conversion to other types
-
- toKeyedSeq: function() {
- return new ToKeyedSequence(this, false);
- },
-
-
- // ### ES6 Collection methods (ES6 Array and Map)
-
- filter: function(predicate, context) {
- return reify(this, filterFactory(this, predicate, context, false));
- },
-
- findIndex: function(predicate, context) {
- var entry = this.findEntry(predicate, context);
- return entry ? entry[0] : -1;
- },
-
- indexOf: function(searchValue) {
- var key = this.keyOf(searchValue);
- return key === undefined ? -1 : key;
- },
-
- lastIndexOf: function(searchValue) {
- var key = this.lastKeyOf(searchValue);
- return key === undefined ? -1 : key;
- },
-
- reverse: function() {
- return reify(this, reverseFactory(this, false));
- },
-
- slice: function(begin, end) {
- return reify(this, sliceFactory(this, begin, end, false));
- },
-
- splice: function(index, removeNum /*, ...values*/) {
- var numArgs = arguments.length;
- removeNum = Math.max(removeNum | 0, 0);
- if (numArgs === 0 || (numArgs === 2 && !removeNum)) {
- return this;
- }
- // If index is negative, it should resolve relative to the size of the
- // collection. However size may be expensive to compute if not cached, so
- // only call count() if the number is in fact negative.
- index = resolveBegin(index, index < 0 ? this.count() : this.size);
- var spliced = this.slice(0, index);
- return reify(
- this,
- numArgs === 1 ?
- spliced :
- spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))
- );
- },
-
-
- // ### More collection methods
-
- findLastIndex: function(predicate, context) {
- var entry = this.findLastEntry(predicate, context);
- return entry ? entry[0] : -1;
- },
-
- first: function() {
- return this.get(0);
- },
-
- flatten: function(depth) {
- return reify(this, flattenFactory(this, depth, false));
- },
-
- get: function(index, notSetValue) {
- index = wrapIndex(this, index);
- return (index < 0 || (this.size === Infinity ||
- (this.size !== undefined && index > this.size))) ?
- notSetValue :
- this.find(function(_, key) {return key === index}, undefined, notSetValue);
- },
-
- has: function(index) {
- index = wrapIndex(this, index);
- return index >= 0 && (this.size !== undefined ?
- this.size === Infinity || index < this.size :
- this.indexOf(index) !== -1
- );
- },
-
- interpose: function(separator) {
- return reify(this, interposeFactory(this, separator));
- },
-
- interleave: function(/*...iterables*/) {
- var iterables = [this].concat(arrCopy(arguments));
- var zipped = zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);
- var interleaved = zipped.flatten(true);
- if (zipped.size) {
- interleaved.size = zipped.size * iterables.length;
- }
- return reify(this, interleaved);
- },
-
- keySeq: function() {
- return Range(0, this.size);
- },
-
- last: function() {
- return this.get(-1);
- },
-
- skipWhile: function(predicate, context) {
- return reify(this, skipWhileFactory(this, predicate, context, false));
- },
-
- zip: function(/*, ...iterables */) {
- var iterables = [this].concat(arrCopy(arguments));
- return reify(this, zipWithFactory(this, defaultZipper, iterables));
- },
-
- zipWith: function(zipper/*, ...iterables */) {
- var iterables = arrCopy(arguments);
- iterables[0] = this;
- return reify(this, zipWithFactory(this, zipper, iterables));
- }
-
- });
-
- IndexedIterable.prototype[IS_INDEXED_SENTINEL] = true;
- IndexedIterable.prototype[IS_ORDERED_SENTINEL] = true;
-
-
-
- mixin(SetIterable, {
-
- // ### ES6 Collection methods (ES6 Array and Map)
-
- get: function(value, notSetValue) {
- return this.has(value) ? value : notSetValue;
- },
-
- includes: function(value) {
- return this.has(value);
- },
-
-
- // ### More sequential methods
-
- keySeq: function() {
- return this.valueSeq();
- }
-
- });
-
- SetIterable.prototype.has = IterablePrototype.includes;
- SetIterable.prototype.contains = SetIterable.prototype.includes;
-
-
- // Mixin subclasses
-
- mixin(KeyedSeq, KeyedIterable.prototype);
- mixin(IndexedSeq, IndexedIterable.prototype);
- mixin(SetSeq, SetIterable.prototype);
-
- mixin(KeyedCollection, KeyedIterable.prototype);
- mixin(IndexedCollection, IndexedIterable.prototype);
- mixin(SetCollection, SetIterable.prototype);
-
-
- // #pragma Helper functions
-
- function keyMapper(v, k) {
- return k;
- }
-
- function entryMapper(v, k) {
- return [k, v];
- }
-
- function not(predicate) {
- return function() {
- return !predicate.apply(this, arguments);
- }
- }
-
- function neg(predicate) {
- return function() {
- return -predicate.apply(this, arguments);
- }
- }
-
- function quoteString(value) {
- return typeof value === 'string' ? JSON.stringify(value) : String(value);
- }
-
- function defaultZipper() {
- return arrCopy(arguments);
- }
-
- function defaultNegComparator(a, b) {
- return a < b ? 1 : a > b ? -1 : 0;
- }
-
- function hashIterable(iterable) {
- if (iterable.size === Infinity) {
- return 0;
- }
- var ordered = isOrdered(iterable);
- var keyed = isKeyed(iterable);
- var h = ordered ? 1 : 0;
- var size = iterable.__iterate(
- keyed ?
- ordered ?
- function(v, k) { h = 31 * h + hashMerge(hash(v), hash(k)) | 0; } :
- function(v, k) { h = h + hashMerge(hash(v), hash(k)) | 0; } :
- ordered ?
- function(v ) { h = 31 * h + hash(v) | 0; } :
- function(v ) { h = h + hash(v) | 0; }
- );
- return murmurHashOfSize(size, h);
- }
-
- function murmurHashOfSize(size, h) {
- h = imul(h, 0xCC9E2D51);
- h = imul(h << 15 | h >>> -15, 0x1B873593);
- h = imul(h << 13 | h >>> -13, 5);
- h = (h + 0xE6546B64 | 0) ^ size;
- h = imul(h ^ h >>> 16, 0x85EBCA6B);
- h = imul(h ^ h >>> 13, 0xC2B2AE35);
- h = smi(h ^ h >>> 16);
- return h;
- }
-
- function hashMerge(a, b) {
- return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int
- }
-
- var Immutable = {
-
- Iterable: Iterable,
-
- Seq: Seq,
- Collection: Collection,
- Map: Map,
- OrderedMap: OrderedMap,
- List: List,
- Stack: Stack,
- Set: Set,
- OrderedSet: OrderedSet,
-
- Record: Record,
- Range: Range,
- Repeat: Repeat,
-
- is: is,
- fromJS: fromJS
-
- };
-
- return Immutable;
-
-}));
diff --git a/backend/staticfiles/drf-yasg/immutable.37fd83058fde.js.gz b/backend/staticfiles/drf-yasg/immutable.37fd83058fde.js.gz
deleted file mode 100644
index 5d1a29b68..000000000
Binary files a/backend/staticfiles/drf-yasg/immutable.37fd83058fde.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/immutable.js b/backend/staticfiles/drf-yasg/immutable.js
deleted file mode 100644
index 0e2ac973d..000000000
--- a/backend/staticfiles/drf-yasg/immutable.js
+++ /dev/null
@@ -1,4977 +0,0 @@
-/**
- * Copyright (c) 2014-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
- typeof define === 'function' && define.amd ? define(factory) :
- (global.Immutable = factory());
-}(this, function () { 'use strict';var SLICE$0 = Array.prototype.slice;
-
- function createClass(ctor, superClass) {
- if (superClass) {
- ctor.prototype = Object.create(superClass.prototype);
- }
- ctor.prototype.constructor = ctor;
- }
-
- function Iterable(value) {
- return isIterable(value) ? value : Seq(value);
- }
-
-
- createClass(KeyedIterable, Iterable);
- function KeyedIterable(value) {
- return isKeyed(value) ? value : KeyedSeq(value);
- }
-
-
- createClass(IndexedIterable, Iterable);
- function IndexedIterable(value) {
- return isIndexed(value) ? value : IndexedSeq(value);
- }
-
-
- createClass(SetIterable, Iterable);
- function SetIterable(value) {
- return isIterable(value) && !isAssociative(value) ? value : SetSeq(value);
- }
-
-
-
- function isIterable(maybeIterable) {
- return !!(maybeIterable && maybeIterable[IS_ITERABLE_SENTINEL]);
- }
-
- function isKeyed(maybeKeyed) {
- return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL]);
- }
-
- function isIndexed(maybeIndexed) {
- return !!(maybeIndexed && maybeIndexed[IS_INDEXED_SENTINEL]);
- }
-
- function isAssociative(maybeAssociative) {
- return isKeyed(maybeAssociative) || isIndexed(maybeAssociative);
- }
-
- function isOrdered(maybeOrdered) {
- return !!(maybeOrdered && maybeOrdered[IS_ORDERED_SENTINEL]);
- }
-
- Iterable.isIterable = isIterable;
- Iterable.isKeyed = isKeyed;
- Iterable.isIndexed = isIndexed;
- Iterable.isAssociative = isAssociative;
- Iterable.isOrdered = isOrdered;
-
- Iterable.Keyed = KeyedIterable;
- Iterable.Indexed = IndexedIterable;
- Iterable.Set = SetIterable;
-
-
- var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
- var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
- var IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@';
- var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
-
- // Used for setting prototype methods that IE8 chokes on.
- var DELETE = 'delete';
-
- // Constants describing the size of trie nodes.
- var SHIFT = 5; // Resulted in best performance after ______?
- var SIZE = 1 << SHIFT;
- var MASK = SIZE - 1;
-
- // A consistent shared value representing "not set" which equals nothing other
- // than itself, and nothing that could be provided externally.
- var NOT_SET = {};
-
- // Boolean references, Rough equivalent of `bool &`.
- var CHANGE_LENGTH = { value: false };
- var DID_ALTER = { value: false };
-
- function MakeRef(ref) {
- ref.value = false;
- return ref;
- }
-
- function SetRef(ref) {
- ref && (ref.value = true);
- }
-
- // A function which returns a value representing an "owner" for transient writes
- // to tries. The return value will only ever equal itself, and will not equal
- // the return of any subsequent call of this function.
- function OwnerID() {}
-
- // http://jsperf.com/copy-array-inline
- function arrCopy(arr, offset) {
- offset = offset || 0;
- var len = Math.max(0, arr.length - offset);
- var newArr = new Array(len);
- for (var ii = 0; ii < len; ii++) {
- newArr[ii] = arr[ii + offset];
- }
- return newArr;
- }
-
- function ensureSize(iter) {
- if (iter.size === undefined) {
- iter.size = iter.__iterate(returnTrue);
- }
- return iter.size;
- }
-
- function wrapIndex(iter, index) {
- // This implements "is array index" which the ECMAString spec defines as:
- //
- // A String property name P is an array index if and only if
- // ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal
- // to 2^32−1.
- //
- // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects
- if (typeof index !== 'number') {
- var uint32Index = index >>> 0; // N >>> 0 is shorthand for ToUint32
- if ('' + uint32Index !== index || uint32Index === 4294967295) {
- return NaN;
- }
- index = uint32Index;
- }
- return index < 0 ? ensureSize(iter) + index : index;
- }
-
- function returnTrue() {
- return true;
- }
-
- function wholeSlice(begin, end, size) {
- return (begin === 0 || (size !== undefined && begin <= -size)) &&
- (end === undefined || (size !== undefined && end >= size));
- }
-
- function resolveBegin(begin, size) {
- return resolveIndex(begin, size, 0);
- }
-
- function resolveEnd(end, size) {
- return resolveIndex(end, size, size);
- }
-
- function resolveIndex(index, size, defaultIndex) {
- return index === undefined ?
- defaultIndex :
- index < 0 ?
- Math.max(0, size + index) :
- size === undefined ?
- index :
- Math.min(size, index);
- }
-
- /* global Symbol */
-
- var ITERATE_KEYS = 0;
- var ITERATE_VALUES = 1;
- var ITERATE_ENTRIES = 2;
-
- var REAL_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
-
- var ITERATOR_SYMBOL = REAL_ITERATOR_SYMBOL || FAUX_ITERATOR_SYMBOL;
-
-
- function Iterator(next) {
- this.next = next;
- }
-
- Iterator.prototype.toString = function() {
- return '[Iterator]';
- };
-
-
- Iterator.KEYS = ITERATE_KEYS;
- Iterator.VALUES = ITERATE_VALUES;
- Iterator.ENTRIES = ITERATE_ENTRIES;
-
- Iterator.prototype.inspect =
- Iterator.prototype.toSource = function () { return this.toString(); }
- Iterator.prototype[ITERATOR_SYMBOL] = function () {
- return this;
- };
-
-
- function iteratorValue(type, k, v, iteratorResult) {
- var value = type === 0 ? k : type === 1 ? v : [k, v];
- iteratorResult ? (iteratorResult.value = value) : (iteratorResult = {
- value: value, done: false
- });
- return iteratorResult;
- }
-
- function iteratorDone() {
- return { value: undefined, done: true };
- }
-
- function hasIterator(maybeIterable) {
- return !!getIteratorFn(maybeIterable);
- }
-
- function isIterator(maybeIterator) {
- return maybeIterator && typeof maybeIterator.next === 'function';
- }
-
- function getIterator(iterable) {
- var iteratorFn = getIteratorFn(iterable);
- return iteratorFn && iteratorFn.call(iterable);
- }
-
- function getIteratorFn(iterable) {
- var iteratorFn = iterable && (
- (REAL_ITERATOR_SYMBOL && iterable[REAL_ITERATOR_SYMBOL]) ||
- iterable[FAUX_ITERATOR_SYMBOL]
- );
- if (typeof iteratorFn === 'function') {
- return iteratorFn;
- }
- }
-
- function isArrayLike(value) {
- return value && typeof value.length === 'number';
- }
-
- createClass(Seq, Iterable);
- function Seq(value) {
- return value === null || value === undefined ? emptySequence() :
- isIterable(value) ? value.toSeq() : seqFromValue(value);
- }
-
- Seq.of = function(/*...values*/) {
- return Seq(arguments);
- };
-
- Seq.prototype.toSeq = function() {
- return this;
- };
-
- Seq.prototype.toString = function() {
- return this.__toString('Seq {', '}');
- };
-
- Seq.prototype.cacheResult = function() {
- if (!this._cache && this.__iterateUncached) {
- this._cache = this.entrySeq().toArray();
- this.size = this._cache.length;
- }
- return this;
- };
-
- // abstract __iterateUncached(fn, reverse)
-
- Seq.prototype.__iterate = function(fn, reverse) {
- return seqIterate(this, fn, reverse, true);
- };
-
- // abstract __iteratorUncached(type, reverse)
-
- Seq.prototype.__iterator = function(type, reverse) {
- return seqIterator(this, type, reverse, true);
- };
-
-
-
- createClass(KeyedSeq, Seq);
- function KeyedSeq(value) {
- return value === null || value === undefined ?
- emptySequence().toKeyedSeq() :
- isIterable(value) ?
- (isKeyed(value) ? value.toSeq() : value.fromEntrySeq()) :
- keyedSeqFromValue(value);
- }
-
- KeyedSeq.prototype.toKeyedSeq = function() {
- return this;
- };
-
-
-
- createClass(IndexedSeq, Seq);
- function IndexedSeq(value) {
- return value === null || value === undefined ? emptySequence() :
- !isIterable(value) ? indexedSeqFromValue(value) :
- isKeyed(value) ? value.entrySeq() : value.toIndexedSeq();
- }
-
- IndexedSeq.of = function(/*...values*/) {
- return IndexedSeq(arguments);
- };
-
- IndexedSeq.prototype.toIndexedSeq = function() {
- return this;
- };
-
- IndexedSeq.prototype.toString = function() {
- return this.__toString('Seq [', ']');
- };
-
- IndexedSeq.prototype.__iterate = function(fn, reverse) {
- return seqIterate(this, fn, reverse, false);
- };
-
- IndexedSeq.prototype.__iterator = function(type, reverse) {
- return seqIterator(this, type, reverse, false);
- };
-
-
-
- createClass(SetSeq, Seq);
- function SetSeq(value) {
- return (
- value === null || value === undefined ? emptySequence() :
- !isIterable(value) ? indexedSeqFromValue(value) :
- isKeyed(value) ? value.entrySeq() : value
- ).toSetSeq();
- }
-
- SetSeq.of = function(/*...values*/) {
- return SetSeq(arguments);
- };
-
- SetSeq.prototype.toSetSeq = function() {
- return this;
- };
-
-
-
- Seq.isSeq = isSeq;
- Seq.Keyed = KeyedSeq;
- Seq.Set = SetSeq;
- Seq.Indexed = IndexedSeq;
-
- var IS_SEQ_SENTINEL = '@@__IMMUTABLE_SEQ__@@';
-
- Seq.prototype[IS_SEQ_SENTINEL] = true;
-
-
-
- createClass(ArraySeq, IndexedSeq);
- function ArraySeq(array) {
- this._array = array;
- this.size = array.length;
- }
-
- ArraySeq.prototype.get = function(index, notSetValue) {
- return this.has(index) ? this._array[wrapIndex(this, index)] : notSetValue;
- };
-
- ArraySeq.prototype.__iterate = function(fn, reverse) {
- var array = this._array;
- var maxIndex = array.length - 1;
- for (var ii = 0; ii <= maxIndex; ii++) {
- if (fn(array[reverse ? maxIndex - ii : ii], ii, this) === false) {
- return ii + 1;
- }
- }
- return ii;
- };
-
- ArraySeq.prototype.__iterator = function(type, reverse) {
- var array = this._array;
- var maxIndex = array.length - 1;
- var ii = 0;
- return new Iterator(function()
- {return ii > maxIndex ?
- iteratorDone() :
- iteratorValue(type, ii, array[reverse ? maxIndex - ii++ : ii++])}
- );
- };
-
-
-
- createClass(ObjectSeq, KeyedSeq);
- function ObjectSeq(object) {
- var keys = Object.keys(object);
- this._object = object;
- this._keys = keys;
- this.size = keys.length;
- }
-
- ObjectSeq.prototype.get = function(key, notSetValue) {
- if (notSetValue !== undefined && !this.has(key)) {
- return notSetValue;
- }
- return this._object[key];
- };
-
- ObjectSeq.prototype.has = function(key) {
- return this._object.hasOwnProperty(key);
- };
-
- ObjectSeq.prototype.__iterate = function(fn, reverse) {
- var object = this._object;
- var keys = this._keys;
- var maxIndex = keys.length - 1;
- for (var ii = 0; ii <= maxIndex; ii++) {
- var key = keys[reverse ? maxIndex - ii : ii];
- if (fn(object[key], key, this) === false) {
- return ii + 1;
- }
- }
- return ii;
- };
-
- ObjectSeq.prototype.__iterator = function(type, reverse) {
- var object = this._object;
- var keys = this._keys;
- var maxIndex = keys.length - 1;
- var ii = 0;
- return new Iterator(function() {
- var key = keys[reverse ? maxIndex - ii : ii];
- return ii++ > maxIndex ?
- iteratorDone() :
- iteratorValue(type, key, object[key]);
- });
- };
-
- ObjectSeq.prototype[IS_ORDERED_SENTINEL] = true;
-
-
- createClass(IterableSeq, IndexedSeq);
- function IterableSeq(iterable) {
- this._iterable = iterable;
- this.size = iterable.length || iterable.size;
- }
-
- IterableSeq.prototype.__iterateUncached = function(fn, reverse) {
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var iterable = this._iterable;
- var iterator = getIterator(iterable);
- var iterations = 0;
- if (isIterator(iterator)) {
- var step;
- while (!(step = iterator.next()).done) {
- if (fn(step.value, iterations++, this) === false) {
- break;
- }
- }
- }
- return iterations;
- };
-
- IterableSeq.prototype.__iteratorUncached = function(type, reverse) {
- if (reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- var iterable = this._iterable;
- var iterator = getIterator(iterable);
- if (!isIterator(iterator)) {
- return new Iterator(iteratorDone);
- }
- var iterations = 0;
- return new Iterator(function() {
- var step = iterator.next();
- return step.done ? step : iteratorValue(type, iterations++, step.value);
- });
- };
-
-
-
- createClass(IteratorSeq, IndexedSeq);
- function IteratorSeq(iterator) {
- this._iterator = iterator;
- this._iteratorCache = [];
- }
-
- IteratorSeq.prototype.__iterateUncached = function(fn, reverse) {
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var iterator = this._iterator;
- var cache = this._iteratorCache;
- var iterations = 0;
- while (iterations < cache.length) {
- if (fn(cache[iterations], iterations++, this) === false) {
- return iterations;
- }
- }
- var step;
- while (!(step = iterator.next()).done) {
- var val = step.value;
- cache[iterations] = val;
- if (fn(val, iterations++, this) === false) {
- break;
- }
- }
- return iterations;
- };
-
- IteratorSeq.prototype.__iteratorUncached = function(type, reverse) {
- if (reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- var iterator = this._iterator;
- var cache = this._iteratorCache;
- var iterations = 0;
- return new Iterator(function() {
- if (iterations >= cache.length) {
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- cache[iterations] = step.value;
- }
- return iteratorValue(type, iterations, cache[iterations++]);
- });
- };
-
-
-
-
- // # pragma Helper functions
-
- function isSeq(maybeSeq) {
- return !!(maybeSeq && maybeSeq[IS_SEQ_SENTINEL]);
- }
-
- var EMPTY_SEQ;
-
- function emptySequence() {
- return EMPTY_SEQ || (EMPTY_SEQ = new ArraySeq([]));
- }
-
- function keyedSeqFromValue(value) {
- var seq =
- Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :
- isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :
- hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :
- typeof value === 'object' ? new ObjectSeq(value) :
- undefined;
- if (!seq) {
- throw new TypeError(
- 'Expected Array or iterable object of [k, v] entries, '+
- 'or keyed object: ' + value
- );
- }
- return seq;
- }
-
- function indexedSeqFromValue(value) {
- var seq = maybeIndexedSeqFromValue(value);
- if (!seq) {
- throw new TypeError(
- 'Expected Array or iterable object of values: ' + value
- );
- }
- return seq;
- }
-
- function seqFromValue(value) {
- var seq = maybeIndexedSeqFromValue(value) ||
- (typeof value === 'object' && new ObjectSeq(value));
- if (!seq) {
- throw new TypeError(
- 'Expected Array or iterable object of values, or keyed object: ' + value
- );
- }
- return seq;
- }
-
- function maybeIndexedSeqFromValue(value) {
- return (
- isArrayLike(value) ? new ArraySeq(value) :
- isIterator(value) ? new IteratorSeq(value) :
- hasIterator(value) ? new IterableSeq(value) :
- undefined
- );
- }
-
- function seqIterate(seq, fn, reverse, useKeys) {
- var cache = seq._cache;
- if (cache) {
- var maxIndex = cache.length - 1;
- for (var ii = 0; ii <= maxIndex; ii++) {
- var entry = cache[reverse ? maxIndex - ii : ii];
- if (fn(entry[1], useKeys ? entry[0] : ii, seq) === false) {
- return ii + 1;
- }
- }
- return ii;
- }
- return seq.__iterateUncached(fn, reverse);
- }
-
- function seqIterator(seq, type, reverse, useKeys) {
- var cache = seq._cache;
- if (cache) {
- var maxIndex = cache.length - 1;
- var ii = 0;
- return new Iterator(function() {
- var entry = cache[reverse ? maxIndex - ii : ii];
- return ii++ > maxIndex ?
- iteratorDone() :
- iteratorValue(type, useKeys ? entry[0] : ii - 1, entry[1]);
- });
- }
- return seq.__iteratorUncached(type, reverse);
- }
-
- function fromJS(json, converter) {
- return converter ?
- fromJSWith(converter, json, '', {'': json}) :
- fromJSDefault(json);
- }
-
- function fromJSWith(converter, json, key, parentJSON) {
- if (Array.isArray(json)) {
- return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k) {return fromJSWith(converter, v, k, json)}));
- }
- if (isPlainObj(json)) {
- return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k) {return fromJSWith(converter, v, k, json)}));
- }
- return json;
- }
-
- function fromJSDefault(json) {
- if (Array.isArray(json)) {
- return IndexedSeq(json).map(fromJSDefault).toList();
- }
- if (isPlainObj(json)) {
- return KeyedSeq(json).map(fromJSDefault).toMap();
- }
- return json;
- }
-
- function isPlainObj(value) {
- return value && (value.constructor === Object || value.constructor === undefined);
- }
-
- /**
- * An extension of the "same-value" algorithm as [described for use by ES6 Map
- * and Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Key_equality)
- *
- * NaN is considered the same as NaN, however -0 and 0 are considered the same
- * value, which is different from the algorithm described by
- * [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
- *
- * This is extended further to allow Objects to describe the values they
- * represent, by way of `valueOf` or `equals` (and `hashCode`).
- *
- * Note: because of this extension, the key equality of Immutable.Map and the
- * value equality of Immutable.Set will differ from ES6 Map and Set.
- *
- * ### Defining custom values
- *
- * The easiest way to describe the value an object represents is by implementing
- * `valueOf`. For example, `Date` represents a value by returning a unix
- * timestamp for `valueOf`:
- *
- * var date1 = new Date(1234567890000); // Fri Feb 13 2009 ...
- * var date2 = new Date(1234567890000);
- * date1.valueOf(); // 1234567890000
- * assert( date1 !== date2 );
- * assert( Immutable.is( date1, date2 ) );
- *
- * Note: overriding `valueOf` may have other implications if you use this object
- * where JavaScript expects a primitive, such as implicit string coercion.
- *
- * For more complex types, especially collections, implementing `valueOf` may
- * not be performant. An alternative is to implement `equals` and `hashCode`.
- *
- * `equals` takes another object, presumably of similar type, and returns true
- * if the it is equal. Equality is symmetrical, so the same result should be
- * returned if this and the argument are flipped.
- *
- * assert( a.equals(b) === b.equals(a) );
- *
- * `hashCode` returns a 32bit integer number representing the object which will
- * be used to determine how to store the value object in a Map or Set. You must
- * provide both or neither methods, one must not exist without the other.
- *
- * Also, an important relationship between these methods must be upheld: if two
- * values are equal, they *must* return the same hashCode. If the values are not
- * equal, they might have the same hashCode; this is called a hash collision,
- * and while undesirable for performance reasons, it is acceptable.
- *
- * if (a.equals(b)) {
- * assert( a.hashCode() === b.hashCode() );
- * }
- *
- * All Immutable collections implement `equals` and `hashCode`.
- *
- */
- function is(valueA, valueB) {
- if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) {
- return true;
- }
- if (!valueA || !valueB) {
- return false;
- }
- if (typeof valueA.valueOf === 'function' &&
- typeof valueB.valueOf === 'function') {
- valueA = valueA.valueOf();
- valueB = valueB.valueOf();
- if (valueA === valueB || (valueA !== valueA && valueB !== valueB)) {
- return true;
- }
- if (!valueA || !valueB) {
- return false;
- }
- }
- if (typeof valueA.equals === 'function' &&
- typeof valueB.equals === 'function' &&
- valueA.equals(valueB)) {
- return true;
- }
- return false;
- }
-
- function deepEqual(a, b) {
- if (a === b) {
- return true;
- }
-
- if (
- !isIterable(b) ||
- a.size !== undefined && b.size !== undefined && a.size !== b.size ||
- a.__hash !== undefined && b.__hash !== undefined && a.__hash !== b.__hash ||
- isKeyed(a) !== isKeyed(b) ||
- isIndexed(a) !== isIndexed(b) ||
- isOrdered(a) !== isOrdered(b)
- ) {
- return false;
- }
-
- if (a.size === 0 && b.size === 0) {
- return true;
- }
-
- var notAssociative = !isAssociative(a);
-
- if (isOrdered(a)) {
- var entries = a.entries();
- return b.every(function(v, k) {
- var entry = entries.next().value;
- return entry && is(entry[1], v) && (notAssociative || is(entry[0], k));
- }) && entries.next().done;
- }
-
- var flipped = false;
-
- if (a.size === undefined) {
- if (b.size === undefined) {
- if (typeof a.cacheResult === 'function') {
- a.cacheResult();
- }
- } else {
- flipped = true;
- var _ = a;
- a = b;
- b = _;
- }
- }
-
- var allEqual = true;
- var bSize = b.__iterate(function(v, k) {
- if (notAssociative ? !a.has(v) :
- flipped ? !is(v, a.get(k, NOT_SET)) : !is(a.get(k, NOT_SET), v)) {
- allEqual = false;
- return false;
- }
- });
-
- return allEqual && a.size === bSize;
- }
-
- createClass(Repeat, IndexedSeq);
-
- function Repeat(value, times) {
- if (!(this instanceof Repeat)) {
- return new Repeat(value, times);
- }
- this._value = value;
- this.size = times === undefined ? Infinity : Math.max(0, times);
- if (this.size === 0) {
- if (EMPTY_REPEAT) {
- return EMPTY_REPEAT;
- }
- EMPTY_REPEAT = this;
- }
- }
-
- Repeat.prototype.toString = function() {
- if (this.size === 0) {
- return 'Repeat []';
- }
- return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';
- };
-
- Repeat.prototype.get = function(index, notSetValue) {
- return this.has(index) ? this._value : notSetValue;
- };
-
- Repeat.prototype.includes = function(searchValue) {
- return is(this._value, searchValue);
- };
-
- Repeat.prototype.slice = function(begin, end) {
- var size = this.size;
- return wholeSlice(begin, end, size) ? this :
- new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));
- };
-
- Repeat.prototype.reverse = function() {
- return this;
- };
-
- Repeat.prototype.indexOf = function(searchValue) {
- if (is(this._value, searchValue)) {
- return 0;
- }
- return -1;
- };
-
- Repeat.prototype.lastIndexOf = function(searchValue) {
- if (is(this._value, searchValue)) {
- return this.size;
- }
- return -1;
- };
-
- Repeat.prototype.__iterate = function(fn, reverse) {
- for (var ii = 0; ii < this.size; ii++) {
- if (fn(this._value, ii, this) === false) {
- return ii + 1;
- }
- }
- return ii;
- };
-
- Repeat.prototype.__iterator = function(type, reverse) {var this$0 = this;
- var ii = 0;
- return new Iterator(function()
- {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value) : iteratorDone()}
- );
- };
-
- Repeat.prototype.equals = function(other) {
- return other instanceof Repeat ?
- is(this._value, other._value) :
- deepEqual(other);
- };
-
-
- var EMPTY_REPEAT;
-
- function invariant(condition, error) {
- if (!condition) throw new Error(error);
- }
-
- createClass(Range, IndexedSeq);
-
- function Range(start, end, step) {
- if (!(this instanceof Range)) {
- return new Range(start, end, step);
- }
- invariant(step !== 0, 'Cannot step a Range by 0');
- start = start || 0;
- if (end === undefined) {
- end = Infinity;
- }
- step = step === undefined ? 1 : Math.abs(step);
- if (end < start) {
- step = -step;
- }
- this._start = start;
- this._end = end;
- this._step = step;
- this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1);
- if (this.size === 0) {
- if (EMPTY_RANGE) {
- return EMPTY_RANGE;
- }
- EMPTY_RANGE = this;
- }
- }
-
- Range.prototype.toString = function() {
- if (this.size === 0) {
- return 'Range []';
- }
- return 'Range [ ' +
- this._start + '...' + this._end +
- (this._step !== 1 ? ' by ' + this._step : '') +
- ' ]';
- };
-
- Range.prototype.get = function(index, notSetValue) {
- return this.has(index) ?
- this._start + wrapIndex(this, index) * this._step :
- notSetValue;
- };
-
- Range.prototype.includes = function(searchValue) {
- var possibleIndex = (searchValue - this._start) / this._step;
- return possibleIndex >= 0 &&
- possibleIndex < this.size &&
- possibleIndex === Math.floor(possibleIndex);
- };
-
- Range.prototype.slice = function(begin, end) {
- if (wholeSlice(begin, end, this.size)) {
- return this;
- }
- begin = resolveBegin(begin, this.size);
- end = resolveEnd(end, this.size);
- if (end <= begin) {
- return new Range(0, 0);
- }
- return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);
- };
-
- Range.prototype.indexOf = function(searchValue) {
- var offsetValue = searchValue - this._start;
- if (offsetValue % this._step === 0) {
- var index = offsetValue / this._step;
- if (index >= 0 && index < this.size) {
- return index
- }
- }
- return -1;
- };
-
- Range.prototype.lastIndexOf = function(searchValue) {
- return this.indexOf(searchValue);
- };
-
- Range.prototype.__iterate = function(fn, reverse) {
- var maxIndex = this.size - 1;
- var step = this._step;
- var value = reverse ? this._start + maxIndex * step : this._start;
- for (var ii = 0; ii <= maxIndex; ii++) {
- if (fn(value, ii, this) === false) {
- return ii + 1;
- }
- value += reverse ? -step : step;
- }
- return ii;
- };
-
- Range.prototype.__iterator = function(type, reverse) {
- var maxIndex = this.size - 1;
- var step = this._step;
- var value = reverse ? this._start + maxIndex * step : this._start;
- var ii = 0;
- return new Iterator(function() {
- var v = value;
- value += reverse ? -step : step;
- return ii > maxIndex ? iteratorDone() : iteratorValue(type, ii++, v);
- });
- };
-
- Range.prototype.equals = function(other) {
- return other instanceof Range ?
- this._start === other._start &&
- this._end === other._end &&
- this._step === other._step :
- deepEqual(this, other);
- };
-
-
- var EMPTY_RANGE;
-
- createClass(Collection, Iterable);
- function Collection() {
- throw TypeError('Abstract');
- }
-
-
- createClass(KeyedCollection, Collection);function KeyedCollection() {}
-
- createClass(IndexedCollection, Collection);function IndexedCollection() {}
-
- createClass(SetCollection, Collection);function SetCollection() {}
-
-
- Collection.Keyed = KeyedCollection;
- Collection.Indexed = IndexedCollection;
- Collection.Set = SetCollection;
-
- var imul =
- typeof Math.imul === 'function' && Math.imul(0xffffffff, 2) === -2 ?
- Math.imul :
- function imul(a, b) {
- a = a | 0; // int
- b = b | 0; // int
- var c = a & 0xffff;
- var d = b & 0xffff;
- // Shift by 0 fixes the sign on the high part.
- return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int
- };
-
- // v8 has an optimization for storing 31-bit signed numbers.
- // Values which have either 00 or 11 as the high order bits qualify.
- // This function drops the highest order bit in a signed number, maintaining
- // the sign bit.
- function smi(i32) {
- return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);
- }
-
- function hash(o) {
- if (o === false || o === null || o === undefined) {
- return 0;
- }
- if (typeof o.valueOf === 'function') {
- o = o.valueOf();
- if (o === false || o === null || o === undefined) {
- return 0;
- }
- }
- if (o === true) {
- return 1;
- }
- var type = typeof o;
- if (type === 'number') {
- if (o !== o || o === Infinity) {
- return 0;
- }
- var h = o | 0;
- if (h !== o) {
- h ^= o * 0xFFFFFFFF;
- }
- while (o > 0xFFFFFFFF) {
- o /= 0xFFFFFFFF;
- h ^= o;
- }
- return smi(h);
- }
- if (type === 'string') {
- return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o) : hashString(o);
- }
- if (typeof o.hashCode === 'function') {
- return o.hashCode();
- }
- if (type === 'object') {
- return hashJSObj(o);
- }
- if (typeof o.toString === 'function') {
- return hashString(o.toString());
- }
- throw new Error('Value type ' + type + ' cannot be hashed.');
- }
-
- function cachedHashString(string) {
- var hash = stringHashCache[string];
- if (hash === undefined) {
- hash = hashString(string);
- if (STRING_HASH_CACHE_SIZE === STRING_HASH_CACHE_MAX_SIZE) {
- STRING_HASH_CACHE_SIZE = 0;
- stringHashCache = {};
- }
- STRING_HASH_CACHE_SIZE++;
- stringHashCache[string] = hash;
- }
- return hash;
- }
-
- // http://jsperf.com/hashing-strings
- function hashString(string) {
- // This is the hash from JVM
- // The hash code for a string is computed as
- // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],
- // where s[i] is the ith character of the string and n is the length of
- // the string. We "mod" the result to make it between 0 (inclusive) and 2^31
- // (exclusive) by dropping high bits.
- var hash = 0;
- for (var ii = 0; ii < string.length; ii++) {
- hash = 31 * hash + string.charCodeAt(ii) | 0;
- }
- return smi(hash);
- }
-
- function hashJSObj(obj) {
- var hash;
- if (usingWeakMap) {
- hash = weakMap.get(obj);
- if (hash !== undefined) {
- return hash;
- }
- }
-
- hash = obj[UID_HASH_KEY];
- if (hash !== undefined) {
- return hash;
- }
-
- if (!canDefineProperty) {
- hash = obj.propertyIsEnumerable && obj.propertyIsEnumerable[UID_HASH_KEY];
- if (hash !== undefined) {
- return hash;
- }
-
- hash = getIENodeHash(obj);
- if (hash !== undefined) {
- return hash;
- }
- }
-
- hash = ++objHashUID;
- if (objHashUID & 0x40000000) {
- objHashUID = 0;
- }
-
- if (usingWeakMap) {
- weakMap.set(obj, hash);
- } else if (isExtensible !== undefined && isExtensible(obj) === false) {
- throw new Error('Non-extensible objects are not allowed as keys.');
- } else if (canDefineProperty) {
- Object.defineProperty(obj, UID_HASH_KEY, {
- 'enumerable': false,
- 'configurable': false,
- 'writable': false,
- 'value': hash
- });
- } else if (obj.propertyIsEnumerable !== undefined &&
- obj.propertyIsEnumerable === obj.constructor.prototype.propertyIsEnumerable) {
- // Since we can't define a non-enumerable property on the object
- // we'll hijack one of the less-used non-enumerable properties to
- // save our hash on it. Since this is a function it will not show up in
- // `JSON.stringify` which is what we want.
- obj.propertyIsEnumerable = function() {
- return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);
- };
- obj.propertyIsEnumerable[UID_HASH_KEY] = hash;
- } else if (obj.nodeType !== undefined) {
- // At this point we couldn't get the IE `uniqueID` to use as a hash
- // and we couldn't use a non-enumerable property to exploit the
- // dontEnum bug so we simply add the `UID_HASH_KEY` on the node
- // itself.
- obj[UID_HASH_KEY] = hash;
- } else {
- throw new Error('Unable to set a non-enumerable property on object.');
- }
-
- return hash;
- }
-
- // Get references to ES5 object methods.
- var isExtensible = Object.isExtensible;
-
- // True if Object.defineProperty works as expected. IE8 fails this test.
- var canDefineProperty = (function() {
- try {
- Object.defineProperty({}, '@', {});
- return true;
- } catch (e) {
- return false;
- }
- }());
-
- // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it
- // and avoid memory leaks from the IE cloneNode bug.
- function getIENodeHash(node) {
- if (node && node.nodeType > 0) {
- switch (node.nodeType) {
- case 1: // Element
- return node.uniqueID;
- case 9: // Document
- return node.documentElement && node.documentElement.uniqueID;
- }
- }
- }
-
- // If possible, use a WeakMap.
- var usingWeakMap = typeof WeakMap === 'function';
- var weakMap;
- if (usingWeakMap) {
- weakMap = new WeakMap();
- }
-
- var objHashUID = 0;
-
- var UID_HASH_KEY = '__immutablehash__';
- if (typeof Symbol === 'function') {
- UID_HASH_KEY = Symbol(UID_HASH_KEY);
- }
-
- var STRING_HASH_CACHE_MIN_STRLEN = 16;
- var STRING_HASH_CACHE_MAX_SIZE = 255;
- var STRING_HASH_CACHE_SIZE = 0;
- var stringHashCache = {};
-
- function assertNotInfinite(size) {
- invariant(
- size !== Infinity,
- 'Cannot perform this action with an infinite size.'
- );
- }
-
- createClass(Map, KeyedCollection);
-
- // @pragma Construction
-
- function Map(value) {
- return value === null || value === undefined ? emptyMap() :
- isMap(value) && !isOrdered(value) ? value :
- emptyMap().withMutations(function(map ) {
- var iter = KeyedIterable(value);
- assertNotInfinite(iter.size);
- iter.forEach(function(v, k) {return map.set(k, v)});
- });
- }
-
- Map.of = function() {var keyValues = SLICE$0.call(arguments, 0);
- return emptyMap().withMutations(function(map ) {
- for (var i = 0; i < keyValues.length; i += 2) {
- if (i + 1 >= keyValues.length) {
- throw new Error('Missing value for key: ' + keyValues[i]);
- }
- map.set(keyValues[i], keyValues[i + 1]);
- }
- });
- };
-
- Map.prototype.toString = function() {
- return this.__toString('Map {', '}');
- };
-
- // @pragma Access
-
- Map.prototype.get = function(k, notSetValue) {
- return this._root ?
- this._root.get(0, undefined, k, notSetValue) :
- notSetValue;
- };
-
- // @pragma Modification
-
- Map.prototype.set = function(k, v) {
- return updateMap(this, k, v);
- };
-
- Map.prototype.setIn = function(keyPath, v) {
- return this.updateIn(keyPath, NOT_SET, function() {return v});
- };
-
- Map.prototype.remove = function(k) {
- return updateMap(this, k, NOT_SET);
- };
-
- Map.prototype.deleteIn = function(keyPath) {
- return this.updateIn(keyPath, function() {return NOT_SET});
- };
-
- Map.prototype.update = function(k, notSetValue, updater) {
- return arguments.length === 1 ?
- k(this) :
- this.updateIn([k], notSetValue, updater);
- };
-
- Map.prototype.updateIn = function(keyPath, notSetValue, updater) {
- if (!updater) {
- updater = notSetValue;
- notSetValue = undefined;
- }
- var updatedValue = updateInDeepMap(
- this,
- forceIterator(keyPath),
- notSetValue,
- updater
- );
- return updatedValue === NOT_SET ? undefined : updatedValue;
- };
-
- Map.prototype.clear = function() {
- if (this.size === 0) {
- return this;
- }
- if (this.__ownerID) {
- this.size = 0;
- this._root = null;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return emptyMap();
- };
-
- // @pragma Composition
-
- Map.prototype.merge = function(/*...iters*/) {
- return mergeIntoMapWith(this, undefined, arguments);
- };
-
- Map.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return mergeIntoMapWith(this, merger, iters);
- };
-
- Map.prototype.mergeIn = function(keyPath) {var iters = SLICE$0.call(arguments, 1);
- return this.updateIn(
- keyPath,
- emptyMap(),
- function(m ) {return typeof m.merge === 'function' ?
- m.merge.apply(m, iters) :
- iters[iters.length - 1]}
- );
- };
-
- Map.prototype.mergeDeep = function(/*...iters*/) {
- return mergeIntoMapWith(this, deepMerger, arguments);
- };
-
- Map.prototype.mergeDeepWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return mergeIntoMapWith(this, deepMergerWith(merger), iters);
- };
-
- Map.prototype.mergeDeepIn = function(keyPath) {var iters = SLICE$0.call(arguments, 1);
- return this.updateIn(
- keyPath,
- emptyMap(),
- function(m ) {return typeof m.mergeDeep === 'function' ?
- m.mergeDeep.apply(m, iters) :
- iters[iters.length - 1]}
- );
- };
-
- Map.prototype.sort = function(comparator) {
- // Late binding
- return OrderedMap(sortFactory(this, comparator));
- };
-
- Map.prototype.sortBy = function(mapper, comparator) {
- // Late binding
- return OrderedMap(sortFactory(this, comparator, mapper));
- };
-
- // @pragma Mutability
-
- Map.prototype.withMutations = function(fn) {
- var mutable = this.asMutable();
- fn(mutable);
- return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID) : this;
- };
-
- Map.prototype.asMutable = function() {
- return this.__ownerID ? this : this.__ensureOwner(new OwnerID());
- };
-
- Map.prototype.asImmutable = function() {
- return this.__ensureOwner();
- };
-
- Map.prototype.wasAltered = function() {
- return this.__altered;
- };
-
- Map.prototype.__iterator = function(type, reverse) {
- return new MapIterator(this, type, reverse);
- };
-
- Map.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- var iterations = 0;
- this._root && this._root.iterate(function(entry ) {
- iterations++;
- return fn(entry[1], entry[0], this$0);
- }, reverse);
- return iterations;
- };
-
- Map.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- if (!ownerID) {
- this.__ownerID = ownerID;
- this.__altered = false;
- return this;
- }
- return makeMap(this.size, this._root, ownerID, this.__hash);
- };
-
-
- function isMap(maybeMap) {
- return !!(maybeMap && maybeMap[IS_MAP_SENTINEL]);
- }
-
- Map.isMap = isMap;
-
- var IS_MAP_SENTINEL = '@@__IMMUTABLE_MAP__@@';
-
- var MapPrototype = Map.prototype;
- MapPrototype[IS_MAP_SENTINEL] = true;
- MapPrototype[DELETE] = MapPrototype.remove;
- MapPrototype.removeIn = MapPrototype.deleteIn;
-
-
- // #pragma Trie Nodes
-
-
-
- function ArrayMapNode(ownerID, entries) {
- this.ownerID = ownerID;
- this.entries = entries;
- }
-
- ArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- var entries = this.entries;
- for (var ii = 0, len = entries.length; ii < len; ii++) {
- if (is(key, entries[ii][0])) {
- return entries[ii][1];
- }
- }
- return notSetValue;
- };
-
- ArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- var removed = value === NOT_SET;
-
- var entries = this.entries;
- var idx = 0;
- for (var len = entries.length; idx < len; idx++) {
- if (is(key, entries[idx][0])) {
- break;
- }
- }
- var exists = idx < len;
-
- if (exists ? entries[idx][1] === value : removed) {
- return this;
- }
-
- SetRef(didAlter);
- (removed || !exists) && SetRef(didChangeSize);
-
- if (removed && entries.length === 1) {
- return; // undefined
- }
-
- if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) {
- return createNodes(ownerID, entries, key, value);
- }
-
- var isEditable = ownerID && ownerID === this.ownerID;
- var newEntries = isEditable ? entries : arrCopy(entries);
-
- if (exists) {
- if (removed) {
- idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop());
- } else {
- newEntries[idx] = [key, value];
- }
- } else {
- newEntries.push([key, value]);
- }
-
- if (isEditable) {
- this.entries = newEntries;
- return this;
- }
-
- return new ArrayMapNode(ownerID, newEntries);
- };
-
-
-
-
- function BitmapIndexedNode(ownerID, bitmap, nodes) {
- this.ownerID = ownerID;
- this.bitmap = bitmap;
- this.nodes = nodes;
- }
-
- BitmapIndexedNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
- var bit = (1 << ((shift === 0 ? keyHash : keyHash >>> shift) & MASK));
- var bitmap = this.bitmap;
- return (bitmap & bit) === 0 ? notSetValue :
- this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);
- };
-
- BitmapIndexedNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
- var keyHashFrag = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
- var bit = 1 << keyHashFrag;
- var bitmap = this.bitmap;
- var exists = (bitmap & bit) !== 0;
-
- if (!exists && value === NOT_SET) {
- return this;
- }
-
- var idx = popCount(bitmap & (bit - 1));
- var nodes = this.nodes;
- var node = exists ? nodes[idx] : undefined;
- var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);
-
- if (newNode === node) {
- return this;
- }
-
- if (!exists && newNode && nodes.length >= MAX_BITMAP_INDEXED_SIZE) {
- return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);
- }
-
- if (exists && !newNode && nodes.length === 2 && isLeafNode(nodes[idx ^ 1])) {
- return nodes[idx ^ 1];
- }
-
- if (exists && newNode && nodes.length === 1 && isLeafNode(newNode)) {
- return newNode;
- }
-
- var isEditable = ownerID && ownerID === this.ownerID;
- var newBitmap = exists ? newNode ? bitmap : bitmap ^ bit : bitmap | bit;
- var newNodes = exists ? newNode ?
- setIn(nodes, idx, newNode, isEditable) :
- spliceOut(nodes, idx, isEditable) :
- spliceIn(nodes, idx, newNode, isEditable);
-
- if (isEditable) {
- this.bitmap = newBitmap;
- this.nodes = newNodes;
- return this;
- }
-
- return new BitmapIndexedNode(ownerID, newBitmap, newNodes);
- };
-
-
-
-
- function HashArrayMapNode(ownerID, count, nodes) {
- this.ownerID = ownerID;
- this.count = count;
- this.nodes = nodes;
- }
-
- HashArrayMapNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
- var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
- var node = this.nodes[idx];
- return node ? node.get(shift + SHIFT, keyHash, key, notSetValue) : notSetValue;
- };
-
- HashArrayMapNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
- var idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
- var removed = value === NOT_SET;
- var nodes = this.nodes;
- var node = nodes[idx];
-
- if (removed && !node) {
- return this;
- }
-
- var newNode = updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);
- if (newNode === node) {
- return this;
- }
-
- var newCount = this.count;
- if (!node) {
- newCount++;
- } else if (!newNode) {
- newCount--;
- if (newCount < MIN_HASH_ARRAY_MAP_SIZE) {
- return packNodes(ownerID, nodes, newCount, idx);
- }
- }
-
- var isEditable = ownerID && ownerID === this.ownerID;
- var newNodes = setIn(nodes, idx, newNode, isEditable);
-
- if (isEditable) {
- this.count = newCount;
- this.nodes = newNodes;
- return this;
- }
-
- return new HashArrayMapNode(ownerID, newCount, newNodes);
- };
-
-
-
-
- function HashCollisionNode(ownerID, keyHash, entries) {
- this.ownerID = ownerID;
- this.keyHash = keyHash;
- this.entries = entries;
- }
-
- HashCollisionNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- var entries = this.entries;
- for (var ii = 0, len = entries.length; ii < len; ii++) {
- if (is(key, entries[ii][0])) {
- return entries[ii][1];
- }
- }
- return notSetValue;
- };
-
- HashCollisionNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- if (keyHash === undefined) {
- keyHash = hash(key);
- }
-
- var removed = value === NOT_SET;
-
- if (keyHash !== this.keyHash) {
- if (removed) {
- return this;
- }
- SetRef(didAlter);
- SetRef(didChangeSize);
- return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);
- }
-
- var entries = this.entries;
- var idx = 0;
- for (var len = entries.length; idx < len; idx++) {
- if (is(key, entries[idx][0])) {
- break;
- }
- }
- var exists = idx < len;
-
- if (exists ? entries[idx][1] === value : removed) {
- return this;
- }
-
- SetRef(didAlter);
- (removed || !exists) && SetRef(didChangeSize);
-
- if (removed && len === 2) {
- return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);
- }
-
- var isEditable = ownerID && ownerID === this.ownerID;
- var newEntries = isEditable ? entries : arrCopy(entries);
-
- if (exists) {
- if (removed) {
- idx === len - 1 ? newEntries.pop() : (newEntries[idx] = newEntries.pop());
- } else {
- newEntries[idx] = [key, value];
- }
- } else {
- newEntries.push([key, value]);
- }
-
- if (isEditable) {
- this.entries = newEntries;
- return this;
- }
-
- return new HashCollisionNode(ownerID, this.keyHash, newEntries);
- };
-
-
-
-
- function ValueNode(ownerID, keyHash, entry) {
- this.ownerID = ownerID;
- this.keyHash = keyHash;
- this.entry = entry;
- }
-
- ValueNode.prototype.get = function(shift, keyHash, key, notSetValue) {
- return is(key, this.entry[0]) ? this.entry[1] : notSetValue;
- };
-
- ValueNode.prototype.update = function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- var removed = value === NOT_SET;
- var keyMatch = is(key, this.entry[0]);
- if (keyMatch ? value === this.entry[1] : removed) {
- return this;
- }
-
- SetRef(didAlter);
-
- if (removed) {
- SetRef(didChangeSize);
- return; // undefined
- }
-
- if (keyMatch) {
- if (ownerID && ownerID === this.ownerID) {
- this.entry[1] = value;
- return this;
- }
- return new ValueNode(ownerID, this.keyHash, [key, value]);
- }
-
- SetRef(didChangeSize);
- return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);
- };
-
-
-
- // #pragma Iterators
-
- ArrayMapNode.prototype.iterate =
- HashCollisionNode.prototype.iterate = function (fn, reverse) {
- var entries = this.entries;
- for (var ii = 0, maxIndex = entries.length - 1; ii <= maxIndex; ii++) {
- if (fn(entries[reverse ? maxIndex - ii : ii]) === false) {
- return false;
- }
- }
- }
-
- BitmapIndexedNode.prototype.iterate =
- HashArrayMapNode.prototype.iterate = function (fn, reverse) {
- var nodes = this.nodes;
- for (var ii = 0, maxIndex = nodes.length - 1; ii <= maxIndex; ii++) {
- var node = nodes[reverse ? maxIndex - ii : ii];
- if (node && node.iterate(fn, reverse) === false) {
- return false;
- }
- }
- }
-
- ValueNode.prototype.iterate = function (fn, reverse) {
- return fn(this.entry);
- }
-
- createClass(MapIterator, Iterator);
-
- function MapIterator(map, type, reverse) {
- this._type = type;
- this._reverse = reverse;
- this._stack = map._root && mapIteratorFrame(map._root);
- }
-
- MapIterator.prototype.next = function() {
- var type = this._type;
- var stack = this._stack;
- while (stack) {
- var node = stack.node;
- var index = stack.index++;
- var maxIndex;
- if (node.entry) {
- if (index === 0) {
- return mapIteratorValue(type, node.entry);
- }
- } else if (node.entries) {
- maxIndex = node.entries.length - 1;
- if (index <= maxIndex) {
- return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index : index]);
- }
- } else {
- maxIndex = node.nodes.length - 1;
- if (index <= maxIndex) {
- var subNode = node.nodes[this._reverse ? maxIndex - index : index];
- if (subNode) {
- if (subNode.entry) {
- return mapIteratorValue(type, subNode.entry);
- }
- stack = this._stack = mapIteratorFrame(subNode, stack);
- }
- continue;
- }
- }
- stack = this._stack = this._stack.__prev;
- }
- return iteratorDone();
- };
-
-
- function mapIteratorValue(type, entry) {
- return iteratorValue(type, entry[0], entry[1]);
- }
-
- function mapIteratorFrame(node, prev) {
- return {
- node: node,
- index: 0,
- __prev: prev
- };
- }
-
- function makeMap(size, root, ownerID, hash) {
- var map = Object.create(MapPrototype);
- map.size = size;
- map._root = root;
- map.__ownerID = ownerID;
- map.__hash = hash;
- map.__altered = false;
- return map;
- }
-
- var EMPTY_MAP;
- function emptyMap() {
- return EMPTY_MAP || (EMPTY_MAP = makeMap(0));
- }
-
- function updateMap(map, k, v) {
- var newRoot;
- var newSize;
- if (!map._root) {
- if (v === NOT_SET) {
- return map;
- }
- newSize = 1;
- newRoot = new ArrayMapNode(map.__ownerID, [[k, v]]);
- } else {
- var didChangeSize = MakeRef(CHANGE_LENGTH);
- var didAlter = MakeRef(DID_ALTER);
- newRoot = updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);
- if (!didAlter.value) {
- return map;
- }
- newSize = map.size + (didChangeSize.value ? v === NOT_SET ? -1 : 1 : 0);
- }
- if (map.__ownerID) {
- map.size = newSize;
- map._root = newRoot;
- map.__hash = undefined;
- map.__altered = true;
- return map;
- }
- return newRoot ? makeMap(newSize, newRoot) : emptyMap();
- }
-
- function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
- if (!node) {
- if (value === NOT_SET) {
- return node;
- }
- SetRef(didAlter);
- SetRef(didChangeSize);
- return new ValueNode(ownerID, keyHash, [key, value]);
- }
- return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);
- }
-
- function isLeafNode(node) {
- return node.constructor === ValueNode || node.constructor === HashCollisionNode;
- }
-
- function mergeIntoNode(node, ownerID, shift, keyHash, entry) {
- if (node.keyHash === keyHash) {
- return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);
- }
-
- var idx1 = (shift === 0 ? node.keyHash : node.keyHash >>> shift) & MASK;
- var idx2 = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
-
- var newNode;
- var nodes = idx1 === idx2 ?
- [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :
- ((newNode = new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode] : [newNode, node]);
-
- return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);
- }
-
- function createNodes(ownerID, entries, key, value) {
- if (!ownerID) {
- ownerID = new OwnerID();
- }
- var node = new ValueNode(ownerID, hash(key), [key, value]);
- for (var ii = 0; ii < entries.length; ii++) {
- var entry = entries[ii];
- node = node.update(ownerID, 0, undefined, entry[0], entry[1]);
- }
- return node;
- }
-
- function packNodes(ownerID, nodes, count, excluding) {
- var bitmap = 0;
- var packedII = 0;
- var packedNodes = new Array(count);
- for (var ii = 0, bit = 1, len = nodes.length; ii < len; ii++, bit <<= 1) {
- var node = nodes[ii];
- if (node !== undefined && ii !== excluding) {
- bitmap |= bit;
- packedNodes[packedII++] = node;
- }
- }
- return new BitmapIndexedNode(ownerID, bitmap, packedNodes);
- }
-
- function expandNodes(ownerID, nodes, bitmap, including, node) {
- var count = 0;
- var expandedNodes = new Array(SIZE);
- for (var ii = 0; bitmap !== 0; ii++, bitmap >>>= 1) {
- expandedNodes[ii] = bitmap & 1 ? nodes[count++] : undefined;
- }
- expandedNodes[including] = node;
- return new HashArrayMapNode(ownerID, count + 1, expandedNodes);
- }
-
- function mergeIntoMapWith(map, merger, iterables) {
- var iters = [];
- for (var ii = 0; ii < iterables.length; ii++) {
- var value = iterables[ii];
- var iter = KeyedIterable(value);
- if (!isIterable(value)) {
- iter = iter.map(function(v ) {return fromJS(v)});
- }
- iters.push(iter);
- }
- return mergeIntoCollectionWith(map, merger, iters);
- }
-
- function deepMerger(existing, value, key) {
- return existing && existing.mergeDeep && isIterable(value) ?
- existing.mergeDeep(value) :
- is(existing, value) ? existing : value;
- }
-
- function deepMergerWith(merger) {
- return function(existing, value, key) {
- if (existing && existing.mergeDeepWith && isIterable(value)) {
- return existing.mergeDeepWith(merger, value);
- }
- var nextValue = merger(existing, value, key);
- return is(existing, nextValue) ? existing : nextValue;
- };
- }
-
- function mergeIntoCollectionWith(collection, merger, iters) {
- iters = iters.filter(function(x ) {return x.size !== 0});
- if (iters.length === 0) {
- return collection;
- }
- if (collection.size === 0 && !collection.__ownerID && iters.length === 1) {
- return collection.constructor(iters[0]);
- }
- return collection.withMutations(function(collection ) {
- var mergeIntoMap = merger ?
- function(value, key) {
- collection.update(key, NOT_SET, function(existing )
- {return existing === NOT_SET ? value : merger(existing, value, key)}
- );
- } :
- function(value, key) {
- collection.set(key, value);
- }
- for (var ii = 0; ii < iters.length; ii++) {
- iters[ii].forEach(mergeIntoMap);
- }
- });
- }
-
- function updateInDeepMap(existing, keyPathIter, notSetValue, updater) {
- var isNotSet = existing === NOT_SET;
- var step = keyPathIter.next();
- if (step.done) {
- var existingValue = isNotSet ? notSetValue : existing;
- var newValue = updater(existingValue);
- return newValue === existingValue ? existing : newValue;
- }
- invariant(
- isNotSet || (existing && existing.set),
- 'invalid keyPath'
- );
- var key = step.value;
- var nextExisting = isNotSet ? NOT_SET : existing.get(key, NOT_SET);
- var nextUpdated = updateInDeepMap(
- nextExisting,
- keyPathIter,
- notSetValue,
- updater
- );
- return nextUpdated === nextExisting ? existing :
- nextUpdated === NOT_SET ? existing.remove(key) :
- (isNotSet ? emptyMap() : existing).set(key, nextUpdated);
- }
-
- function popCount(x) {
- x = x - ((x >> 1) & 0x55555555);
- x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
- x = (x + (x >> 4)) & 0x0f0f0f0f;
- x = x + (x >> 8);
- x = x + (x >> 16);
- return x & 0x7f;
- }
-
- function setIn(array, idx, val, canEdit) {
- var newArray = canEdit ? array : arrCopy(array);
- newArray[idx] = val;
- return newArray;
- }
-
- function spliceIn(array, idx, val, canEdit) {
- var newLen = array.length + 1;
- if (canEdit && idx + 1 === newLen) {
- array[idx] = val;
- return array;
- }
- var newArray = new Array(newLen);
- var after = 0;
- for (var ii = 0; ii < newLen; ii++) {
- if (ii === idx) {
- newArray[ii] = val;
- after = -1;
- } else {
- newArray[ii] = array[ii + after];
- }
- }
- return newArray;
- }
-
- function spliceOut(array, idx, canEdit) {
- var newLen = array.length - 1;
- if (canEdit && idx === newLen) {
- array.pop();
- return array;
- }
- var newArray = new Array(newLen);
- var after = 0;
- for (var ii = 0; ii < newLen; ii++) {
- if (ii === idx) {
- after = 1;
- }
- newArray[ii] = array[ii + after];
- }
- return newArray;
- }
-
- var MAX_ARRAY_MAP_SIZE = SIZE / 4;
- var MAX_BITMAP_INDEXED_SIZE = SIZE / 2;
- var MIN_HASH_ARRAY_MAP_SIZE = SIZE / 4;
-
- createClass(List, IndexedCollection);
-
- // @pragma Construction
-
- function List(value) {
- var empty = emptyList();
- if (value === null || value === undefined) {
- return empty;
- }
- if (isList(value)) {
- return value;
- }
- var iter = IndexedIterable(value);
- var size = iter.size;
- if (size === 0) {
- return empty;
- }
- assertNotInfinite(size);
- if (size > 0 && size < SIZE) {
- return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));
- }
- return empty.withMutations(function(list ) {
- list.setSize(size);
- iter.forEach(function(v, i) {return list.set(i, v)});
- });
- }
-
- List.of = function(/*...values*/) {
- return this(arguments);
- };
-
- List.prototype.toString = function() {
- return this.__toString('List [', ']');
- };
-
- // @pragma Access
-
- List.prototype.get = function(index, notSetValue) {
- index = wrapIndex(this, index);
- if (index >= 0 && index < this.size) {
- index += this._origin;
- var node = listNodeFor(this, index);
- return node && node.array[index & MASK];
- }
- return notSetValue;
- };
-
- // @pragma Modification
-
- List.prototype.set = function(index, value) {
- return updateList(this, index, value);
- };
-
- List.prototype.remove = function(index) {
- return !this.has(index) ? this :
- index === 0 ? this.shift() :
- index === this.size - 1 ? this.pop() :
- this.splice(index, 1);
- };
-
- List.prototype.insert = function(index, value) {
- return this.splice(index, 0, value);
- };
-
- List.prototype.clear = function() {
- if (this.size === 0) {
- return this;
- }
- if (this.__ownerID) {
- this.size = this._origin = this._capacity = 0;
- this._level = SHIFT;
- this._root = this._tail = null;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return emptyList();
- };
-
- List.prototype.push = function(/*...values*/) {
- var values = arguments;
- var oldSize = this.size;
- return this.withMutations(function(list ) {
- setListBounds(list, 0, oldSize + values.length);
- for (var ii = 0; ii < values.length; ii++) {
- list.set(oldSize + ii, values[ii]);
- }
- });
- };
-
- List.prototype.pop = function() {
- return setListBounds(this, 0, -1);
- };
-
- List.prototype.unshift = function(/*...values*/) {
- var values = arguments;
- return this.withMutations(function(list ) {
- setListBounds(list, -values.length);
- for (var ii = 0; ii < values.length; ii++) {
- list.set(ii, values[ii]);
- }
- });
- };
-
- List.prototype.shift = function() {
- return setListBounds(this, 1);
- };
-
- // @pragma Composition
-
- List.prototype.merge = function(/*...iters*/) {
- return mergeIntoListWith(this, undefined, arguments);
- };
-
- List.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return mergeIntoListWith(this, merger, iters);
- };
-
- List.prototype.mergeDeep = function(/*...iters*/) {
- return mergeIntoListWith(this, deepMerger, arguments);
- };
-
- List.prototype.mergeDeepWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return mergeIntoListWith(this, deepMergerWith(merger), iters);
- };
-
- List.prototype.setSize = function(size) {
- return setListBounds(this, 0, size);
- };
-
- // @pragma Iteration
-
- List.prototype.slice = function(begin, end) {
- var size = this.size;
- if (wholeSlice(begin, end, size)) {
- return this;
- }
- return setListBounds(
- this,
- resolveBegin(begin, size),
- resolveEnd(end, size)
- );
- };
-
- List.prototype.__iterator = function(type, reverse) {
- var index = 0;
- var values = iterateList(this, reverse);
- return new Iterator(function() {
- var value = values();
- return value === DONE ?
- iteratorDone() :
- iteratorValue(type, index++, value);
- });
- };
-
- List.prototype.__iterate = function(fn, reverse) {
- var index = 0;
- var values = iterateList(this, reverse);
- var value;
- while ((value = values()) !== DONE) {
- if (fn(value, index++, this) === false) {
- break;
- }
- }
- return index;
- };
-
- List.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- if (!ownerID) {
- this.__ownerID = ownerID;
- return this;
- }
- return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);
- };
-
-
- function isList(maybeList) {
- return !!(maybeList && maybeList[IS_LIST_SENTINEL]);
- }
-
- List.isList = isList;
-
- var IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
-
- var ListPrototype = List.prototype;
- ListPrototype[IS_LIST_SENTINEL] = true;
- ListPrototype[DELETE] = ListPrototype.remove;
- ListPrototype.setIn = MapPrototype.setIn;
- ListPrototype.deleteIn =
- ListPrototype.removeIn = MapPrototype.removeIn;
- ListPrototype.update = MapPrototype.update;
- ListPrototype.updateIn = MapPrototype.updateIn;
- ListPrototype.mergeIn = MapPrototype.mergeIn;
- ListPrototype.mergeDeepIn = MapPrototype.mergeDeepIn;
- ListPrototype.withMutations = MapPrototype.withMutations;
- ListPrototype.asMutable = MapPrototype.asMutable;
- ListPrototype.asImmutable = MapPrototype.asImmutable;
- ListPrototype.wasAltered = MapPrototype.wasAltered;
-
-
-
- function VNode(array, ownerID) {
- this.array = array;
- this.ownerID = ownerID;
- }
-
- // TODO: seems like these methods are very similar
-
- VNode.prototype.removeBefore = function(ownerID, level, index) {
- if (index === level ? 1 << level : 0 || this.array.length === 0) {
- return this;
- }
- var originIndex = (index >>> level) & MASK;
- if (originIndex >= this.array.length) {
- return new VNode([], ownerID);
- }
- var removingFirst = originIndex === 0;
- var newChild;
- if (level > 0) {
- var oldChild = this.array[originIndex];
- newChild = oldChild && oldChild.removeBefore(ownerID, level - SHIFT, index);
- if (newChild === oldChild && removingFirst) {
- return this;
- }
- }
- if (removingFirst && !newChild) {
- return this;
- }
- var editable = editableVNode(this, ownerID);
- if (!removingFirst) {
- for (var ii = 0; ii < originIndex; ii++) {
- editable.array[ii] = undefined;
- }
- }
- if (newChild) {
- editable.array[originIndex] = newChild;
- }
- return editable;
- };
-
- VNode.prototype.removeAfter = function(ownerID, level, index) {
- if (index === (level ? 1 << level : 0) || this.array.length === 0) {
- return this;
- }
- var sizeIndex = ((index - 1) >>> level) & MASK;
- if (sizeIndex >= this.array.length) {
- return this;
- }
-
- var newChild;
- if (level > 0) {
- var oldChild = this.array[sizeIndex];
- newChild = oldChild && oldChild.removeAfter(ownerID, level - SHIFT, index);
- if (newChild === oldChild && sizeIndex === this.array.length - 1) {
- return this;
- }
- }
-
- var editable = editableVNode(this, ownerID);
- editable.array.splice(sizeIndex + 1);
- if (newChild) {
- editable.array[sizeIndex] = newChild;
- }
- return editable;
- };
-
-
-
- var DONE = {};
-
- function iterateList(list, reverse) {
- var left = list._origin;
- var right = list._capacity;
- var tailPos = getTailOffset(right);
- var tail = list._tail;
-
- return iterateNodeOrLeaf(list._root, list._level, 0);
-
- function iterateNodeOrLeaf(node, level, offset) {
- return level === 0 ?
- iterateLeaf(node, offset) :
- iterateNode(node, level, offset);
- }
-
- function iterateLeaf(node, offset) {
- var array = offset === tailPos ? tail && tail.array : node && node.array;
- var from = offset > left ? 0 : left - offset;
- var to = right - offset;
- if (to > SIZE) {
- to = SIZE;
- }
- return function() {
- if (from === to) {
- return DONE;
- }
- var idx = reverse ? --to : from++;
- return array && array[idx];
- };
- }
-
- function iterateNode(node, level, offset) {
- var values;
- var array = node && node.array;
- var from = offset > left ? 0 : (left - offset) >> level;
- var to = ((right - offset) >> level) + 1;
- if (to > SIZE) {
- to = SIZE;
- }
- return function() {
- do {
- if (values) {
- var value = values();
- if (value !== DONE) {
- return value;
- }
- values = null;
- }
- if (from === to) {
- return DONE;
- }
- var idx = reverse ? --to : from++;
- values = iterateNodeOrLeaf(
- array && array[idx], level - SHIFT, offset + (idx << level)
- );
- } while (true);
- };
- }
- }
-
- function makeList(origin, capacity, level, root, tail, ownerID, hash) {
- var list = Object.create(ListPrototype);
- list.size = capacity - origin;
- list._origin = origin;
- list._capacity = capacity;
- list._level = level;
- list._root = root;
- list._tail = tail;
- list.__ownerID = ownerID;
- list.__hash = hash;
- list.__altered = false;
- return list;
- }
-
- var EMPTY_LIST;
- function emptyList() {
- return EMPTY_LIST || (EMPTY_LIST = makeList(0, 0, SHIFT));
- }
-
- function updateList(list, index, value) {
- index = wrapIndex(list, index);
-
- if (index !== index) {
- return list;
- }
-
- if (index >= list.size || index < 0) {
- return list.withMutations(function(list ) {
- index < 0 ?
- setListBounds(list, index).set(0, value) :
- setListBounds(list, 0, index + 1).set(index, value)
- });
- }
-
- index += list._origin;
-
- var newTail = list._tail;
- var newRoot = list._root;
- var didAlter = MakeRef(DID_ALTER);
- if (index >= getTailOffset(list._capacity)) {
- newTail = updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);
- } else {
- newRoot = updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);
- }
-
- if (!didAlter.value) {
- return list;
- }
-
- if (list.__ownerID) {
- list._root = newRoot;
- list._tail = newTail;
- list.__hash = undefined;
- list.__altered = true;
- return list;
- }
- return makeList(list._origin, list._capacity, list._level, newRoot, newTail);
- }
-
- function updateVNode(node, ownerID, level, index, value, didAlter) {
- var idx = (index >>> level) & MASK;
- var nodeHas = node && idx < node.array.length;
- if (!nodeHas && value === undefined) {
- return node;
- }
-
- var newNode;
-
- if (level > 0) {
- var lowerNode = node && node.array[idx];
- var newLowerNode = updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);
- if (newLowerNode === lowerNode) {
- return node;
- }
- newNode = editableVNode(node, ownerID);
- newNode.array[idx] = newLowerNode;
- return newNode;
- }
-
- if (nodeHas && node.array[idx] === value) {
- return node;
- }
-
- SetRef(didAlter);
-
- newNode = editableVNode(node, ownerID);
- if (value === undefined && idx === newNode.array.length - 1) {
- newNode.array.pop();
- } else {
- newNode.array[idx] = value;
- }
- return newNode;
- }
-
- function editableVNode(node, ownerID) {
- if (ownerID && node && ownerID === node.ownerID) {
- return node;
- }
- return new VNode(node ? node.array.slice() : [], ownerID);
- }
-
- function listNodeFor(list, rawIndex) {
- if (rawIndex >= getTailOffset(list._capacity)) {
- return list._tail;
- }
- if (rawIndex < 1 << (list._level + SHIFT)) {
- var node = list._root;
- var level = list._level;
- while (node && level > 0) {
- node = node.array[(rawIndex >>> level) & MASK];
- level -= SHIFT;
- }
- return node;
- }
- }
-
- function setListBounds(list, begin, end) {
- // Sanitize begin & end using this shorthand for ToInt32(argument)
- // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
- if (begin !== undefined) {
- begin = begin | 0;
- }
- if (end !== undefined) {
- end = end | 0;
- }
- var owner = list.__ownerID || new OwnerID();
- var oldOrigin = list._origin;
- var oldCapacity = list._capacity;
- var newOrigin = oldOrigin + begin;
- var newCapacity = end === undefined ? oldCapacity : end < 0 ? oldCapacity + end : oldOrigin + end;
- if (newOrigin === oldOrigin && newCapacity === oldCapacity) {
- return list;
- }
-
- // If it's going to end after it starts, it's empty.
- if (newOrigin >= newCapacity) {
- return list.clear();
- }
-
- var newLevel = list._level;
- var newRoot = list._root;
-
- // New origin might need creating a higher root.
- var offsetShift = 0;
- while (newOrigin + offsetShift < 0) {
- newRoot = new VNode(newRoot && newRoot.array.length ? [undefined, newRoot] : [], owner);
- newLevel += SHIFT;
- offsetShift += 1 << newLevel;
- }
- if (offsetShift) {
- newOrigin += offsetShift;
- oldOrigin += offsetShift;
- newCapacity += offsetShift;
- oldCapacity += offsetShift;
- }
-
- var oldTailOffset = getTailOffset(oldCapacity);
- var newTailOffset = getTailOffset(newCapacity);
-
- // New size might need creating a higher root.
- while (newTailOffset >= 1 << (newLevel + SHIFT)) {
- newRoot = new VNode(newRoot && newRoot.array.length ? [newRoot] : [], owner);
- newLevel += SHIFT;
- }
-
- // Locate or create the new tail.
- var oldTail = list._tail;
- var newTail = newTailOffset < oldTailOffset ?
- listNodeFor(list, newCapacity - 1) :
- newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail;
-
- // Merge Tail into tree.
- if (oldTail && newTailOffset > oldTailOffset && newOrigin < oldCapacity && oldTail.array.length) {
- newRoot = editableVNode(newRoot, owner);
- var node = newRoot;
- for (var level = newLevel; level > SHIFT; level -= SHIFT) {
- var idx = (oldTailOffset >>> level) & MASK;
- node = node.array[idx] = editableVNode(node.array[idx], owner);
- }
- node.array[(oldTailOffset >>> SHIFT) & MASK] = oldTail;
- }
-
- // If the size has been reduced, there's a chance the tail needs to be trimmed.
- if (newCapacity < oldCapacity) {
- newTail = newTail && newTail.removeAfter(owner, 0, newCapacity);
- }
-
- // If the new origin is within the tail, then we do not need a root.
- if (newOrigin >= newTailOffset) {
- newOrigin -= newTailOffset;
- newCapacity -= newTailOffset;
- newLevel = SHIFT;
- newRoot = null;
- newTail = newTail && newTail.removeBefore(owner, 0, newOrigin);
-
- // Otherwise, if the root has been trimmed, garbage collect.
- } else if (newOrigin > oldOrigin || newTailOffset < oldTailOffset) {
- offsetShift = 0;
-
- // Identify the new top root node of the subtree of the old root.
- while (newRoot) {
- var beginIndex = (newOrigin >>> newLevel) & MASK;
- if (beginIndex !== (newTailOffset >>> newLevel) & MASK) {
- break;
- }
- if (beginIndex) {
- offsetShift += (1 << newLevel) * beginIndex;
- }
- newLevel -= SHIFT;
- newRoot = newRoot.array[beginIndex];
- }
-
- // Trim the new sides of the new root.
- if (newRoot && newOrigin > oldOrigin) {
- newRoot = newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);
- }
- if (newRoot && newTailOffset < oldTailOffset) {
- newRoot = newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);
- }
- if (offsetShift) {
- newOrigin -= offsetShift;
- newCapacity -= offsetShift;
- }
- }
-
- if (list.__ownerID) {
- list.size = newCapacity - newOrigin;
- list._origin = newOrigin;
- list._capacity = newCapacity;
- list._level = newLevel;
- list._root = newRoot;
- list._tail = newTail;
- list.__hash = undefined;
- list.__altered = true;
- return list;
- }
- return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);
- }
-
- function mergeIntoListWith(list, merger, iterables) {
- var iters = [];
- var maxSize = 0;
- for (var ii = 0; ii < iterables.length; ii++) {
- var value = iterables[ii];
- var iter = IndexedIterable(value);
- if (iter.size > maxSize) {
- maxSize = iter.size;
- }
- if (!isIterable(value)) {
- iter = iter.map(function(v ) {return fromJS(v)});
- }
- iters.push(iter);
- }
- if (maxSize > list.size) {
- list = list.setSize(maxSize);
- }
- return mergeIntoCollectionWith(list, merger, iters);
- }
-
- function getTailOffset(size) {
- return size < SIZE ? 0 : (((size - 1) >>> SHIFT) << SHIFT);
- }
-
- createClass(OrderedMap, Map);
-
- // @pragma Construction
-
- function OrderedMap(value) {
- return value === null || value === undefined ? emptyOrderedMap() :
- isOrderedMap(value) ? value :
- emptyOrderedMap().withMutations(function(map ) {
- var iter = KeyedIterable(value);
- assertNotInfinite(iter.size);
- iter.forEach(function(v, k) {return map.set(k, v)});
- });
- }
-
- OrderedMap.of = function(/*...values*/) {
- return this(arguments);
- };
-
- OrderedMap.prototype.toString = function() {
- return this.__toString('OrderedMap {', '}');
- };
-
- // @pragma Access
-
- OrderedMap.prototype.get = function(k, notSetValue) {
- var index = this._map.get(k);
- return index !== undefined ? this._list.get(index)[1] : notSetValue;
- };
-
- // @pragma Modification
-
- OrderedMap.prototype.clear = function() {
- if (this.size === 0) {
- return this;
- }
- if (this.__ownerID) {
- this.size = 0;
- this._map.clear();
- this._list.clear();
- return this;
- }
- return emptyOrderedMap();
- };
-
- OrderedMap.prototype.set = function(k, v) {
- return updateOrderedMap(this, k, v);
- };
-
- OrderedMap.prototype.remove = function(k) {
- return updateOrderedMap(this, k, NOT_SET);
- };
-
- OrderedMap.prototype.wasAltered = function() {
- return this._map.wasAltered() || this._list.wasAltered();
- };
-
- OrderedMap.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return this._list.__iterate(
- function(entry ) {return entry && fn(entry[1], entry[0], this$0)},
- reverse
- );
- };
-
- OrderedMap.prototype.__iterator = function(type, reverse) {
- return this._list.fromEntrySeq().__iterator(type, reverse);
- };
-
- OrderedMap.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- var newMap = this._map.__ensureOwner(ownerID);
- var newList = this._list.__ensureOwner(ownerID);
- if (!ownerID) {
- this.__ownerID = ownerID;
- this._map = newMap;
- this._list = newList;
- return this;
- }
- return makeOrderedMap(newMap, newList, ownerID, this.__hash);
- };
-
-
- function isOrderedMap(maybeOrderedMap) {
- return isMap(maybeOrderedMap) && isOrdered(maybeOrderedMap);
- }
-
- OrderedMap.isOrderedMap = isOrderedMap;
-
- OrderedMap.prototype[IS_ORDERED_SENTINEL] = true;
- OrderedMap.prototype[DELETE] = OrderedMap.prototype.remove;
-
-
-
- function makeOrderedMap(map, list, ownerID, hash) {
- var omap = Object.create(OrderedMap.prototype);
- omap.size = map ? map.size : 0;
- omap._map = map;
- omap._list = list;
- omap.__ownerID = ownerID;
- omap.__hash = hash;
- return omap;
- }
-
- var EMPTY_ORDERED_MAP;
- function emptyOrderedMap() {
- return EMPTY_ORDERED_MAP || (EMPTY_ORDERED_MAP = makeOrderedMap(emptyMap(), emptyList()));
- }
-
- function updateOrderedMap(omap, k, v) {
- var map = omap._map;
- var list = omap._list;
- var i = map.get(k);
- var has = i !== undefined;
- var newMap;
- var newList;
- if (v === NOT_SET) { // removed
- if (!has) {
- return omap;
- }
- if (list.size >= SIZE && list.size >= map.size * 2) {
- newList = list.filter(function(entry, idx) {return entry !== undefined && i !== idx});
- newMap = newList.toKeyedSeq().map(function(entry ) {return entry[0]}).flip().toMap();
- if (omap.__ownerID) {
- newMap.__ownerID = newList.__ownerID = omap.__ownerID;
- }
- } else {
- newMap = map.remove(k);
- newList = i === list.size - 1 ? list.pop() : list.set(i, undefined);
- }
- } else {
- if (has) {
- if (v === list.get(i)[1]) {
- return omap;
- }
- newMap = map;
- newList = list.set(i, [k, v]);
- } else {
- newMap = map.set(k, list.size);
- newList = list.set(list.size, [k, v]);
- }
- }
- if (omap.__ownerID) {
- omap.size = newMap.size;
- omap._map = newMap;
- omap._list = newList;
- omap.__hash = undefined;
- return omap;
- }
- return makeOrderedMap(newMap, newList);
- }
-
- createClass(ToKeyedSequence, KeyedSeq);
- function ToKeyedSequence(indexed, useKeys) {
- this._iter = indexed;
- this._useKeys = useKeys;
- this.size = indexed.size;
- }
-
- ToKeyedSequence.prototype.get = function(key, notSetValue) {
- return this._iter.get(key, notSetValue);
- };
-
- ToKeyedSequence.prototype.has = function(key) {
- return this._iter.has(key);
- };
-
- ToKeyedSequence.prototype.valueSeq = function() {
- return this._iter.valueSeq();
- };
-
- ToKeyedSequence.prototype.reverse = function() {var this$0 = this;
- var reversedSequence = reverseFactory(this, true);
- if (!this._useKeys) {
- reversedSequence.valueSeq = function() {return this$0._iter.toSeq().reverse()};
- }
- return reversedSequence;
- };
-
- ToKeyedSequence.prototype.map = function(mapper, context) {var this$0 = this;
- var mappedSequence = mapFactory(this, mapper, context);
- if (!this._useKeys) {
- mappedSequence.valueSeq = function() {return this$0._iter.toSeq().map(mapper, context)};
- }
- return mappedSequence;
- };
-
- ToKeyedSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- var ii;
- return this._iter.__iterate(
- this._useKeys ?
- function(v, k) {return fn(v, k, this$0)} :
- ((ii = reverse ? resolveSize(this) : 0),
- function(v ) {return fn(v, reverse ? --ii : ii++, this$0)}),
- reverse
- );
- };
-
- ToKeyedSequence.prototype.__iterator = function(type, reverse) {
- if (this._useKeys) {
- return this._iter.__iterator(type, reverse);
- }
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
- var ii = reverse ? resolveSize(this) : 0;
- return new Iterator(function() {
- var step = iterator.next();
- return step.done ? step :
- iteratorValue(type, reverse ? --ii : ii++, step.value, step);
- });
- };
-
- ToKeyedSequence.prototype[IS_ORDERED_SENTINEL] = true;
-
-
- createClass(ToIndexedSequence, IndexedSeq);
- function ToIndexedSequence(iter) {
- this._iter = iter;
- this.size = iter.size;
- }
-
- ToIndexedSequence.prototype.includes = function(value) {
- return this._iter.includes(value);
- };
-
- ToIndexedSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- var iterations = 0;
- return this._iter.__iterate(function(v ) {return fn(v, iterations++, this$0)}, reverse);
- };
-
- ToIndexedSequence.prototype.__iterator = function(type, reverse) {
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
- var iterations = 0;
- return new Iterator(function() {
- var step = iterator.next();
- return step.done ? step :
- iteratorValue(type, iterations++, step.value, step)
- });
- };
-
-
-
- createClass(ToSetSequence, SetSeq);
- function ToSetSequence(iter) {
- this._iter = iter;
- this.size = iter.size;
- }
-
- ToSetSequence.prototype.has = function(key) {
- return this._iter.includes(key);
- };
-
- ToSetSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return this._iter.__iterate(function(v ) {return fn(v, v, this$0)}, reverse);
- };
-
- ToSetSequence.prototype.__iterator = function(type, reverse) {
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
- return new Iterator(function() {
- var step = iterator.next();
- return step.done ? step :
- iteratorValue(type, step.value, step.value, step);
- });
- };
-
-
-
- createClass(FromEntriesSequence, KeyedSeq);
- function FromEntriesSequence(entries) {
- this._iter = entries;
- this.size = entries.size;
- }
-
- FromEntriesSequence.prototype.entrySeq = function() {
- return this._iter.toSeq();
- };
-
- FromEntriesSequence.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return this._iter.__iterate(function(entry ) {
- // Check if entry exists first so array access doesn't throw for holes
- // in the parent iteration.
- if (entry) {
- validateEntry(entry);
- var indexedIterable = isIterable(entry);
- return fn(
- indexedIterable ? entry.get(1) : entry[1],
- indexedIterable ? entry.get(0) : entry[0],
- this$0
- );
- }
- }, reverse);
- };
-
- FromEntriesSequence.prototype.__iterator = function(type, reverse) {
- var iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
- return new Iterator(function() {
- while (true) {
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- var entry = step.value;
- // Check if entry exists first so array access doesn't throw for holes
- // in the parent iteration.
- if (entry) {
- validateEntry(entry);
- var indexedIterable = isIterable(entry);
- return iteratorValue(
- type,
- indexedIterable ? entry.get(0) : entry[0],
- indexedIterable ? entry.get(1) : entry[1],
- step
- );
- }
- }
- });
- };
-
-
- ToIndexedSequence.prototype.cacheResult =
- ToKeyedSequence.prototype.cacheResult =
- ToSetSequence.prototype.cacheResult =
- FromEntriesSequence.prototype.cacheResult =
- cacheResultThrough;
-
-
- function flipFactory(iterable) {
- var flipSequence = makeSequence(iterable);
- flipSequence._iter = iterable;
- flipSequence.size = iterable.size;
- flipSequence.flip = function() {return iterable};
- flipSequence.reverse = function () {
- var reversedSequence = iterable.reverse.apply(this); // super.reverse()
- reversedSequence.flip = function() {return iterable.reverse()};
- return reversedSequence;
- };
- flipSequence.has = function(key ) {return iterable.includes(key)};
- flipSequence.includes = function(key ) {return iterable.has(key)};
- flipSequence.cacheResult = cacheResultThrough;
- flipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
- return iterable.__iterate(function(v, k) {return fn(k, v, this$0) !== false}, reverse);
- }
- flipSequence.__iteratorUncached = function(type, reverse) {
- if (type === ITERATE_ENTRIES) {
- var iterator = iterable.__iterator(type, reverse);
- return new Iterator(function() {
- var step = iterator.next();
- if (!step.done) {
- var k = step.value[0];
- step.value[0] = step.value[1];
- step.value[1] = k;
- }
- return step;
- });
- }
- return iterable.__iterator(
- type === ITERATE_VALUES ? ITERATE_KEYS : ITERATE_VALUES,
- reverse
- );
- }
- return flipSequence;
- }
-
-
- function mapFactory(iterable, mapper, context) {
- var mappedSequence = makeSequence(iterable);
- mappedSequence.size = iterable.size;
- mappedSequence.has = function(key ) {return iterable.has(key)};
- mappedSequence.get = function(key, notSetValue) {
- var v = iterable.get(key, NOT_SET);
- return v === NOT_SET ?
- notSetValue :
- mapper.call(context, v, key, iterable);
- };
- mappedSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
- return iterable.__iterate(
- function(v, k, c) {return fn(mapper.call(context, v, k, c), k, this$0) !== false},
- reverse
- );
- }
- mappedSequence.__iteratorUncached = function (type, reverse) {
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
- return new Iterator(function() {
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- var entry = step.value;
- var key = entry[0];
- return iteratorValue(
- type,
- key,
- mapper.call(context, entry[1], key, iterable),
- step
- );
- });
- }
- return mappedSequence;
- }
-
-
- function reverseFactory(iterable, useKeys) {
- var reversedSequence = makeSequence(iterable);
- reversedSequence._iter = iterable;
- reversedSequence.size = iterable.size;
- reversedSequence.reverse = function() {return iterable};
- if (iterable.flip) {
- reversedSequence.flip = function () {
- var flipSequence = flipFactory(iterable);
- flipSequence.reverse = function() {return iterable.flip()};
- return flipSequence;
- };
- }
- reversedSequence.get = function(key, notSetValue)
- {return iterable.get(useKeys ? key : -1 - key, notSetValue)};
- reversedSequence.has = function(key )
- {return iterable.has(useKeys ? key : -1 - key)};
- reversedSequence.includes = function(value ) {return iterable.includes(value)};
- reversedSequence.cacheResult = cacheResultThrough;
- reversedSequence.__iterate = function (fn, reverse) {var this$0 = this;
- return iterable.__iterate(function(v, k) {return fn(v, k, this$0)}, !reverse);
- };
- reversedSequence.__iterator =
- function(type, reverse) {return iterable.__iterator(type, !reverse)};
- return reversedSequence;
- }
-
-
- function filterFactory(iterable, predicate, context, useKeys) {
- var filterSequence = makeSequence(iterable);
- if (useKeys) {
- filterSequence.has = function(key ) {
- var v = iterable.get(key, NOT_SET);
- return v !== NOT_SET && !!predicate.call(context, v, key, iterable);
- };
- filterSequence.get = function(key, notSetValue) {
- var v = iterable.get(key, NOT_SET);
- return v !== NOT_SET && predicate.call(context, v, key, iterable) ?
- v : notSetValue;
- };
- }
- filterSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
- var iterations = 0;
- iterable.__iterate(function(v, k, c) {
- if (predicate.call(context, v, k, c)) {
- iterations++;
- return fn(v, useKeys ? k : iterations - 1, this$0);
- }
- }, reverse);
- return iterations;
- };
- filterSequence.__iteratorUncached = function (type, reverse) {
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
- var iterations = 0;
- return new Iterator(function() {
- while (true) {
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- var entry = step.value;
- var key = entry[0];
- var value = entry[1];
- if (predicate.call(context, value, key, iterable)) {
- return iteratorValue(type, useKeys ? key : iterations++, value, step);
- }
- }
- });
- }
- return filterSequence;
- }
-
-
- function countByFactory(iterable, grouper, context) {
- var groups = Map().asMutable();
- iterable.__iterate(function(v, k) {
- groups.update(
- grouper.call(context, v, k, iterable),
- 0,
- function(a ) {return a + 1}
- );
- });
- return groups.asImmutable();
- }
-
-
- function groupByFactory(iterable, grouper, context) {
- var isKeyedIter = isKeyed(iterable);
- var groups = (isOrdered(iterable) ? OrderedMap() : Map()).asMutable();
- iterable.__iterate(function(v, k) {
- groups.update(
- grouper.call(context, v, k, iterable),
- function(a ) {return (a = a || [], a.push(isKeyedIter ? [k, v] : v), a)}
- );
- });
- var coerce = iterableClass(iterable);
- return groups.map(function(arr ) {return reify(iterable, coerce(arr))});
- }
-
-
- function sliceFactory(iterable, begin, end, useKeys) {
- var originalSize = iterable.size;
-
- // Sanitize begin & end using this shorthand for ToInt32(argument)
- // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32
- if (begin !== undefined) {
- begin = begin | 0;
- }
- if (end !== undefined) {
- if (end === Infinity) {
- end = originalSize;
- } else {
- end = end | 0;
- }
- }
-
- if (wholeSlice(begin, end, originalSize)) {
- return iterable;
- }
-
- var resolvedBegin = resolveBegin(begin, originalSize);
- var resolvedEnd = resolveEnd(end, originalSize);
-
- // begin or end will be NaN if they were provided as negative numbers and
- // this iterable's size is unknown. In that case, cache first so there is
- // a known size and these do not resolve to NaN.
- if (resolvedBegin !== resolvedBegin || resolvedEnd !== resolvedEnd) {
- return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);
- }
-
- // Note: resolvedEnd is undefined when the original sequence's length is
- // unknown and this slice did not supply an end and should contain all
- // elements after resolvedBegin.
- // In that case, resolvedSize will be NaN and sliceSize will remain undefined.
- var resolvedSize = resolvedEnd - resolvedBegin;
- var sliceSize;
- if (resolvedSize === resolvedSize) {
- sliceSize = resolvedSize < 0 ? 0 : resolvedSize;
- }
-
- var sliceSeq = makeSequence(iterable);
-
- // If iterable.size is undefined, the size of the realized sliceSeq is
- // unknown at this point unless the number of items to slice is 0
- sliceSeq.size = sliceSize === 0 ? sliceSize : iterable.size && sliceSize || undefined;
-
- if (!useKeys && isSeq(iterable) && sliceSize >= 0) {
- sliceSeq.get = function (index, notSetValue) {
- index = wrapIndex(this, index);
- return index >= 0 && index < sliceSize ?
- iterable.get(index + resolvedBegin, notSetValue) :
- notSetValue;
- }
- }
-
- sliceSeq.__iterateUncached = function(fn, reverse) {var this$0 = this;
- if (sliceSize === 0) {
- return 0;
- }
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var skipped = 0;
- var isSkipping = true;
- var iterations = 0;
- iterable.__iterate(function(v, k) {
- if (!(isSkipping && (isSkipping = skipped++ < resolvedBegin))) {
- iterations++;
- return fn(v, useKeys ? k : iterations - 1, this$0) !== false &&
- iterations !== sliceSize;
- }
- });
- return iterations;
- };
-
- sliceSeq.__iteratorUncached = function(type, reverse) {
- if (sliceSize !== 0 && reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- // Don't bother instantiating parent iterator if taking 0.
- var iterator = sliceSize !== 0 && iterable.__iterator(type, reverse);
- var skipped = 0;
- var iterations = 0;
- return new Iterator(function() {
- while (skipped++ < resolvedBegin) {
- iterator.next();
- }
- if (++iterations > sliceSize) {
- return iteratorDone();
- }
- var step = iterator.next();
- if (useKeys || type === ITERATE_VALUES) {
- return step;
- } else if (type === ITERATE_KEYS) {
- return iteratorValue(type, iterations - 1, undefined, step);
- } else {
- return iteratorValue(type, iterations - 1, step.value[1], step);
- }
- });
- }
-
- return sliceSeq;
- }
-
-
- function takeWhileFactory(iterable, predicate, context) {
- var takeSequence = makeSequence(iterable);
- takeSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var iterations = 0;
- iterable.__iterate(function(v, k, c)
- {return predicate.call(context, v, k, c) && ++iterations && fn(v, k, this$0)}
- );
- return iterations;
- };
- takeSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
- if (reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
- var iterating = true;
- return new Iterator(function() {
- if (!iterating) {
- return iteratorDone();
- }
- var step = iterator.next();
- if (step.done) {
- return step;
- }
- var entry = step.value;
- var k = entry[0];
- var v = entry[1];
- if (!predicate.call(context, v, k, this$0)) {
- iterating = false;
- return iteratorDone();
- }
- return type === ITERATE_ENTRIES ? step :
- iteratorValue(type, k, v, step);
- });
- };
- return takeSequence;
- }
-
-
- function skipWhileFactory(iterable, predicate, context, useKeys) {
- var skipSequence = makeSequence(iterable);
- skipSequence.__iterateUncached = function (fn, reverse) {var this$0 = this;
- if (reverse) {
- return this.cacheResult().__iterate(fn, reverse);
- }
- var isSkipping = true;
- var iterations = 0;
- iterable.__iterate(function(v, k, c) {
- if (!(isSkipping && (isSkipping = predicate.call(context, v, k, c)))) {
- iterations++;
- return fn(v, useKeys ? k : iterations - 1, this$0);
- }
- });
- return iterations;
- };
- skipSequence.__iteratorUncached = function(type, reverse) {var this$0 = this;
- if (reverse) {
- return this.cacheResult().__iterator(type, reverse);
- }
- var iterator = iterable.__iterator(ITERATE_ENTRIES, reverse);
- var skipping = true;
- var iterations = 0;
- return new Iterator(function() {
- var step, k, v;
- do {
- step = iterator.next();
- if (step.done) {
- if (useKeys || type === ITERATE_VALUES) {
- return step;
- } else if (type === ITERATE_KEYS) {
- return iteratorValue(type, iterations++, undefined, step);
- } else {
- return iteratorValue(type, iterations++, step.value[1], step);
- }
- }
- var entry = step.value;
- k = entry[0];
- v = entry[1];
- skipping && (skipping = predicate.call(context, v, k, this$0));
- } while (skipping);
- return type === ITERATE_ENTRIES ? step :
- iteratorValue(type, k, v, step);
- });
- };
- return skipSequence;
- }
-
-
- function concatFactory(iterable, values) {
- var isKeyedIterable = isKeyed(iterable);
- var iters = [iterable].concat(values).map(function(v ) {
- if (!isIterable(v)) {
- v = isKeyedIterable ?
- keyedSeqFromValue(v) :
- indexedSeqFromValue(Array.isArray(v) ? v : [v]);
- } else if (isKeyedIterable) {
- v = KeyedIterable(v);
- }
- return v;
- }).filter(function(v ) {return v.size !== 0});
-
- if (iters.length === 0) {
- return iterable;
- }
-
- if (iters.length === 1) {
- var singleton = iters[0];
- if (singleton === iterable ||
- isKeyedIterable && isKeyed(singleton) ||
- isIndexed(iterable) && isIndexed(singleton)) {
- return singleton;
- }
- }
-
- var concatSeq = new ArraySeq(iters);
- if (isKeyedIterable) {
- concatSeq = concatSeq.toKeyedSeq();
- } else if (!isIndexed(iterable)) {
- concatSeq = concatSeq.toSetSeq();
- }
- concatSeq = concatSeq.flatten(true);
- concatSeq.size = iters.reduce(
- function(sum, seq) {
- if (sum !== undefined) {
- var size = seq.size;
- if (size !== undefined) {
- return sum + size;
- }
- }
- },
- 0
- );
- return concatSeq;
- }
-
-
- function flattenFactory(iterable, depth, useKeys) {
- var flatSequence = makeSequence(iterable);
- flatSequence.__iterateUncached = function(fn, reverse) {
- var iterations = 0;
- var stopped = false;
- function flatDeep(iter, currentDepth) {var this$0 = this;
- iter.__iterate(function(v, k) {
- if ((!depth || currentDepth < depth) && isIterable(v)) {
- flatDeep(v, currentDepth + 1);
- } else if (fn(v, useKeys ? k : iterations++, this$0) === false) {
- stopped = true;
- }
- return !stopped;
- }, reverse);
- }
- flatDeep(iterable, 0);
- return iterations;
- }
- flatSequence.__iteratorUncached = function(type, reverse) {
- var iterator = iterable.__iterator(type, reverse);
- var stack = [];
- var iterations = 0;
- return new Iterator(function() {
- while (iterator) {
- var step = iterator.next();
- if (step.done !== false) {
- iterator = stack.pop();
- continue;
- }
- var v = step.value;
- if (type === ITERATE_ENTRIES) {
- v = v[1];
- }
- if ((!depth || stack.length < depth) && isIterable(v)) {
- stack.push(iterator);
- iterator = v.__iterator(type, reverse);
- } else {
- return useKeys ? step : iteratorValue(type, iterations++, v, step);
- }
- }
- return iteratorDone();
- });
- }
- return flatSequence;
- }
-
-
- function flatMapFactory(iterable, mapper, context) {
- var coerce = iterableClass(iterable);
- return iterable.toSeq().map(
- function(v, k) {return coerce(mapper.call(context, v, k, iterable))}
- ).flatten(true);
- }
-
-
- function interposeFactory(iterable, separator) {
- var interposedSequence = makeSequence(iterable);
- interposedSequence.size = iterable.size && iterable.size * 2 -1;
- interposedSequence.__iterateUncached = function(fn, reverse) {var this$0 = this;
- var iterations = 0;
- iterable.__iterate(function(v, k)
- {return (!iterations || fn(separator, iterations++, this$0) !== false) &&
- fn(v, iterations++, this$0) !== false},
- reverse
- );
- return iterations;
- };
- interposedSequence.__iteratorUncached = function(type, reverse) {
- var iterator = iterable.__iterator(ITERATE_VALUES, reverse);
- var iterations = 0;
- var step;
- return new Iterator(function() {
- if (!step || iterations % 2) {
- step = iterator.next();
- if (step.done) {
- return step;
- }
- }
- return iterations % 2 ?
- iteratorValue(type, iterations++, separator) :
- iteratorValue(type, iterations++, step.value, step);
- });
- };
- return interposedSequence;
- }
-
-
- function sortFactory(iterable, comparator, mapper) {
- if (!comparator) {
- comparator = defaultComparator;
- }
- var isKeyedIterable = isKeyed(iterable);
- var index = 0;
- var entries = iterable.toSeq().map(
- function(v, k) {return [k, v, index++, mapper ? mapper(v, k, iterable) : v]}
- ).toArray();
- entries.sort(function(a, b) {return comparator(a[3], b[3]) || a[2] - b[2]}).forEach(
- isKeyedIterable ?
- function(v, i) { entries[i].length = 2; } :
- function(v, i) { entries[i] = v[1]; }
- );
- return isKeyedIterable ? KeyedSeq(entries) :
- isIndexed(iterable) ? IndexedSeq(entries) :
- SetSeq(entries);
- }
-
-
- function maxFactory(iterable, comparator, mapper) {
- if (!comparator) {
- comparator = defaultComparator;
- }
- if (mapper) {
- var entry = iterable.toSeq()
- .map(function(v, k) {return [v, mapper(v, k, iterable)]})
- .reduce(function(a, b) {return maxCompare(comparator, a[1], b[1]) ? b : a});
- return entry && entry[0];
- } else {
- return iterable.reduce(function(a, b) {return maxCompare(comparator, a, b) ? b : a});
- }
- }
-
- function maxCompare(comparator, a, b) {
- var comp = comparator(b, a);
- // b is considered the new max if the comparator declares them equal, but
- // they are not equal and b is in fact a nullish value.
- return (comp === 0 && b !== a && (b === undefined || b === null || b !== b)) || comp > 0;
- }
-
-
- function zipWithFactory(keyIter, zipper, iters) {
- var zipSequence = makeSequence(keyIter);
- zipSequence.size = new ArraySeq(iters).map(function(i ) {return i.size}).min();
- // Note: this a generic base implementation of __iterate in terms of
- // __iterator which may be more generically useful in the future.
- zipSequence.__iterate = function(fn, reverse) {
- /* generic:
- var iterator = this.__iterator(ITERATE_ENTRIES, reverse);
- var step;
- var iterations = 0;
- while (!(step = iterator.next()).done) {
- iterations++;
- if (fn(step.value[1], step.value[0], this) === false) {
- break;
- }
- }
- return iterations;
- */
- // indexed:
- var iterator = this.__iterator(ITERATE_VALUES, reverse);
- var step;
- var iterations = 0;
- while (!(step = iterator.next()).done) {
- if (fn(step.value, iterations++, this) === false) {
- break;
- }
- }
- return iterations;
- };
- zipSequence.__iteratorUncached = function(type, reverse) {
- var iterators = iters.map(function(i )
- {return (i = Iterable(i), getIterator(reverse ? i.reverse() : i))}
- );
- var iterations = 0;
- var isDone = false;
- return new Iterator(function() {
- var steps;
- if (!isDone) {
- steps = iterators.map(function(i ) {return i.next()});
- isDone = steps.some(function(s ) {return s.done});
- }
- if (isDone) {
- return iteratorDone();
- }
- return iteratorValue(
- type,
- iterations++,
- zipper.apply(null, steps.map(function(s ) {return s.value}))
- );
- });
- };
- return zipSequence
- }
-
-
- // #pragma Helper Functions
-
- function reify(iter, seq) {
- return isSeq(iter) ? seq : iter.constructor(seq);
- }
-
- function validateEntry(entry) {
- if (entry !== Object(entry)) {
- throw new TypeError('Expected [K, V] tuple: ' + entry);
- }
- }
-
- function resolveSize(iter) {
- assertNotInfinite(iter.size);
- return ensureSize(iter);
- }
-
- function iterableClass(iterable) {
- return isKeyed(iterable) ? KeyedIterable :
- isIndexed(iterable) ? IndexedIterable :
- SetIterable;
- }
-
- function makeSequence(iterable) {
- return Object.create(
- (
- isKeyed(iterable) ? KeyedSeq :
- isIndexed(iterable) ? IndexedSeq :
- SetSeq
- ).prototype
- );
- }
-
- function cacheResultThrough() {
- if (this._iter.cacheResult) {
- this._iter.cacheResult();
- this.size = this._iter.size;
- return this;
- } else {
- return Seq.prototype.cacheResult.call(this);
- }
- }
-
- function defaultComparator(a, b) {
- return a > b ? 1 : a < b ? -1 : 0;
- }
-
- function forceIterator(keyPath) {
- var iter = getIterator(keyPath);
- if (!iter) {
- // Array might not be iterable in this environment, so we need a fallback
- // to our wrapped type.
- if (!isArrayLike(keyPath)) {
- throw new TypeError('Expected iterable or array-like: ' + keyPath);
- }
- iter = getIterator(Iterable(keyPath));
- }
- return iter;
- }
-
- createClass(Record, KeyedCollection);
-
- function Record(defaultValues, name) {
- var hasInitialized;
-
- var RecordType = function Record(values) {
- if (values instanceof RecordType) {
- return values;
- }
- if (!(this instanceof RecordType)) {
- return new RecordType(values);
- }
- if (!hasInitialized) {
- hasInitialized = true;
- var keys = Object.keys(defaultValues);
- setProps(RecordTypePrototype, keys);
- RecordTypePrototype.size = keys.length;
- RecordTypePrototype._name = name;
- RecordTypePrototype._keys = keys;
- RecordTypePrototype._defaultValues = defaultValues;
- }
- this._map = Map(values);
- };
-
- var RecordTypePrototype = RecordType.prototype = Object.create(RecordPrototype);
- RecordTypePrototype.constructor = RecordType;
-
- return RecordType;
- }
-
- Record.prototype.toString = function() {
- return this.__toString(recordName(this) + ' {', '}');
- };
-
- // @pragma Access
-
- Record.prototype.has = function(k) {
- return this._defaultValues.hasOwnProperty(k);
- };
-
- Record.prototype.get = function(k, notSetValue) {
- if (!this.has(k)) {
- return notSetValue;
- }
- var defaultVal = this._defaultValues[k];
- return this._map ? this._map.get(k, defaultVal) : defaultVal;
- };
-
- // @pragma Modification
-
- Record.prototype.clear = function() {
- if (this.__ownerID) {
- this._map && this._map.clear();
- return this;
- }
- var RecordType = this.constructor;
- return RecordType._empty || (RecordType._empty = makeRecord(this, emptyMap()));
- };
-
- Record.prototype.set = function(k, v) {
- if (!this.has(k)) {
- throw new Error('Cannot set unknown key "' + k + '" on ' + recordName(this));
- }
- if (this._map && !this._map.has(k)) {
- var defaultVal = this._defaultValues[k];
- if (v === defaultVal) {
- return this;
- }
- }
- var newMap = this._map && this._map.set(k, v);
- if (this.__ownerID || newMap === this._map) {
- return this;
- }
- return makeRecord(this, newMap);
- };
-
- Record.prototype.remove = function(k) {
- if (!this.has(k)) {
- return this;
- }
- var newMap = this._map && this._map.remove(k);
- if (this.__ownerID || newMap === this._map) {
- return this;
- }
- return makeRecord(this, newMap);
- };
-
- Record.prototype.wasAltered = function() {
- return this._map.wasAltered();
- };
-
- Record.prototype.__iterator = function(type, reverse) {var this$0 = this;
- return KeyedIterable(this._defaultValues).map(function(_, k) {return this$0.get(k)}).__iterator(type, reverse);
- };
-
- Record.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return KeyedIterable(this._defaultValues).map(function(_, k) {return this$0.get(k)}).__iterate(fn, reverse);
- };
-
- Record.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- var newMap = this._map && this._map.__ensureOwner(ownerID);
- if (!ownerID) {
- this.__ownerID = ownerID;
- this._map = newMap;
- return this;
- }
- return makeRecord(this, newMap, ownerID);
- };
-
-
- var RecordPrototype = Record.prototype;
- RecordPrototype[DELETE] = RecordPrototype.remove;
- RecordPrototype.deleteIn =
- RecordPrototype.removeIn = MapPrototype.removeIn;
- RecordPrototype.merge = MapPrototype.merge;
- RecordPrototype.mergeWith = MapPrototype.mergeWith;
- RecordPrototype.mergeIn = MapPrototype.mergeIn;
- RecordPrototype.mergeDeep = MapPrototype.mergeDeep;
- RecordPrototype.mergeDeepWith = MapPrototype.mergeDeepWith;
- RecordPrototype.mergeDeepIn = MapPrototype.mergeDeepIn;
- RecordPrototype.setIn = MapPrototype.setIn;
- RecordPrototype.update = MapPrototype.update;
- RecordPrototype.updateIn = MapPrototype.updateIn;
- RecordPrototype.withMutations = MapPrototype.withMutations;
- RecordPrototype.asMutable = MapPrototype.asMutable;
- RecordPrototype.asImmutable = MapPrototype.asImmutable;
-
-
- function makeRecord(likeRecord, map, ownerID) {
- var record = Object.create(Object.getPrototypeOf(likeRecord));
- record._map = map;
- record.__ownerID = ownerID;
- return record;
- }
-
- function recordName(record) {
- return record._name || record.constructor.name || 'Record';
- }
-
- function setProps(prototype, names) {
- try {
- names.forEach(setProp.bind(undefined, prototype));
- } catch (error) {
- // Object.defineProperty failed. Probably IE8.
- }
- }
-
- function setProp(prototype, name) {
- Object.defineProperty(prototype, name, {
- get: function() {
- return this.get(name);
- },
- set: function(value) {
- invariant(this.__ownerID, 'Cannot set on an immutable record.');
- this.set(name, value);
- }
- });
- }
-
- createClass(Set, SetCollection);
-
- // @pragma Construction
-
- function Set(value) {
- return value === null || value === undefined ? emptySet() :
- isSet(value) && !isOrdered(value) ? value :
- emptySet().withMutations(function(set ) {
- var iter = SetIterable(value);
- assertNotInfinite(iter.size);
- iter.forEach(function(v ) {return set.add(v)});
- });
- }
-
- Set.of = function(/*...values*/) {
- return this(arguments);
- };
-
- Set.fromKeys = function(value) {
- return this(KeyedIterable(value).keySeq());
- };
-
- Set.prototype.toString = function() {
- return this.__toString('Set {', '}');
- };
-
- // @pragma Access
-
- Set.prototype.has = function(value) {
- return this._map.has(value);
- };
-
- // @pragma Modification
-
- Set.prototype.add = function(value) {
- return updateSet(this, this._map.set(value, true));
- };
-
- Set.prototype.remove = function(value) {
- return updateSet(this, this._map.remove(value));
- };
-
- Set.prototype.clear = function() {
- return updateSet(this, this._map.clear());
- };
-
- // @pragma Composition
-
- Set.prototype.union = function() {var iters = SLICE$0.call(arguments, 0);
- iters = iters.filter(function(x ) {return x.size !== 0});
- if (iters.length === 0) {
- return this;
- }
- if (this.size === 0 && !this.__ownerID && iters.length === 1) {
- return this.constructor(iters[0]);
- }
- return this.withMutations(function(set ) {
- for (var ii = 0; ii < iters.length; ii++) {
- SetIterable(iters[ii]).forEach(function(value ) {return set.add(value)});
- }
- });
- };
-
- Set.prototype.intersect = function() {var iters = SLICE$0.call(arguments, 0);
- if (iters.length === 0) {
- return this;
- }
- iters = iters.map(function(iter ) {return SetIterable(iter)});
- var originalSet = this;
- return this.withMutations(function(set ) {
- originalSet.forEach(function(value ) {
- if (!iters.every(function(iter ) {return iter.includes(value)})) {
- set.remove(value);
- }
- });
- });
- };
-
- Set.prototype.subtract = function() {var iters = SLICE$0.call(arguments, 0);
- if (iters.length === 0) {
- return this;
- }
- iters = iters.map(function(iter ) {return SetIterable(iter)});
- var originalSet = this;
- return this.withMutations(function(set ) {
- originalSet.forEach(function(value ) {
- if (iters.some(function(iter ) {return iter.includes(value)})) {
- set.remove(value);
- }
- });
- });
- };
-
- Set.prototype.merge = function() {
- return this.union.apply(this, arguments);
- };
-
- Set.prototype.mergeWith = function(merger) {var iters = SLICE$0.call(arguments, 1);
- return this.union.apply(this, iters);
- };
-
- Set.prototype.sort = function(comparator) {
- // Late binding
- return OrderedSet(sortFactory(this, comparator));
- };
-
- Set.prototype.sortBy = function(mapper, comparator) {
- // Late binding
- return OrderedSet(sortFactory(this, comparator, mapper));
- };
-
- Set.prototype.wasAltered = function() {
- return this._map.wasAltered();
- };
-
- Set.prototype.__iterate = function(fn, reverse) {var this$0 = this;
- return this._map.__iterate(function(_, k) {return fn(k, k, this$0)}, reverse);
- };
-
- Set.prototype.__iterator = function(type, reverse) {
- return this._map.map(function(_, k) {return k}).__iterator(type, reverse);
- };
-
- Set.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- var newMap = this._map.__ensureOwner(ownerID);
- if (!ownerID) {
- this.__ownerID = ownerID;
- this._map = newMap;
- return this;
- }
- return this.__make(newMap, ownerID);
- };
-
-
- function isSet(maybeSet) {
- return !!(maybeSet && maybeSet[IS_SET_SENTINEL]);
- }
-
- Set.isSet = isSet;
-
- var IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@';
-
- var SetPrototype = Set.prototype;
- SetPrototype[IS_SET_SENTINEL] = true;
- SetPrototype[DELETE] = SetPrototype.remove;
- SetPrototype.mergeDeep = SetPrototype.merge;
- SetPrototype.mergeDeepWith = SetPrototype.mergeWith;
- SetPrototype.withMutations = MapPrototype.withMutations;
- SetPrototype.asMutable = MapPrototype.asMutable;
- SetPrototype.asImmutable = MapPrototype.asImmutable;
-
- SetPrototype.__empty = emptySet;
- SetPrototype.__make = makeSet;
-
- function updateSet(set, newMap) {
- if (set.__ownerID) {
- set.size = newMap.size;
- set._map = newMap;
- return set;
- }
- return newMap === set._map ? set :
- newMap.size === 0 ? set.__empty() :
- set.__make(newMap);
- }
-
- function makeSet(map, ownerID) {
- var set = Object.create(SetPrototype);
- set.size = map ? map.size : 0;
- set._map = map;
- set.__ownerID = ownerID;
- return set;
- }
-
- var EMPTY_SET;
- function emptySet() {
- return EMPTY_SET || (EMPTY_SET = makeSet(emptyMap()));
- }
-
- createClass(OrderedSet, Set);
-
- // @pragma Construction
-
- function OrderedSet(value) {
- return value === null || value === undefined ? emptyOrderedSet() :
- isOrderedSet(value) ? value :
- emptyOrderedSet().withMutations(function(set ) {
- var iter = SetIterable(value);
- assertNotInfinite(iter.size);
- iter.forEach(function(v ) {return set.add(v)});
- });
- }
-
- OrderedSet.of = function(/*...values*/) {
- return this(arguments);
- };
-
- OrderedSet.fromKeys = function(value) {
- return this(KeyedIterable(value).keySeq());
- };
-
- OrderedSet.prototype.toString = function() {
- return this.__toString('OrderedSet {', '}');
- };
-
-
- function isOrderedSet(maybeOrderedSet) {
- return isSet(maybeOrderedSet) && isOrdered(maybeOrderedSet);
- }
-
- OrderedSet.isOrderedSet = isOrderedSet;
-
- var OrderedSetPrototype = OrderedSet.prototype;
- OrderedSetPrototype[IS_ORDERED_SENTINEL] = true;
-
- OrderedSetPrototype.__empty = emptyOrderedSet;
- OrderedSetPrototype.__make = makeOrderedSet;
-
- function makeOrderedSet(map, ownerID) {
- var set = Object.create(OrderedSetPrototype);
- set.size = map ? map.size : 0;
- set._map = map;
- set.__ownerID = ownerID;
- return set;
- }
-
- var EMPTY_ORDERED_SET;
- function emptyOrderedSet() {
- return EMPTY_ORDERED_SET || (EMPTY_ORDERED_SET = makeOrderedSet(emptyOrderedMap()));
- }
-
- createClass(Stack, IndexedCollection);
-
- // @pragma Construction
-
- function Stack(value) {
- return value === null || value === undefined ? emptyStack() :
- isStack(value) ? value :
- emptyStack().unshiftAll(value);
- }
-
- Stack.of = function(/*...values*/) {
- return this(arguments);
- };
-
- Stack.prototype.toString = function() {
- return this.__toString('Stack [', ']');
- };
-
- // @pragma Access
-
- Stack.prototype.get = function(index, notSetValue) {
- var head = this._head;
- index = wrapIndex(this, index);
- while (head && index--) {
- head = head.next;
- }
- return head ? head.value : notSetValue;
- };
-
- Stack.prototype.peek = function() {
- return this._head && this._head.value;
- };
-
- // @pragma Modification
-
- Stack.prototype.push = function(/*...values*/) {
- if (arguments.length === 0) {
- return this;
- }
- var newSize = this.size + arguments.length;
- var head = this._head;
- for (var ii = arguments.length - 1; ii >= 0; ii--) {
- head = {
- value: arguments[ii],
- next: head
- };
- }
- if (this.__ownerID) {
- this.size = newSize;
- this._head = head;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return makeStack(newSize, head);
- };
-
- Stack.prototype.pushAll = function(iter) {
- iter = IndexedIterable(iter);
- if (iter.size === 0) {
- return this;
- }
- assertNotInfinite(iter.size);
- var newSize = this.size;
- var head = this._head;
- iter.reverse().forEach(function(value ) {
- newSize++;
- head = {
- value: value,
- next: head
- };
- });
- if (this.__ownerID) {
- this.size = newSize;
- this._head = head;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return makeStack(newSize, head);
- };
-
- Stack.prototype.pop = function() {
- return this.slice(1);
- };
-
- Stack.prototype.unshift = function(/*...values*/) {
- return this.push.apply(this, arguments);
- };
-
- Stack.prototype.unshiftAll = function(iter) {
- return this.pushAll(iter);
- };
-
- Stack.prototype.shift = function() {
- return this.pop.apply(this, arguments);
- };
-
- Stack.prototype.clear = function() {
- if (this.size === 0) {
- return this;
- }
- if (this.__ownerID) {
- this.size = 0;
- this._head = undefined;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return emptyStack();
- };
-
- Stack.prototype.slice = function(begin, end) {
- if (wholeSlice(begin, end, this.size)) {
- return this;
- }
- var resolvedBegin = resolveBegin(begin, this.size);
- var resolvedEnd = resolveEnd(end, this.size);
- if (resolvedEnd !== this.size) {
- // super.slice(begin, end);
- return IndexedCollection.prototype.slice.call(this, begin, end);
- }
- var newSize = this.size - resolvedBegin;
- var head = this._head;
- while (resolvedBegin--) {
- head = head.next;
- }
- if (this.__ownerID) {
- this.size = newSize;
- this._head = head;
- this.__hash = undefined;
- this.__altered = true;
- return this;
- }
- return makeStack(newSize, head);
- };
-
- // @pragma Mutability
-
- Stack.prototype.__ensureOwner = function(ownerID) {
- if (ownerID === this.__ownerID) {
- return this;
- }
- if (!ownerID) {
- this.__ownerID = ownerID;
- this.__altered = false;
- return this;
- }
- return makeStack(this.size, this._head, ownerID, this.__hash);
- };
-
- // @pragma Iteration
-
- Stack.prototype.__iterate = function(fn, reverse) {
- if (reverse) {
- return this.reverse().__iterate(fn);
- }
- var iterations = 0;
- var node = this._head;
- while (node) {
- if (fn(node.value, iterations++, this) === false) {
- break;
- }
- node = node.next;
- }
- return iterations;
- };
-
- Stack.prototype.__iterator = function(type, reverse) {
- if (reverse) {
- return this.reverse().__iterator(type);
- }
- var iterations = 0;
- var node = this._head;
- return new Iterator(function() {
- if (node) {
- var value = node.value;
- node = node.next;
- return iteratorValue(type, iterations++, value);
- }
- return iteratorDone();
- });
- };
-
-
- function isStack(maybeStack) {
- return !!(maybeStack && maybeStack[IS_STACK_SENTINEL]);
- }
-
- Stack.isStack = isStack;
-
- var IS_STACK_SENTINEL = '@@__IMMUTABLE_STACK__@@';
-
- var StackPrototype = Stack.prototype;
- StackPrototype[IS_STACK_SENTINEL] = true;
- StackPrototype.withMutations = MapPrototype.withMutations;
- StackPrototype.asMutable = MapPrototype.asMutable;
- StackPrototype.asImmutable = MapPrototype.asImmutable;
- StackPrototype.wasAltered = MapPrototype.wasAltered;
-
-
- function makeStack(size, head, ownerID, hash) {
- var map = Object.create(StackPrototype);
- map.size = size;
- map._head = head;
- map.__ownerID = ownerID;
- map.__hash = hash;
- map.__altered = false;
- return map;
- }
-
- var EMPTY_STACK;
- function emptyStack() {
- return EMPTY_STACK || (EMPTY_STACK = makeStack(0));
- }
-
- /**
- * Contributes additional methods to a constructor
- */
- function mixin(ctor, methods) {
- var keyCopier = function(key ) { ctor.prototype[key] = methods[key]; };
- Object.keys(methods).forEach(keyCopier);
- Object.getOwnPropertySymbols &&
- Object.getOwnPropertySymbols(methods).forEach(keyCopier);
- return ctor;
- }
-
- Iterable.Iterator = Iterator;
-
- mixin(Iterable, {
-
- // ### Conversion to other types
-
- toArray: function() {
- assertNotInfinite(this.size);
- var array = new Array(this.size || 0);
- this.valueSeq().__iterate(function(v, i) { array[i] = v; });
- return array;
- },
-
- toIndexedSeq: function() {
- return new ToIndexedSequence(this);
- },
-
- toJS: function() {
- return this.toSeq().map(
- function(value ) {return value && typeof value.toJS === 'function' ? value.toJS() : value}
- ).__toJS();
- },
-
- toJSON: function() {
- return this.toSeq().map(
- function(value ) {return value && typeof value.toJSON === 'function' ? value.toJSON() : value}
- ).__toJS();
- },
-
- toKeyedSeq: function() {
- return new ToKeyedSequence(this, true);
- },
-
- toMap: function() {
- // Use Late Binding here to solve the circular dependency.
- return Map(this.toKeyedSeq());
- },
-
- toObject: function() {
- assertNotInfinite(this.size);
- var object = {};
- this.__iterate(function(v, k) { object[k] = v; });
- return object;
- },
-
- toOrderedMap: function() {
- // Use Late Binding here to solve the circular dependency.
- return OrderedMap(this.toKeyedSeq());
- },
-
- toOrderedSet: function() {
- // Use Late Binding here to solve the circular dependency.
- return OrderedSet(isKeyed(this) ? this.valueSeq() : this);
- },
-
- toSet: function() {
- // Use Late Binding here to solve the circular dependency.
- return Set(isKeyed(this) ? this.valueSeq() : this);
- },
-
- toSetSeq: function() {
- return new ToSetSequence(this);
- },
-
- toSeq: function() {
- return isIndexed(this) ? this.toIndexedSeq() :
- isKeyed(this) ? this.toKeyedSeq() :
- this.toSetSeq();
- },
-
- toStack: function() {
- // Use Late Binding here to solve the circular dependency.
- return Stack(isKeyed(this) ? this.valueSeq() : this);
- },
-
- toList: function() {
- // Use Late Binding here to solve the circular dependency.
- return List(isKeyed(this) ? this.valueSeq() : this);
- },
-
-
- // ### Common JavaScript methods and properties
-
- toString: function() {
- return '[Iterable]';
- },
-
- __toString: function(head, tail) {
- if (this.size === 0) {
- return head + tail;
- }
- return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;
- },
-
-
- // ### ES6 Collection methods (ES6 Array and Map)
-
- concat: function() {var values = SLICE$0.call(arguments, 0);
- return reify(this, concatFactory(this, values));
- },
-
- includes: function(searchValue) {
- return this.some(function(value ) {return is(value, searchValue)});
- },
-
- entries: function() {
- return this.__iterator(ITERATE_ENTRIES);
- },
-
- every: function(predicate, context) {
- assertNotInfinite(this.size);
- var returnValue = true;
- this.__iterate(function(v, k, c) {
- if (!predicate.call(context, v, k, c)) {
- returnValue = false;
- return false;
- }
- });
- return returnValue;
- },
-
- filter: function(predicate, context) {
- return reify(this, filterFactory(this, predicate, context, true));
- },
-
- find: function(predicate, context, notSetValue) {
- var entry = this.findEntry(predicate, context);
- return entry ? entry[1] : notSetValue;
- },
-
- forEach: function(sideEffect, context) {
- assertNotInfinite(this.size);
- return this.__iterate(context ? sideEffect.bind(context) : sideEffect);
- },
-
- join: function(separator) {
- assertNotInfinite(this.size);
- separator = separator !== undefined ? '' + separator : ',';
- var joined = '';
- var isFirst = true;
- this.__iterate(function(v ) {
- isFirst ? (isFirst = false) : (joined += separator);
- joined += v !== null && v !== undefined ? v.toString() : '';
- });
- return joined;
- },
-
- keys: function() {
- return this.__iterator(ITERATE_KEYS);
- },
-
- map: function(mapper, context) {
- return reify(this, mapFactory(this, mapper, context));
- },
-
- reduce: function(reducer, initialReduction, context) {
- assertNotInfinite(this.size);
- var reduction;
- var useFirst;
- if (arguments.length < 2) {
- useFirst = true;
- } else {
- reduction = initialReduction;
- }
- this.__iterate(function(v, k, c) {
- if (useFirst) {
- useFirst = false;
- reduction = v;
- } else {
- reduction = reducer.call(context, reduction, v, k, c);
- }
- });
- return reduction;
- },
-
- reduceRight: function(reducer, initialReduction, context) {
- var reversed = this.toKeyedSeq().reverse();
- return reversed.reduce.apply(reversed, arguments);
- },
-
- reverse: function() {
- return reify(this, reverseFactory(this, true));
- },
-
- slice: function(begin, end) {
- return reify(this, sliceFactory(this, begin, end, true));
- },
-
- some: function(predicate, context) {
- return !this.every(not(predicate), context);
- },
-
- sort: function(comparator) {
- return reify(this, sortFactory(this, comparator));
- },
-
- values: function() {
- return this.__iterator(ITERATE_VALUES);
- },
-
-
- // ### More sequential methods
-
- butLast: function() {
- return this.slice(0, -1);
- },
-
- isEmpty: function() {
- return this.size !== undefined ? this.size === 0 : !this.some(function() {return true});
- },
-
- count: function(predicate, context) {
- return ensureSize(
- predicate ? this.toSeq().filter(predicate, context) : this
- );
- },
-
- countBy: function(grouper, context) {
- return countByFactory(this, grouper, context);
- },
-
- equals: function(other) {
- return deepEqual(this, other);
- },
-
- entrySeq: function() {
- var iterable = this;
- if (iterable._cache) {
- // We cache as an entries array, so we can just return the cache!
- return new ArraySeq(iterable._cache);
- }
- var entriesSequence = iterable.toSeq().map(entryMapper).toIndexedSeq();
- entriesSequence.fromEntrySeq = function() {return iterable.toSeq()};
- return entriesSequence;
- },
-
- filterNot: function(predicate, context) {
- return this.filter(not(predicate), context);
- },
-
- findEntry: function(predicate, context, notSetValue) {
- var found = notSetValue;
- this.__iterate(function(v, k, c) {
- if (predicate.call(context, v, k, c)) {
- found = [k, v];
- return false;
- }
- });
- return found;
- },
-
- findKey: function(predicate, context) {
- var entry = this.findEntry(predicate, context);
- return entry && entry[0];
- },
-
- findLast: function(predicate, context, notSetValue) {
- return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);
- },
-
- findLastEntry: function(predicate, context, notSetValue) {
- return this.toKeyedSeq().reverse().findEntry(predicate, context, notSetValue);
- },
-
- findLastKey: function(predicate, context) {
- return this.toKeyedSeq().reverse().findKey(predicate, context);
- },
-
- first: function() {
- return this.find(returnTrue);
- },
-
- flatMap: function(mapper, context) {
- return reify(this, flatMapFactory(this, mapper, context));
- },
-
- flatten: function(depth) {
- return reify(this, flattenFactory(this, depth, true));
- },
-
- fromEntrySeq: function() {
- return new FromEntriesSequence(this);
- },
-
- get: function(searchKey, notSetValue) {
- return this.find(function(_, key) {return is(key, searchKey)}, undefined, notSetValue);
- },
-
- getIn: function(searchKeyPath, notSetValue) {
- var nested = this;
- // Note: in an ES6 environment, we would prefer:
- // for (var key of searchKeyPath) {
- var iter = forceIterator(searchKeyPath);
- var step;
- while (!(step = iter.next()).done) {
- var key = step.value;
- nested = nested && nested.get ? nested.get(key, NOT_SET) : NOT_SET;
- if (nested === NOT_SET) {
- return notSetValue;
- }
- }
- return nested;
- },
-
- groupBy: function(grouper, context) {
- return groupByFactory(this, grouper, context);
- },
-
- has: function(searchKey) {
- return this.get(searchKey, NOT_SET) !== NOT_SET;
- },
-
- hasIn: function(searchKeyPath) {
- return this.getIn(searchKeyPath, NOT_SET) !== NOT_SET;
- },
-
- isSubset: function(iter) {
- iter = typeof iter.includes === 'function' ? iter : Iterable(iter);
- return this.every(function(value ) {return iter.includes(value)});
- },
-
- isSuperset: function(iter) {
- iter = typeof iter.isSubset === 'function' ? iter : Iterable(iter);
- return iter.isSubset(this);
- },
-
- keyOf: function(searchValue) {
- return this.findKey(function(value ) {return is(value, searchValue)});
- },
-
- keySeq: function() {
- return this.toSeq().map(keyMapper).toIndexedSeq();
- },
-
- last: function() {
- return this.toSeq().reverse().first();
- },
-
- lastKeyOf: function(searchValue) {
- return this.toKeyedSeq().reverse().keyOf(searchValue);
- },
-
- max: function(comparator) {
- return maxFactory(this, comparator);
- },
-
- maxBy: function(mapper, comparator) {
- return maxFactory(this, comparator, mapper);
- },
-
- min: function(comparator) {
- return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator);
- },
-
- minBy: function(mapper, comparator) {
- return maxFactory(this, comparator ? neg(comparator) : defaultNegComparator, mapper);
- },
-
- rest: function() {
- return this.slice(1);
- },
-
- skip: function(amount) {
- return this.slice(Math.max(0, amount));
- },
-
- skipLast: function(amount) {
- return reify(this, this.toSeq().reverse().skip(amount).reverse());
- },
-
- skipWhile: function(predicate, context) {
- return reify(this, skipWhileFactory(this, predicate, context, true));
- },
-
- skipUntil: function(predicate, context) {
- return this.skipWhile(not(predicate), context);
- },
-
- sortBy: function(mapper, comparator) {
- return reify(this, sortFactory(this, comparator, mapper));
- },
-
- take: function(amount) {
- return this.slice(0, Math.max(0, amount));
- },
-
- takeLast: function(amount) {
- return reify(this, this.toSeq().reverse().take(amount).reverse());
- },
-
- takeWhile: function(predicate, context) {
- return reify(this, takeWhileFactory(this, predicate, context));
- },
-
- takeUntil: function(predicate, context) {
- return this.takeWhile(not(predicate), context);
- },
-
- valueSeq: function() {
- return this.toIndexedSeq();
- },
-
-
- // ### Hashable Object
-
- hashCode: function() {
- return this.__hash || (this.__hash = hashIterable(this));
- }
-
-
- // ### Internal
-
- // abstract __iterate(fn, reverse)
-
- // abstract __iterator(type, reverse)
- });
-
- // var IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
- // var IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
- // var IS_INDEXED_SENTINEL = '@@__IMMUTABLE_INDEXED__@@';
- // var IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
-
- var IterablePrototype = Iterable.prototype;
- IterablePrototype[IS_ITERABLE_SENTINEL] = true;
- IterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.values;
- IterablePrototype.__toJS = IterablePrototype.toArray;
- IterablePrototype.__toStringMapper = quoteString;
- IterablePrototype.inspect =
- IterablePrototype.toSource = function() { return this.toString(); };
- IterablePrototype.chain = IterablePrototype.flatMap;
- IterablePrototype.contains = IterablePrototype.includes;
-
- mixin(KeyedIterable, {
-
- // ### More sequential methods
-
- flip: function() {
- return reify(this, flipFactory(this));
- },
-
- mapEntries: function(mapper, context) {var this$0 = this;
- var iterations = 0;
- return reify(this,
- this.toSeq().map(
- function(v, k) {return mapper.call(context, [k, v], iterations++, this$0)}
- ).fromEntrySeq()
- );
- },
-
- mapKeys: function(mapper, context) {var this$0 = this;
- return reify(this,
- this.toSeq().flip().map(
- function(k, v) {return mapper.call(context, k, v, this$0)}
- ).flip()
- );
- }
-
- });
-
- var KeyedIterablePrototype = KeyedIterable.prototype;
- KeyedIterablePrototype[IS_KEYED_SENTINEL] = true;
- KeyedIterablePrototype[ITERATOR_SYMBOL] = IterablePrototype.entries;
- KeyedIterablePrototype.__toJS = IterablePrototype.toObject;
- KeyedIterablePrototype.__toStringMapper = function(v, k) {return JSON.stringify(k) + ': ' + quoteString(v)};
-
-
-
- mixin(IndexedIterable, {
-
- // ### Conversion to other types
-
- toKeyedSeq: function() {
- return new ToKeyedSequence(this, false);
- },
-
-
- // ### ES6 Collection methods (ES6 Array and Map)
-
- filter: function(predicate, context) {
- return reify(this, filterFactory(this, predicate, context, false));
- },
-
- findIndex: function(predicate, context) {
- var entry = this.findEntry(predicate, context);
- return entry ? entry[0] : -1;
- },
-
- indexOf: function(searchValue) {
- var key = this.keyOf(searchValue);
- return key === undefined ? -1 : key;
- },
-
- lastIndexOf: function(searchValue) {
- var key = this.lastKeyOf(searchValue);
- return key === undefined ? -1 : key;
- },
-
- reverse: function() {
- return reify(this, reverseFactory(this, false));
- },
-
- slice: function(begin, end) {
- return reify(this, sliceFactory(this, begin, end, false));
- },
-
- splice: function(index, removeNum /*, ...values*/) {
- var numArgs = arguments.length;
- removeNum = Math.max(removeNum | 0, 0);
- if (numArgs === 0 || (numArgs === 2 && !removeNum)) {
- return this;
- }
- // If index is negative, it should resolve relative to the size of the
- // collection. However size may be expensive to compute if not cached, so
- // only call count() if the number is in fact negative.
- index = resolveBegin(index, index < 0 ? this.count() : this.size);
- var spliced = this.slice(0, index);
- return reify(
- this,
- numArgs === 1 ?
- spliced :
- spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))
- );
- },
-
-
- // ### More collection methods
-
- findLastIndex: function(predicate, context) {
- var entry = this.findLastEntry(predicate, context);
- return entry ? entry[0] : -1;
- },
-
- first: function() {
- return this.get(0);
- },
-
- flatten: function(depth) {
- return reify(this, flattenFactory(this, depth, false));
- },
-
- get: function(index, notSetValue) {
- index = wrapIndex(this, index);
- return (index < 0 || (this.size === Infinity ||
- (this.size !== undefined && index > this.size))) ?
- notSetValue :
- this.find(function(_, key) {return key === index}, undefined, notSetValue);
- },
-
- has: function(index) {
- index = wrapIndex(this, index);
- return index >= 0 && (this.size !== undefined ?
- this.size === Infinity || index < this.size :
- this.indexOf(index) !== -1
- );
- },
-
- interpose: function(separator) {
- return reify(this, interposeFactory(this, separator));
- },
-
- interleave: function(/*...iterables*/) {
- var iterables = [this].concat(arrCopy(arguments));
- var zipped = zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);
- var interleaved = zipped.flatten(true);
- if (zipped.size) {
- interleaved.size = zipped.size * iterables.length;
- }
- return reify(this, interleaved);
- },
-
- keySeq: function() {
- return Range(0, this.size);
- },
-
- last: function() {
- return this.get(-1);
- },
-
- skipWhile: function(predicate, context) {
- return reify(this, skipWhileFactory(this, predicate, context, false));
- },
-
- zip: function(/*, ...iterables */) {
- var iterables = [this].concat(arrCopy(arguments));
- return reify(this, zipWithFactory(this, defaultZipper, iterables));
- },
-
- zipWith: function(zipper/*, ...iterables */) {
- var iterables = arrCopy(arguments);
- iterables[0] = this;
- return reify(this, zipWithFactory(this, zipper, iterables));
- }
-
- });
-
- IndexedIterable.prototype[IS_INDEXED_SENTINEL] = true;
- IndexedIterable.prototype[IS_ORDERED_SENTINEL] = true;
-
-
-
- mixin(SetIterable, {
-
- // ### ES6 Collection methods (ES6 Array and Map)
-
- get: function(value, notSetValue) {
- return this.has(value) ? value : notSetValue;
- },
-
- includes: function(value) {
- return this.has(value);
- },
-
-
- // ### More sequential methods
-
- keySeq: function() {
- return this.valueSeq();
- }
-
- });
-
- SetIterable.prototype.has = IterablePrototype.includes;
- SetIterable.prototype.contains = SetIterable.prototype.includes;
-
-
- // Mixin subclasses
-
- mixin(KeyedSeq, KeyedIterable.prototype);
- mixin(IndexedSeq, IndexedIterable.prototype);
- mixin(SetSeq, SetIterable.prototype);
-
- mixin(KeyedCollection, KeyedIterable.prototype);
- mixin(IndexedCollection, IndexedIterable.prototype);
- mixin(SetCollection, SetIterable.prototype);
-
-
- // #pragma Helper functions
-
- function keyMapper(v, k) {
- return k;
- }
-
- function entryMapper(v, k) {
- return [k, v];
- }
-
- function not(predicate) {
- return function() {
- return !predicate.apply(this, arguments);
- }
- }
-
- function neg(predicate) {
- return function() {
- return -predicate.apply(this, arguments);
- }
- }
-
- function quoteString(value) {
- return typeof value === 'string' ? JSON.stringify(value) : String(value);
- }
-
- function defaultZipper() {
- return arrCopy(arguments);
- }
-
- function defaultNegComparator(a, b) {
- return a < b ? 1 : a > b ? -1 : 0;
- }
-
- function hashIterable(iterable) {
- if (iterable.size === Infinity) {
- return 0;
- }
- var ordered = isOrdered(iterable);
- var keyed = isKeyed(iterable);
- var h = ordered ? 1 : 0;
- var size = iterable.__iterate(
- keyed ?
- ordered ?
- function(v, k) { h = 31 * h + hashMerge(hash(v), hash(k)) | 0; } :
- function(v, k) { h = h + hashMerge(hash(v), hash(k)) | 0; } :
- ordered ?
- function(v ) { h = 31 * h + hash(v) | 0; } :
- function(v ) { h = h + hash(v) | 0; }
- );
- return murmurHashOfSize(size, h);
- }
-
- function murmurHashOfSize(size, h) {
- h = imul(h, 0xCC9E2D51);
- h = imul(h << 15 | h >>> -15, 0x1B873593);
- h = imul(h << 13 | h >>> -13, 5);
- h = (h + 0xE6546B64 | 0) ^ size;
- h = imul(h ^ h >>> 16, 0x85EBCA6B);
- h = imul(h ^ h >>> 13, 0xC2B2AE35);
- h = smi(h ^ h >>> 16);
- return h;
- }
-
- function hashMerge(a, b) {
- return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int
- }
-
- var Immutable = {
-
- Iterable: Iterable,
-
- Seq: Seq,
- Collection: Collection,
- Map: Map,
- OrderedMap: OrderedMap,
- List: List,
- Stack: Stack,
- Set: Set,
- OrderedSet: OrderedSet,
-
- Record: Record,
- Range: Range,
- Repeat: Repeat,
-
- is: is,
- fromJS: fromJS
-
- };
-
- return Immutable;
-
-}));
diff --git a/backend/staticfiles/drf-yasg/immutable.js.gz b/backend/staticfiles/drf-yasg/immutable.js.gz
deleted file mode 100644
index 5d1a29b68..000000000
Binary files a/backend/staticfiles/drf-yasg/immutable.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/immutable.min.d985bc61d85c.js b/backend/staticfiles/drf-yasg/immutable.min.d985bc61d85c.js
deleted file mode 100644
index 5ea82ee16..000000000
--- a/backend/staticfiles/drf-yasg/immutable.min.d985bc61d85c.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Copyright (c) 2014-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Immutable=e()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:O(t)}function r(t){return u(t)?t:x(t)}function n(t){return s(t)?t:k(t)}function i(t){return o(t)&&!a(t)?t:A(t)}function o(t){return!(!t||!t[ar])}function u(t){return!(!t||!t[hr])}function s(t){return!(!t||!t[fr])}function a(t){return u(t)||s(t)}function h(t){return!(!t||!t[cr])}function f(t){return t.value=!1,t}function c(t){t&&(t.value=!0)}function _(){}function p(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;r>i;i++)n[i]=t[i+e];return n}function v(t){return void 0===t.size&&(t.size=t.__iterate(y)),t.size}function l(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return 0>e?v(t)+e:e}function y(){return!0}function d(t,e,r){return(0===t||void 0!==r&&-r>=t)&&(void 0===e||void 0!==r&&e>=r)}function m(t,e){return w(t,e,0)}function g(t,e){return w(t,e,e)}function w(t,e,r){return void 0===t?r:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function S(t){this.next=t}function z(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function I(){return{value:void 0,done:!0}}function b(t){return!!M(t)}function q(t){return t&&"function"==typeof t.next}function D(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(zr&&t[zr]||t[Ir]);return"function"==typeof e?e:void 0}function E(t){return t&&"number"==typeof t.length}function O(t){return null===t||void 0===t?T():o(t)?t.toSeq():C(t)}function x(t){return null===t||void 0===t?T().toKeyedSeq():o(t)?u(t)?t.toSeq():t.fromEntrySeq():B(t)}function k(t){return null===t||void 0===t?T():o(t)?u(t)?t.entrySeq():t.toIndexedSeq():W(t)}function A(t){return(null===t||void 0===t?T():o(t)?u(t)?t.entrySeq():t:W(t)).toSetSeq()}function j(t){this._array=t,this.size=t.length}function R(t){var e=Object.keys(t);this._object=t,this._keys=e,
-this.size=e.length}function U(t){this._iterable=t,this.size=t.length||t.size}function K(t){this._iterator=t,this._iteratorCache=[]}function L(t){return!(!t||!t[qr])}function T(){return Dr||(Dr=new j([]))}function B(t){var e=Array.isArray(t)?new j(t).fromEntrySeq():q(t)?new K(t).fromEntrySeq():b(t)?new U(t).fromEntrySeq():"object"==typeof t?new R(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function W(t){var e=J(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function C(t){var e=J(t)||"object"==typeof t&&new R(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function J(t){return E(t)?new j(t):q(t)?new K(t):b(t)?new U(t):void 0}function N(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;o>=u;u++){var s=i[r?o-u:u];if(e(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(e,r)}function P(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new S(function(){var t=i[r?o-u:u];return u++>o?I():z(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function H(t,e){return e?V(e,t,"",{"":t}):Y(t)}function V(t,e,r,n){return Array.isArray(e)?t.call(n,r,k(e).map(function(r,n){return V(t,r,n,e)})):Q(e)?t.call(n,r,x(e).map(function(r,n){return V(t,r,n,e)})):e}function Y(t){return Array.isArray(t)?k(t).map(Y).toList():Q(t)?x(t).map(Y).toMap():t}function Q(t){return t&&(t.constructor===Object||void 0===t.constructor)}function X(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return"function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e)?!0:!1}function F(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||u(t)!==u(e)||s(t)!==s(e)||h(t)!==h(e))return!1;if(0===t.size&&0===e.size)return!0;
-var r=!a(t);if(h(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&X(i[1],t)&&(r||X(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var f=t;t=e,e=f}var c=!0,_=e.__iterate(function(e,n){return(r?t.has(e):i?X(e,t.get(n,yr)):X(t.get(n,yr),e))?void 0:(c=!1,!1)});return c&&t.size===_}function G(t,e){if(!(this instanceof G))return new G(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Mr)return Mr;Mr=this}}function Z(t,e){if(!t)throw Error(e)}function $(t,e,r){if(!(this instanceof $))return new $(t,e,r);if(Z(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Er)return Er;Er=this}}function tt(){throw TypeError("Abstract")}function et(){}function rt(){}function nt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return it(r)}if("string"===e)return t.length>Kr?ut(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return at(t);if("function"==typeof t.toString)return st(""+t);throw Error("Value type "+e+" cannot be hashed.")}function ut(t){var e=Br[t];return void 0===e&&(e=st(t),Tr===Lr&&(Tr=0,Br={}),Tr++,Br[t]=e),e}function st(t){for(var e=0,r=0;t.length>r;r++)e=31*e+t.charCodeAt(r)|0;return it(e)}function at(t){var e;if(jr&&(e=Or.get(t),void 0!==e))return e;if(e=t[Ur],void 0!==e)return e;if(!Ar){if(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ur],void 0!==e)return e;if(e=ht(t),void 0!==e)return e}if(e=++Rr,1073741824&Rr&&(Rr=0),jr)Or.set(t,e);else{if(void 0!==kr&&kr(t)===!1)throw Error("Non-extensible objects are not allowed as keys.");
-if(Ar)Object.defineProperty(t,Ur,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ur]=e;else{if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[Ur]=e}}return e}function ht(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ft(t){Z(t!==1/0,"Cannot perform this action with an infinite size.")}function ct(t){return null===t||void 0===t?zt():_t(t)&&!h(t)?t:zt().withMutations(function(e){var n=r(t);ft(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function _t(t){return!(!t||!t[Wr])}function pt(t,e){this.ownerID=t,this.entries=e}function vt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function lt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function yt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function dt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function mt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}function gt(t,e){return z(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function St(t,e,r,n){var i=Object.create(Cr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function zt(){return Jr||(Jr=St(0))}function It(t,e,r){var n,i;if(t._root){var o=f(dr),u=f(mr);if(n=bt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===yr?-1:1:0)}else{if(r===yr)return t;i=1,n=new pt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?St(i,n):zt()}function bt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===yr?t:(c(s),c(u),new dt(e,n,[i,o]))}function qt(t){return t.constructor===dt||t.constructor===yt}function Dt(t,e,r,n,i){if(t.keyHash===n)return new yt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&lr,s=(0===r?n:n>>>r)&lr,a=u===s?[Dt(t,e,r+pr,n,i)]:(o=new dt(e,n,i),
-s>u?[t,o]:[o,t]);return new vt(e,1<o;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}function Et(t,e,r,n){for(var i=0,o=0,u=Array(r),s=0,a=1,h=e.length;h>s;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new vt(t,i,u)}function Ot(t,e,r,n,i){for(var o=0,u=Array(vr),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new lt(t,o+1,u)}function xt(t,e,n){for(var i=[],u=0;n.length>u;u++){var s=n[u],a=r(s);o(s)||(a=a.map(function(t){return H(t)})),i.push(a)}return jt(t,e,i)}function kt(t,e,r){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):X(t,e)?t:e}function At(t){return function(e,r,n){if(e&&e.mergeDeepWith&&o(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return X(e,i)?e:i}}function jt(t,e,r){return r=r.filter(function(t){return 0!==t.size}),0===r.length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,yr,function(t){return t===yr?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;r.length>i;i++)r[i].forEach(n)}):t.constructor(r[0])}function Rt(t,e,r,n){var i=t===yr,o=e.next();if(o.done){var u=i?r:t,s=n(u);return s===u?t:s}Z(i||t&&t.set,"invalid keyPath");var a=o.value,h=i?yr:t.get(a,yr),f=Rt(h,e,r,n);return f===h?t:f===yr?t.remove(a):(i?zt():t).set(a,f)}function Ut(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Kt(t,e,r,n){var i=n?t:p(t);return i[e]=r,i}function Lt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,s=0;i>s;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Tt(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;n>u;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Bt(t){var e=Pt();if(null===t||void 0===t)return e;if(Wt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ft(i),i>0&&vr>i?Nt(0,i,pr,null,new Ct(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Wt(t){
-return!(!t||!t[Vr])}function Ct(t,e){this.array=t,this.ownerID=e}function Jt(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,h=u-r;return h>vr&&(h=vr),function(){if(i===h)return Xr;var t=e?--h:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,h=i>o?0:o-i>>n,f=(u-i>>n)+1;return f>vr&&(f=vr),function(){for(;;){if(s){var t=s();if(t!==Xr)return t;s=null}if(h===f)return Xr;var o=e?--f:h++;s=r(a&&a[o],n-pr,i+(o<=t.size||0>e)return t.withMutations(function(t){0>e?Xt(t,e).set(0,r):Xt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=f(mr);return e>=Gt(t._capacity)?n=Vt(n,t.__ownerID,0,e,r,o):i=Vt(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Nt(t._origin,t._capacity,t._level,i,n):t}function Vt(t,e,r,n,i,o){var u=n>>>r&lr,s=t&&t.array.length>u;if(!s&&void 0===i)return t;var a;if(r>0){var h=t&&t.array[u],f=Vt(h,e,r-pr,n,i,o);return f===h?t:(a=Yt(t,e),a.array[u]=f,a)}return s&&t.array[u]===i?t:(c(o),a=Yt(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Yt(t,e){return e&&t&&e===t.ownerID?t:new Ct(t?t.array.slice():[],e)}function Qt(t,e){if(e>=Gt(t._capacity))return t._tail;if(1<e){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&lr],n-=pr;return r}}function Xt(t,e,r){void 0!==e&&(e=0|e),void 0!==r&&(r=0|r);var n=t.__ownerID||new _,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:0>r?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,h=t._root,f=0;0>u+f;)h=new Ct(h&&h.array.length?[void 0,h]:[],n),a+=pr,f+=1<=1< p?Qt(t,s-1):p>c?new Ct([],n):v;if(v&&p>c&&o>u&&v.array.length){h=Yt(h,n);for(var y=h,d=a;d>pr;d-=pr){var m=c>>>d&lr;y=y.array[m]=Yt(y.array[m],n)}y.array[c>>>pr&lr]=v}if(o>s&&(l=l&&l.removeAfter(n,0,s)),u>=p)u-=p,s-=p,a=pr,h=null,l=l&&l.removeBefore(n,0,u);else if(u>i||c>p){for(f=0;h;){var g=u>>>a&lr;if(g!==p>>>a&lr)break;g&&(f+=(1< i&&(h=h.removeBefore(n,a,u-f)),h&&c>p&&(h=h.removeAfter(n,a,p-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=h,t._tail=l,t.__hash=void 0,t.__altered=!0,t):Nt(u,s,a,h,l)}function Ft(t,e,r){for(var i=[],u=0,s=0;r.length>s;s++){var a=r[s],h=n(a);h.size>u&&(u=h.size),o(a)||(h=h.map(function(t){return H(t)})),i.push(h)}return u>t.size&&(t=t.setSize(u)),jt(t,e,i)}function Gt(t){return vr>t?0:t-1>>>pr<=vr&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):te(n,i)}function ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){var e=Ee(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);
-return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Oe,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===Sr){var n=t.__iterator(e,r);return new S(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wr?gr:wr,r)},e}function ae(t,e,r){var n=Ee(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,yr);return o===yr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(Sr,i);return new S(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return z(n,s,e.call(r,u[1],s,t),i)})},n}function he(t,e){var r=Ee(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=Oe,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function fe(t,e,r,n){var i=Ee(t);return n&&(i.has=function(n){var i=t.get(n,yr);return i!==yr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,yr);return o!==yr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){return e.call(r,t,o,a)?(s++,i(t,n?o:s-1,u)):void 0},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(Sr,o),s=0;return new S(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,h=a[0],f=a[1];if(e.call(r,f,h,t))return z(i,n?h:s++,f,o)}})},i}function ce(t,e,r){var n=ct().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){
-return t+1})}),n.asImmutable()}function _e(t,e,r){var n=u(t),i=(h(t)?Zt():ct()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=Me(t);return i.map(function(e){return be(t,o(e))})}function pe(t,e,r,n){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==r&&(r=r===1/0?i:0|r),d(e,r,i))return t;var o=m(e,i),u=g(r,i);if(o!==o||u!==u)return pe(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=0>a?0:a);var h=Ee(t);return h.size=0===s?s:t.size&&s||void 0,!n&&L(t)&&s>=0&&(h.get=function(e,r){return e=l(this,e),e>=0&&s>e?t.get(e+o,r):r}),h.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,h=0;return t.__iterate(function(t,r){return a&&(a=u++s)return I();var t=i.next();return n||e===wr?t:e===gr?z(e,a-1,void 0,t):z(e,a-1,t.value[1],t)})},h}function ve(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(Sr,i),s=!0;return new S(function(){if(!s)return I();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],h=i[1];return e.call(r,h,a,o)?n===Sr?t:z(n,a,h,t):(s=!1,I())})},n}function le(t,e,r,n){var i=Ee(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,h){return s&&(s=e.call(r,t,o,h))?void 0:(a++,i(t,n?o:a-1,u))}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(Sr,o),a=!0,h=0;return new S(function(){var t,o,f;do{if(t=s.next(),t.done)return n||i===wr?t:i===gr?z(i,h++,void 0,t):z(i,h++,t.value[1],t);
-var c=t.value;o=c[0],f=c[1],a&&(a=e.call(r,f,o,u))}while(a);return i===Sr?t:z(i,o,f,t)})},i}function ye(t,e){var n=u(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?B(t):W(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var a=i[0];if(a===t||n&&u(a)||s(t)&&s(a))return a}var h=new j(i);return n?h=h.toKeyedSeq():s(t)||(h=h.toSetSeq()),h=h.flatten(!0),h.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),h}function de(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){function u(t,h){var f=this;t.__iterate(function(t,i){return(!e||e>h)&&o(t)?u(t,h+1):n(t,r?i:s++,f)===!1&&(a=!0),!a},i)}var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),s=[],a=0;return new S(function(){for(;u;){var t=u.next();if(t.done===!1){var h=t.value;if(n===Sr&&(h=h[1]),e&&!(e>s.length)||!o(h))return r?t:z(n,a++,h,t);s.push(u),u=h.__iterator(n,i)}else u=s.pop()}return I()})},n}function me(t,e,r){var n=Me(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function ge(t,e){var r=Ee(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||r(e,o++,i)!==!1)&&r(t,o++,i)!==!1},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(wr,n),u=0;return new S(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?z(r,u++,e):z(r,u++,i.value,i)})},r}function we(t,e,r){e||(e=xe);var n=u(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?x(o):s(t)?k(o):A(o)}function Se(t,e,r){if(e||(e=xe),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return ze(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return ze(e,t,r)?r:t})}function ze(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function Ie(t,r,n){
-var i=Ee(t);return i.size=new j(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(wr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),D(i?t.reverse():t)}),u=0,s=!1;return new S(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?I():z(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function be(t,e){return L(t)?e:t.constructor(e)}function qe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function De(t){return ft(t.size),v(t)}function Me(t){return u(t)?r:s(t)?n:i}function Ee(t){return Object.create((u(t)?x:s(t)?k:A).prototype)}function Oe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):O.prototype.cacheResult.call(this)}function xe(t,e){return t>e?1:e>t?-1:0}function ke(t){var r=D(t);if(!r){if(!E(t))throw new TypeError("Expected iterable or array-like: "+t);r=D(e(t))}return r}function Ae(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Ue(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=ct(o)},i=n.prototype=Object.create(Gr);return i.constructor=n,n}function je(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Re(t){return t._name||t.constructor.name||"Record"}function Ue(t,e){try{e.forEach(Ke.bind(void 0,t))}catch(r){}}function Ke(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Z(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Le(t){return null===t||void 0===t?Ce():Te(t)&&!h(t)?t:Ce().withMutations(function(e){var r=i(t);ft(r.size),r.forEach(function(t){return e.add(t)})})}function Te(t){return!(!t||!t[Zr])}function Be(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function We(t,e){var r=Object.create($r);
-return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ce(){return tn||(tn=We(zt()))}function Je(t){return null===t||void 0===t?He():Ne(t)?t:He().withMutations(function(e){var r=i(t);ft(r.size),r.forEach(function(t){return e.add(t)})})}function Ne(t){return Te(t)&&h(t)}function Pe(t,e){var r=Object.create(en);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function He(){return rn||(rn=Pe(ee()))}function Ve(t){return null===t||void 0===t?Xe():Ye(t)?t:Xe().unshiftAll(t)}function Ye(t){return!(!t||!t[nn])}function Qe(t,e,r,n){var i=Object.create(on);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Xe(){return un||(un=Qe(0))}function Fe(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Ge(t,e){return e}function Ze(t,e){return[e,t]}function $e(t){return function(){return!t.apply(this,arguments)}}function tr(t){return function(){return-t.apply(this,arguments)}}function er(t){return"string"==typeof t?JSON.stringify(t):t+""}function rr(){return p(arguments)}function nr(t,e){return e>t?1:t>e?-1:0}function ir(t){if(t.size===1/0)return 0;var e=h(t),r=u(t),n=e?1:0,i=t.__iterate(r?e?function(t,e){n=31*n+ur(ot(t),ot(e))|0}:function(t,e){n=n+ur(ot(t),ot(e))|0}:e?function(t){n=31*n+ot(t)|0}:function(t){n=n+ot(t)|0});return or(i,n)}function or(t,e){return e=xr(e,3432918353),e=xr(e<<15|e>>>-15,461845907),e=xr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=xr(e^e>>>16,2246822507),e=xr(e^e>>>13,3266489909),e=it(e^e>>>16)}function ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sr=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=o,e.isKeyed=u,e.isIndexed=s,e.isAssociative=a,e.isOrdered=h,e.Keyed=r,e.Indexed=n,e.Set=i;var ar="@@__IMMUTABLE_ITERABLE__@@",hr="@@__IMMUTABLE_KEYED__@@",fr="@@__IMMUTABLE_INDEXED__@@",cr="@@__IMMUTABLE_ORDERED__@@",_r="delete",pr=5,vr=1<=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},j.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new S(function(){return i>n?I():z(t,i,r[e?n-i++:i++])})},t(R,x),R.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},R.prototype.has=function(t){return this._object.hasOwnProperty(t)},R.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;i>=o;o++){var u=n[e?i-o:o];if(t(r[u],u,this)===!1)return o+1}return o},R.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new S(function(){var u=n[e?i-o:o];return o++>i?I():z(t,u,r[u])})},R.prototype[cr]=!0,t(U,k),U.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);
-var r=this._iterable,n=D(r),i=0;if(q(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},U.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=D(r);if(!q(n))return new S(I);var i=0;return new S(function(){var e=n.next();return e.done?e:z(t,i++,e.value)})},t(K,k),K.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=this._iterator,n=this._iteratorCache,i=0;n.length>i;)if(t(n[i],i++,this)===!1)return i;for(var o;!(o=r.next()).done;){var u=o.value;if(n[i]=u,t(u,i++,this)===!1)break}return i},K.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new S(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return z(t,i,n[i++])})};var Dr;t(G,k),G.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},G.prototype.get=function(t,e){return this.has(t)?this._value:e},G.prototype.includes=function(t){return X(this._value,t)},G.prototype.slice=function(t,e){var r=this.size;return d(t,e,r)?this:new G(this._value,g(e,r)-m(t,r))},G.prototype.reverse=function(){return this},G.prototype.indexOf=function(t){return X(this._value,t)?0:-1},G.prototype.lastIndexOf=function(t){return X(this._value,t)?this.size:-1},G.prototype.__iterate=function(t,e){for(var r=0;this.size>r;r++)if(t(this._value,r,this)===!1)return r+1;return r},G.prototype.__iterator=function(t,e){var r=this,n=0;return new S(function(){return r.size>n?z(t,n++,r._value):I()})},G.prototype.equals=function(t){return t instanceof G?X(this._value,t._value):F(t)};var Mr;t($,k),$.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},$.prototype.get=function(t,e){return this.has(t)?this._start+l(this,t)*this._step:e},$.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&this.size>e&&e===Math.floor(e);
-},$.prototype.slice=function(t,e){return d(t,e,this.size)?this:(t=m(t,this.size),e=g(e,this.size),t>=e?new $(0,0):new $(this.get(t,this._end),this.get(e,this._end),this._step))},$.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&this.size>r)return r}return-1},$.prototype.lastIndexOf=function(t){return this.indexOf(t)},$.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;r>=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-n:n}return o},$.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new S(function(){var u=i;return i+=e?-n:n,o>r?I():z(t,o++,u)})},$.prototype.equals=function(t){return t instanceof $?this._start===t._start&&this._end===t._end&&this._step===t._step:F(this,t)};var Er;t(tt,e),t(et,tt),t(rt,tt),t(nt,tt),tt.Keyed=et,tt.Indexed=rt,tt.Set=nt;var Or,xr="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},kr=Object.isExtensible,Ar=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),jr="function"==typeof WeakMap;jr&&(Or=new WeakMap);var Rr=0,Ur="__immutablehash__";"function"==typeof Symbol&&(Ur=Symbol(Ur));var Kr=16,Lr=255,Tr=0,Br={};t(ct,et),ct.of=function(){var t=sr.call(arguments,0);return zt().withMutations(function(e){for(var r=0;t.length>r;r+=2){if(r+1>=t.length)throw Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},ct.prototype.toString=function(){return this.__toString("Map {","}")},ct.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ct.prototype.set=function(t,e){return It(this,t,e)},ct.prototype.setIn=function(t,e){return this.updateIn(t,yr,function(){return e})},ct.prototype.remove=function(t){return It(this,t,yr)},ct.prototype.deleteIn=function(t){return this.updateIn(t,function(){return yr})},ct.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r);
-},ct.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Rt(this,ke(t),e,r);return n===yr?void 0:n},ct.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):zt()},ct.prototype.merge=function(){return xt(this,void 0,arguments)},ct.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return xt(this,t,e)},ct.prototype.mergeIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,zt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ct.prototype.mergeDeep=function(){return xt(this,kt,arguments)},ct.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return xt(this,At(t),e)},ct.prototype.mergeDeepIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,zt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ct.prototype.sort=function(t){return Zt(we(this,t))},ct.prototype.sortBy=function(t,e){return Zt(we(this,e,t))},ct.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ct.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},ct.prototype.asImmutable=function(){return this.__ensureOwner()},ct.prototype.wasAltered=function(){return this.__altered},ct.prototype.__iterator=function(t,e){return new mt(this,t,e)},ct.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},ct.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?St(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ct.isMap=_t;var Wr="@@__IMMUTABLE_MAP__@@",Cr=ct.prototype;Cr[Wr]=!0,Cr[_r]=Cr.remove,Cr.removeIn=Cr.deleteIn,pt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(X(r,i[o][0]))return i[o][1];return n},pt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===yr,a=this.entries,h=0,f=a.length;f>h&&!X(n,a[h][0]);h++);
-var _=f>h;if(_?a[h][1]===i:s)return this;if(c(u),(s||!_)&&c(o),!s||1!==a.length){if(!_&&!s&&a.length>=Nr)return Mt(t,a,n,i);var v=t&&t===this.ownerID,l=v?a:p(a);return _?s?h===f-1?l.pop():l[h]=l.pop():l[h]=[n,i]:l.push([n,i]),v?(this.entries=l,this):new pt(t,l)}},vt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=1<<((0===t?e:e>>>t)&lr),o=this.bitmap;return 0===(o&i)?n:this.nodes[Ut(o&i-1)].get(t+pr,e,r,n)},vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&lr,a=1<=Pr)return Ot(t,_,h,s,v);if(f&&!v&&2===_.length&&qt(_[1^c]))return _[1^c];if(f&&v&&1===_.length&&qt(v))return v;var l=t&&t===this.ownerID,y=f?v?h:h^a:h|a,d=f?v?Kt(_,c,v,l):Tt(_,c,l):Lt(_,c,v,l);return l?(this.bitmap=y,this.nodes=d,this):new vt(t,y,d)},lt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=(0===t?e:e>>>t)&lr,o=this.nodes[i];return o?o.get(t+pr,e,r,n):n},lt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&lr,a=i===yr,h=this.nodes,f=h[s];if(a&&!f)return this;var c=bt(f,t,e+pr,r,n,i,o,u);if(c===f)return this;var _=this.count;if(f){if(!c&&(_--,Hr>_))return Et(t,h,_,s)}else _++;var p=t&&t===this.ownerID,v=Kt(h,s,c,p);return p?(this.count=_,this.nodes=v,this):new lt(t,_,v)},yt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(X(r,i[o][0]))return i[o][1];return n},yt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=i===yr;if(r!==this.keyHash)return s?this:(c(u),c(o),Dt(this,t,e,r,[n,i]));for(var a=this.entries,h=0,f=a.length;f>h&&!X(n,a[h][0]);h++);var _=f>h;if(_?a[h][1]===i:s)return this;if(c(u),(s||!_)&&c(o),s&&2===f)return new dt(t,this.keyHash,a[1^h]);var v=t&&t===this.ownerID,l=v?a:p(a);return _?s?h===f-1?l.pop():l[h]=l.pop():l[h]=[n,i]:l.push([n,i]),v?(this.entries=l,this):new yt(t,this.keyHash,l)},dt.prototype.get=function(t,e,r,n){return X(r,this.entry[0])?this.entry[1]:n;
-},dt.prototype.update=function(t,e,r,n,i,o,u){var s=i===yr,a=X(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(c(u),s?void c(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new dt(t,this.keyHash,[n,i]):(c(o),Dt(this,t,e,ot(n),[n,i])))},pt.prototype.iterate=yt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;i>=n;n++)if(t(r[e?i-n:n])===!1)return!1},vt.prototype.iterate=lt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},dt.prototype.iterate=function(t,e){return t(this.entry)},t(mt,S),mt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return gt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,r>=i)return gt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,r>=i){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return gt(t,o.entry);e=this._stack=wt(o,e)}continue}e=this._stack=this._stack.__prev}return I()};var Jr,Nr=vr/4,Pr=vr/2,Hr=vr/4;t(Bt,rt),Bt.of=function(){return this(arguments)},Bt.prototype.toString=function(){return this.__toString("List [","]")},Bt.prototype.get=function(t,e){if(t=l(this,t),t>=0&&this.size>t){t+=this._origin;var r=Qt(this,t);return r&&r.array[t&lr]}return e},Bt.prototype.set=function(t,e){return Ht(this,t,e)},Bt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Bt.prototype.insert=function(t,e){return this.splice(t,0,e)},Bt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=pr,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Pt()},Bt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){Xt(r,0,e+t.length);for(var n=0;t.length>n;n++)r.set(e+n,t[n])})},Bt.prototype.pop=function(){return Xt(this,0,-1)},Bt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Xt(e,-t.length);for(var r=0;t.length>r;r++)e.set(r,t[r]);
-})},Bt.prototype.shift=function(){return Xt(this,1)},Bt.prototype.merge=function(){return Ft(this,void 0,arguments)},Bt.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return Ft(this,t,e)},Bt.prototype.mergeDeep=function(){return Ft(this,kt,arguments)},Bt.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return Ft(this,At(t),e)},Bt.prototype.setSize=function(t){return Xt(this,0,t)},Bt.prototype.slice=function(t,e){var r=this.size;return d(t,e,r)?this:Xt(this,m(t,r),g(e,r))},Bt.prototype.__iterator=function(t,e){var r=0,n=Jt(this,e);return new S(function(){var e=n();return e===Xr?I():z(t,r++,e)})},Bt.prototype.__iterate=function(t,e){for(var r,n=0,i=Jt(this,e);(r=i())!==Xr&&t(r,n++,this)!==!1;);return n},Bt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Nt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Bt.isList=Wt;var Vr="@@__IMMUTABLE_LIST__@@",Yr=Bt.prototype;Yr[Vr]=!0,Yr[_r]=Yr.remove,Yr.setIn=Cr.setIn,Yr.deleteIn=Yr.removeIn=Cr.removeIn,Yr.update=Cr.update,Yr.updateIn=Cr.updateIn,Yr.mergeIn=Cr.mergeIn,Yr.mergeDeepIn=Cr.mergeDeepIn,Yr.withMutations=Cr.withMutations,Yr.asMutable=Cr.asMutable,Yr.asImmutable=Cr.asImmutable,Yr.wasAltered=Cr.wasAltered,Ct.prototype.removeBefore=function(t,e,r){if(r===e?1<>>e&lr;if(n>=this.array.length)return new Ct([],t);var i,o=0===n;if(e>0){var u=this.array[n];if(i=u&&u.removeBefore(t,e-pr,r),i===u&&o)return this}if(o&&!i)return this;var s=Yt(this,t);if(!o)for(var a=0;n>a;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Ct.prototype.removeAfter=function(t,e,r){if(r===(e?1<>>e&lr;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if(i=o&&o.removeAfter(t,e-pr,r),i===o&&n===this.array.length-1)return this}var u=Yt(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Qr,Xr={};t(Zt,ct),Zt.of=function(){return this(arguments)},Zt.prototype.toString=function(){return this.__toString("OrderedMap {","}");
-},Zt.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Zt.prototype.set=function(t,e){return re(this,t,e)},Zt.prototype.remove=function(t){return re(this,t,yr)},Zt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Zt.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},Zt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Zt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?te(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Zt.isOrderedMap=$t,Zt.prototype[cr]=!0,Zt.prototype[_r]=Zt.prototype.remove;var Fr;t(ne,x),ne.prototype.get=function(t,e){return this._iter.get(t,e)},ne.prototype.has=function(t){return this._iter.has(t)},ne.prototype.valueSeq=function(){return this._iter.valueSeq()},ne.prototype.reverse=function(){var t=this,e=he(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ne.prototype.map=function(t,e){var r=this,n=ae(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ne.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?De(this):0,function(i){return t(i,e?--r:r++,n)}),e)},ne.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(wr,e),n=e?De(this):0;return new S(function(){var i=r.next();return i.done?i:z(t,e?--n:n++,i.value,i)})},ne.prototype[cr]=!0,t(ie,k),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},ie.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e),n=0;
-return new S(function(){var e=r.next();return e.done?e:z(t,n++,e.value,e)})},t(oe,A),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},oe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new S(function(){var e=r.next();return e.done?e:z(t,e.value,e.value,e)})},t(ue,x),ue.prototype.entrySeq=function(){return this._iter.toSeq()},ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){qe(e);var n=o(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new S(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){qe(n);var i=o(n);return z(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},ie.prototype.cacheResult=ne.prototype.cacheResult=oe.prototype.cacheResult=ue.prototype.cacheResult=Oe,t(Ae,et),Ae.prototype.toString=function(){return this.__toString(Re(this)+" {","}")},Ae.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ae.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Ae.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=je(this,zt()))},Ae.prototype.set=function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+Re(this));if(this._map&&!this._map.has(t)){var r=this._defaultValues[t];if(e===r)return this}var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:je(this,n)},Ae.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:je(this,e)},Ae.prototype.wasAltered=function(){return this._map.wasAltered()},Ae.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},Ae.prototype.__iterate=function(t,e){
-var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},Ae.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?je(this,e,t):(this.__ownerID=t,this._map=e,this)};var Gr=Ae.prototype;Gr[_r]=Gr.remove,Gr.deleteIn=Gr.removeIn=Cr.removeIn,Gr.merge=Cr.merge,Gr.mergeWith=Cr.mergeWith,Gr.mergeIn=Cr.mergeIn,Gr.mergeDeep=Cr.mergeDeep,Gr.mergeDeepWith=Cr.mergeDeepWith,Gr.mergeDeepIn=Cr.mergeDeepIn,Gr.setIn=Cr.setIn,Gr.update=Cr.update,Gr.updateIn=Cr.updateIn,Gr.withMutations=Cr.withMutations,Gr.asMutable=Cr.asMutable,Gr.asImmutable=Cr.asImmutable,t(Le,nt),Le.of=function(){return this(arguments)},Le.fromKeys=function(t){return this(r(t).keySeq())},Le.prototype.toString=function(){return this.__toString("Set {","}")},Le.prototype.has=function(t){return this._map.has(t)},Le.prototype.add=function(t){return Be(this,this._map.set(t,!0))},Le.prototype.remove=function(t){return Be(this,this._map.remove(t))},Le.prototype.clear=function(){return Be(this,this._map.clear())},Le.prototype.union=function(){var t=sr.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;t.length>r;r++)i(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Le.prototype.intersect=function(){var t=sr.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},Le.prototype.subtract=function(){var t=sr.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},Le.prototype.merge=function(){return this.union.apply(this,arguments)},Le.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return this.union.apply(this,e)},
-Le.prototype.sort=function(t){return Je(we(this,t))},Le.prototype.sortBy=function(t,e){return Je(we(this,e,t))},Le.prototype.wasAltered=function(){return this._map.wasAltered()},Le.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},Le.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Le.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Le.isSet=Te;var Zr="@@__IMMUTABLE_SET__@@",$r=Le.prototype;$r[Zr]=!0,$r[_r]=$r.remove,$r.mergeDeep=$r.merge,$r.mergeDeepWith=$r.mergeWith,$r.withMutations=Cr.withMutations,$r.asMutable=Cr.asMutable,$r.asImmutable=Cr.asImmutable,$r.__empty=Ce,$r.__make=We;var tn;t(Je,Le),Je.of=function(){return this(arguments)},Je.fromKeys=function(t){return this(r(t).keySeq())},Je.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Je.isOrderedSet=Ne;var en=Je.prototype;en[cr]=!0,en.__empty=He,en.__make=Pe;var rn;t(Ve,rt),Ve.of=function(){return this(arguments)},Ve.prototype.toString=function(){return this.__toString("Stack [","]")},Ve.prototype.get=function(t,e){var r=this._head;for(t=l(this,t);r&&t--;)r=r.next;return r?r.value:e},Ve.prototype.peek=function(){return this._head&&this._head.value},Ve.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Qe(t,e)},Ve.prototype.pushAll=function(t){if(t=n(t),0===t.size)return this;ft(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Qe(e,r)},Ve.prototype.pop=function(){return this.slice(1)},Ve.prototype.unshift=function(){return this.push.apply(this,arguments)},Ve.prototype.unshiftAll=function(t){
-return this.pushAll(t)},Ve.prototype.shift=function(){return this.pop.apply(this,arguments)},Ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xe()},Ve.prototype.slice=function(t,e){if(d(t,e,this.size))return this;var r=m(t,this.size),n=g(e,this.size);if(n!==this.size)return rt.prototype.slice.call(this,t,e);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Qe(i,o)},Ve.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Qe(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ve.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&t(n.value,r++,this)!==!1;)n=n.next;return r},Ve.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new S(function(){if(n){var e=n.value;return n=n.next,z(t,r++,e)}return I()})},Ve.isStack=Ye;var nn="@@__IMMUTABLE_STACK__@@",on=Ve.prototype;on[nn]=!0,on.withMutations=Cr.withMutations,on.asMutable=Cr.asMutable,on.asImmutable=Cr.asImmutable,on.wasAltered=Cr.wasAltered;var un;e.Iterator=S,Fe(e,{toArray:function(){ft(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new ne(this,!0)},toMap:function(){return ct(this.toKeyedSeq())},toObject:function(){ft(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return Zt(this.toKeyedSeq())},toOrderedSet:function(){return Je(u(this)?this.valueSeq():this)},toSet:function(){return Le(u(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this);
-},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ve(u(this)?this.valueSeq():this)},toList:function(){return Bt(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=sr.call(arguments,0);return be(this,ye(this,t))},includes:function(t){return this.some(function(e){return X(e,t)})},entries:function(){return this.__iterator(Sr)},every:function(t,e){ft(this.size);var r=!0;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?void 0:(r=!1,!1)}),r},filter:function(t,e){return be(this,fe(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return ft(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ft(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?""+n:""}),e},keys:function(){return this.__iterator(gr)},map:function(t,e){return be(this,ae(this,t,e))},reduce:function(t,e,r){ft(this.size);var n,i;return arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return be(this,he(this,!0))},slice:function(t,e){return be(this,pe(this,t,e,!0))},some:function(t,e){return!this.every($e(t),e)},sort:function(t){return be(this,we(this,t))},values:function(){return this.__iterator(wr)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return v(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return ce(this,t,e)},equals:function(t){return F(this,t)},entrySeq:function(){var t=this;if(t._cache)return new j(t._cache);var e=t.toSeq().map(Ze).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){
-return this.filter($e(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){return t.call(e,r,i,o)?(n=[i,r],!1):void 0}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(y)},flatMap:function(t,e){return be(this,me(this,t,e))},flatten:function(t){return be(this,de(this,t,!0))},fromEntrySeq:function(){return new ue(this)},get:function(t,e){return this.find(function(e,r){return X(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=ke(t);!(r=i.next()).done;){var o=r.value;if(n=n&&n.get?n.get(o,yr):yr,n===yr)return e}return n},groupBy:function(t,e){return _e(this,t,e)},has:function(t){return this.get(t,yr)!==yr},hasIn:function(t){return this.getIn(t,yr)!==yr},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return X(e,t)})},keySeq:function(){return this.toSeq().map(Ge).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Se(this,t)},maxBy:function(t,e){return Se(this,e,t)},min:function(t){return Se(this,t?tr(t):nr)},minBy:function(t,e){return Se(this,e?tr(e):nr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return be(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return be(this,le(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile($e(t),e)},sortBy:function(t,e){return be(this,we(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return be(this,this.toSeq().reverse().take(t).reverse());
-},takeWhile:function(t,e){return be(this,ve(this,t,e))},takeUntil:function(t,e){return this.takeWhile($e(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ir(this))}});var sn=e.prototype;sn[ar]=!0,sn[br]=sn.values,sn.__toJS=sn.toArray,sn.__toStringMapper=er,sn.inspect=sn.toSource=function(){return""+this},sn.chain=sn.flatMap,sn.contains=sn.includes,Fe(r,{flip:function(){return be(this,se(this))},mapEntries:function(t,e){var r=this,n=0;return be(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return be(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var an=r.prototype;an[hr]=!0,an[br]=sn.entries,an.__toJS=sn.toObject,an.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+er(t)},Fe(n,{toKeyedSeq:function(){return new ne(this,!1)},filter:function(t,e){return be(this,fe(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return be(this,he(this,!1))},slice:function(t,e){return be(this,pe(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=m(t,0>t?this.count():this.size);var n=this.slice(0,t);return be(this,1===r?n:n.concat(p(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return be(this,de(this,t,!1))},get:function(t,e){return t=l(this,t),0>t||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return t=l(this,t),t>=0&&(void 0!==this.size?this.size===1/0||this.size>t:-1!==this.indexOf(t))},interpose:function(t){return be(this,ge(this,t))},interleave:function(){var t=[this].concat(p(arguments)),e=Ie(this.toSeq(),k.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),
-be(this,r)},keySeq:function(){return $(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return be(this,le(this,t,e,!1))},zip:function(){var t=[this].concat(p(arguments));return be(this,Ie(this,rr,t))},zipWith:function(t){var e=p(arguments);return e[0]=this,be(this,Ie(this,t,e))}}),n.prototype[fr]=!0,n.prototype[cr]=!0,Fe(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=sn.includes,i.prototype.contains=i.prototype.includes,Fe(x,r.prototype),Fe(k,n.prototype),Fe(A,i.prototype),Fe(et,r.prototype),Fe(rt,n.prototype),Fe(nt,i.prototype);var hn={Iterable:e,Seq:O,Collection:tt,Map:ct,OrderedMap:Zt,List:Bt,Stack:Ve,Set:Le,OrderedSet:Je,Record:Ae,Range:$,Repeat:G,is:X,fromJS:H};return hn});
\ No newline at end of file
diff --git a/backend/staticfiles/drf-yasg/immutable.min.d985bc61d85c.js.gz b/backend/staticfiles/drf-yasg/immutable.min.d985bc61d85c.js.gz
deleted file mode 100644
index 17d0042b9..000000000
Binary files a/backend/staticfiles/drf-yasg/immutable.min.d985bc61d85c.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/immutable.min.js b/backend/staticfiles/drf-yasg/immutable.min.js
deleted file mode 100644
index 5ea82ee16..000000000
--- a/backend/staticfiles/drf-yasg/immutable.min.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Copyright (c) 2014-present, Facebook, Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Immutable=e()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:O(t)}function r(t){return u(t)?t:x(t)}function n(t){return s(t)?t:k(t)}function i(t){return o(t)&&!a(t)?t:A(t)}function o(t){return!(!t||!t[ar])}function u(t){return!(!t||!t[hr])}function s(t){return!(!t||!t[fr])}function a(t){return u(t)||s(t)}function h(t){return!(!t||!t[cr])}function f(t){return t.value=!1,t}function c(t){t&&(t.value=!0)}function _(){}function p(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;r>i;i++)n[i]=t[i+e];return n}function v(t){return void 0===t.size&&(t.size=t.__iterate(y)),t.size}function l(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return 0>e?v(t)+e:e}function y(){return!0}function d(t,e,r){return(0===t||void 0!==r&&-r>=t)&&(void 0===e||void 0!==r&&e>=r)}function m(t,e){return w(t,e,0)}function g(t,e){return w(t,e,e)}function w(t,e,r){return void 0===t?r:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function S(t){this.next=t}function z(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function I(){return{value:void 0,done:!0}}function b(t){return!!M(t)}function q(t){return t&&"function"==typeof t.next}function D(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(zr&&t[zr]||t[Ir]);return"function"==typeof e?e:void 0}function E(t){return t&&"number"==typeof t.length}function O(t){return null===t||void 0===t?T():o(t)?t.toSeq():C(t)}function x(t){return null===t||void 0===t?T().toKeyedSeq():o(t)?u(t)?t.toSeq():t.fromEntrySeq():B(t)}function k(t){return null===t||void 0===t?T():o(t)?u(t)?t.entrySeq():t.toIndexedSeq():W(t)}function A(t){return(null===t||void 0===t?T():o(t)?u(t)?t.entrySeq():t:W(t)).toSetSeq()}function j(t){this._array=t,this.size=t.length}function R(t){var e=Object.keys(t);this._object=t,this._keys=e,
-this.size=e.length}function U(t){this._iterable=t,this.size=t.length||t.size}function K(t){this._iterator=t,this._iteratorCache=[]}function L(t){return!(!t||!t[qr])}function T(){return Dr||(Dr=new j([]))}function B(t){var e=Array.isArray(t)?new j(t).fromEntrySeq():q(t)?new K(t).fromEntrySeq():b(t)?new U(t).fromEntrySeq():"object"==typeof t?new R(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function W(t){var e=J(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function C(t){var e=J(t)||"object"==typeof t&&new R(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function J(t){return E(t)?new j(t):q(t)?new K(t):b(t)?new U(t):void 0}function N(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;o>=u;u++){var s=i[r?o-u:u];if(e(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(e,r)}function P(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new S(function(){var t=i[r?o-u:u];return u++>o?I():z(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function H(t,e){return e?V(e,t,"",{"":t}):Y(t)}function V(t,e,r,n){return Array.isArray(e)?t.call(n,r,k(e).map(function(r,n){return V(t,r,n,e)})):Q(e)?t.call(n,r,x(e).map(function(r,n){return V(t,r,n,e)})):e}function Y(t){return Array.isArray(t)?k(t).map(Y).toList():Q(t)?x(t).map(Y).toMap():t}function Q(t){return t&&(t.constructor===Object||void 0===t.constructor)}function X(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return"function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e)?!0:!1}function F(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||u(t)!==u(e)||s(t)!==s(e)||h(t)!==h(e))return!1;if(0===t.size&&0===e.size)return!0;
-var r=!a(t);if(h(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&X(i[1],t)&&(r||X(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var f=t;t=e,e=f}var c=!0,_=e.__iterate(function(e,n){return(r?t.has(e):i?X(e,t.get(n,yr)):X(t.get(n,yr),e))?void 0:(c=!1,!1)});return c&&t.size===_}function G(t,e){if(!(this instanceof G))return new G(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Mr)return Mr;Mr=this}}function Z(t,e){if(!t)throw Error(e)}function $(t,e,r){if(!(this instanceof $))return new $(t,e,r);if(Z(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Er)return Er;Er=this}}function tt(){throw TypeError("Abstract")}function et(){}function rt(){}function nt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return it(r)}if("string"===e)return t.length>Kr?ut(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return at(t);if("function"==typeof t.toString)return st(""+t);throw Error("Value type "+e+" cannot be hashed.")}function ut(t){var e=Br[t];return void 0===e&&(e=st(t),Tr===Lr&&(Tr=0,Br={}),Tr++,Br[t]=e),e}function st(t){for(var e=0,r=0;t.length>r;r++)e=31*e+t.charCodeAt(r)|0;return it(e)}function at(t){var e;if(jr&&(e=Or.get(t),void 0!==e))return e;if(e=t[Ur],void 0!==e)return e;if(!Ar){if(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ur],void 0!==e)return e;if(e=ht(t),void 0!==e)return e}if(e=++Rr,1073741824&Rr&&(Rr=0),jr)Or.set(t,e);else{if(void 0!==kr&&kr(t)===!1)throw Error("Non-extensible objects are not allowed as keys.");
-if(Ar)Object.defineProperty(t,Ur,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ur]=e;else{if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[Ur]=e}}return e}function ht(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ft(t){Z(t!==1/0,"Cannot perform this action with an infinite size.")}function ct(t){return null===t||void 0===t?zt():_t(t)&&!h(t)?t:zt().withMutations(function(e){var n=r(t);ft(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function _t(t){return!(!t||!t[Wr])}function pt(t,e){this.ownerID=t,this.entries=e}function vt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function lt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function yt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function dt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function mt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}function gt(t,e){return z(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function St(t,e,r,n){var i=Object.create(Cr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function zt(){return Jr||(Jr=St(0))}function It(t,e,r){var n,i;if(t._root){var o=f(dr),u=f(mr);if(n=bt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===yr?-1:1:0)}else{if(r===yr)return t;i=1,n=new pt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?St(i,n):zt()}function bt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===yr?t:(c(s),c(u),new dt(e,n,[i,o]))}function qt(t){return t.constructor===dt||t.constructor===yt}function Dt(t,e,r,n,i){if(t.keyHash===n)return new yt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&lr,s=(0===r?n:n>>>r)&lr,a=u===s?[Dt(t,e,r+pr,n,i)]:(o=new dt(e,n,i),
-s>u?[t,o]:[o,t]);return new vt(e,1<o;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}function Et(t,e,r,n){for(var i=0,o=0,u=Array(r),s=0,a=1,h=e.length;h>s;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new vt(t,i,u)}function Ot(t,e,r,n,i){for(var o=0,u=Array(vr),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new lt(t,o+1,u)}function xt(t,e,n){for(var i=[],u=0;n.length>u;u++){var s=n[u],a=r(s);o(s)||(a=a.map(function(t){return H(t)})),i.push(a)}return jt(t,e,i)}function kt(t,e,r){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):X(t,e)?t:e}function At(t){return function(e,r,n){if(e&&e.mergeDeepWith&&o(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return X(e,i)?e:i}}function jt(t,e,r){return r=r.filter(function(t){return 0!==t.size}),0===r.length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,yr,function(t){return t===yr?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;r.length>i;i++)r[i].forEach(n)}):t.constructor(r[0])}function Rt(t,e,r,n){var i=t===yr,o=e.next();if(o.done){var u=i?r:t,s=n(u);return s===u?t:s}Z(i||t&&t.set,"invalid keyPath");var a=o.value,h=i?yr:t.get(a,yr),f=Rt(h,e,r,n);return f===h?t:f===yr?t.remove(a):(i?zt():t).set(a,f)}function Ut(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Kt(t,e,r,n){var i=n?t:p(t);return i[e]=r,i}function Lt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,s=0;i>s;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Tt(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;n>u;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Bt(t){var e=Pt();if(null===t||void 0===t)return e;if(Wt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ft(i),i>0&&vr>i?Nt(0,i,pr,null,new Ct(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Wt(t){
-return!(!t||!t[Vr])}function Ct(t,e){this.array=t,this.ownerID=e}function Jt(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,h=u-r;return h>vr&&(h=vr),function(){if(i===h)return Xr;var t=e?--h:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,h=i>o?0:o-i>>n,f=(u-i>>n)+1;return f>vr&&(f=vr),function(){for(;;){if(s){var t=s();if(t!==Xr)return t;s=null}if(h===f)return Xr;var o=e?--f:h++;s=r(a&&a[o],n-pr,i+(o<=t.size||0>e)return t.withMutations(function(t){0>e?Xt(t,e).set(0,r):Xt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=f(mr);return e>=Gt(t._capacity)?n=Vt(n,t.__ownerID,0,e,r,o):i=Vt(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Nt(t._origin,t._capacity,t._level,i,n):t}function Vt(t,e,r,n,i,o){var u=n>>>r&lr,s=t&&t.array.length>u;if(!s&&void 0===i)return t;var a;if(r>0){var h=t&&t.array[u],f=Vt(h,e,r-pr,n,i,o);return f===h?t:(a=Yt(t,e),a.array[u]=f,a)}return s&&t.array[u]===i?t:(c(o),a=Yt(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Yt(t,e){return e&&t&&e===t.ownerID?t:new Ct(t?t.array.slice():[],e)}function Qt(t,e){if(e>=Gt(t._capacity))return t._tail;if(1<e){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&lr],n-=pr;return r}}function Xt(t,e,r){void 0!==e&&(e=0|e),void 0!==r&&(r=0|r);var n=t.__ownerID||new _,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:0>r?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,h=t._root,f=0;0>u+f;)h=new Ct(h&&h.array.length?[void 0,h]:[],n),a+=pr,f+=1<=1< p?Qt(t,s-1):p>c?new Ct([],n):v;if(v&&p>c&&o>u&&v.array.length){h=Yt(h,n);for(var y=h,d=a;d>pr;d-=pr){var m=c>>>d&lr;y=y.array[m]=Yt(y.array[m],n)}y.array[c>>>pr&lr]=v}if(o>s&&(l=l&&l.removeAfter(n,0,s)),u>=p)u-=p,s-=p,a=pr,h=null,l=l&&l.removeBefore(n,0,u);else if(u>i||c>p){for(f=0;h;){var g=u>>>a&lr;if(g!==p>>>a&lr)break;g&&(f+=(1< i&&(h=h.removeBefore(n,a,u-f)),h&&c>p&&(h=h.removeAfter(n,a,p-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=h,t._tail=l,t.__hash=void 0,t.__altered=!0,t):Nt(u,s,a,h,l)}function Ft(t,e,r){for(var i=[],u=0,s=0;r.length>s;s++){var a=r[s],h=n(a);h.size>u&&(u=h.size),o(a)||(h=h.map(function(t){return H(t)})),i.push(h)}return u>t.size&&(t=t.setSize(u)),jt(t,e,i)}function Gt(t){return vr>t?0:t-1>>>pr<=vr&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):te(n,i)}function ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){var e=Ee(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);
-return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Oe,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===Sr){var n=t.__iterator(e,r);return new S(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wr?gr:wr,r)},e}function ae(t,e,r){var n=Ee(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,yr);return o===yr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(Sr,i);return new S(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return z(n,s,e.call(r,u[1],s,t),i)})},n}function he(t,e){var r=Ee(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=Oe,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function fe(t,e,r,n){var i=Ee(t);return n&&(i.has=function(n){var i=t.get(n,yr);return i!==yr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,yr);return o!==yr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){return e.call(r,t,o,a)?(s++,i(t,n?o:s-1,u)):void 0},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(Sr,o),s=0;return new S(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,h=a[0],f=a[1];if(e.call(r,f,h,t))return z(i,n?h:s++,f,o)}})},i}function ce(t,e,r){var n=ct().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){
-return t+1})}),n.asImmutable()}function _e(t,e,r){var n=u(t),i=(h(t)?Zt():ct()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=Me(t);return i.map(function(e){return be(t,o(e))})}function pe(t,e,r,n){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==r&&(r=r===1/0?i:0|r),d(e,r,i))return t;var o=m(e,i),u=g(r,i);if(o!==o||u!==u)return pe(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=0>a?0:a);var h=Ee(t);return h.size=0===s?s:t.size&&s||void 0,!n&&L(t)&&s>=0&&(h.get=function(e,r){return e=l(this,e),e>=0&&s>e?t.get(e+o,r):r}),h.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,h=0;return t.__iterate(function(t,r){return a&&(a=u++s)return I();var t=i.next();return n||e===wr?t:e===gr?z(e,a-1,void 0,t):z(e,a-1,t.value[1],t)})},h}function ve(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(Sr,i),s=!0;return new S(function(){if(!s)return I();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],h=i[1];return e.call(r,h,a,o)?n===Sr?t:z(n,a,h,t):(s=!1,I())})},n}function le(t,e,r,n){var i=Ee(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,h){return s&&(s=e.call(r,t,o,h))?void 0:(a++,i(t,n?o:a-1,u))}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(Sr,o),a=!0,h=0;return new S(function(){var t,o,f;do{if(t=s.next(),t.done)return n||i===wr?t:i===gr?z(i,h++,void 0,t):z(i,h++,t.value[1],t);
-var c=t.value;o=c[0],f=c[1],a&&(a=e.call(r,f,o,u))}while(a);return i===Sr?t:z(i,o,f,t)})},i}function ye(t,e){var n=u(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?B(t):W(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var a=i[0];if(a===t||n&&u(a)||s(t)&&s(a))return a}var h=new j(i);return n?h=h.toKeyedSeq():s(t)||(h=h.toSetSeq()),h=h.flatten(!0),h.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),h}function de(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){function u(t,h){var f=this;t.__iterate(function(t,i){return(!e||e>h)&&o(t)?u(t,h+1):n(t,r?i:s++,f)===!1&&(a=!0),!a},i)}var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),s=[],a=0;return new S(function(){for(;u;){var t=u.next();if(t.done===!1){var h=t.value;if(n===Sr&&(h=h[1]),e&&!(e>s.length)||!o(h))return r?t:z(n,a++,h,t);s.push(u),u=h.__iterator(n,i)}else u=s.pop()}return I()})},n}function me(t,e,r){var n=Me(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function ge(t,e){var r=Ee(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||r(e,o++,i)!==!1)&&r(t,o++,i)!==!1},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(wr,n),u=0;return new S(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?z(r,u++,e):z(r,u++,i.value,i)})},r}function we(t,e,r){e||(e=xe);var n=u(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?x(o):s(t)?k(o):A(o)}function Se(t,e,r){if(e||(e=xe),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return ze(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return ze(e,t,r)?r:t})}function ze(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function Ie(t,r,n){
-var i=Ee(t);return i.size=new j(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(wr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),D(i?t.reverse():t)}),u=0,s=!1;return new S(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?I():z(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function be(t,e){return L(t)?e:t.constructor(e)}function qe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function De(t){return ft(t.size),v(t)}function Me(t){return u(t)?r:s(t)?n:i}function Ee(t){return Object.create((u(t)?x:s(t)?k:A).prototype)}function Oe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):O.prototype.cacheResult.call(this)}function xe(t,e){return t>e?1:e>t?-1:0}function ke(t){var r=D(t);if(!r){if(!E(t))throw new TypeError("Expected iterable or array-like: "+t);r=D(e(t))}return r}function Ae(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Ue(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=ct(o)},i=n.prototype=Object.create(Gr);return i.constructor=n,n}function je(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Re(t){return t._name||t.constructor.name||"Record"}function Ue(t,e){try{e.forEach(Ke.bind(void 0,t))}catch(r){}}function Ke(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Z(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Le(t){return null===t||void 0===t?Ce():Te(t)&&!h(t)?t:Ce().withMutations(function(e){var r=i(t);ft(r.size),r.forEach(function(t){return e.add(t)})})}function Te(t){return!(!t||!t[Zr])}function Be(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function We(t,e){var r=Object.create($r);
-return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ce(){return tn||(tn=We(zt()))}function Je(t){return null===t||void 0===t?He():Ne(t)?t:He().withMutations(function(e){var r=i(t);ft(r.size),r.forEach(function(t){return e.add(t)})})}function Ne(t){return Te(t)&&h(t)}function Pe(t,e){var r=Object.create(en);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function He(){return rn||(rn=Pe(ee()))}function Ve(t){return null===t||void 0===t?Xe():Ye(t)?t:Xe().unshiftAll(t)}function Ye(t){return!(!t||!t[nn])}function Qe(t,e,r,n){var i=Object.create(on);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Xe(){return un||(un=Qe(0))}function Fe(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Ge(t,e){return e}function Ze(t,e){return[e,t]}function $e(t){return function(){return!t.apply(this,arguments)}}function tr(t){return function(){return-t.apply(this,arguments)}}function er(t){return"string"==typeof t?JSON.stringify(t):t+""}function rr(){return p(arguments)}function nr(t,e){return e>t?1:t>e?-1:0}function ir(t){if(t.size===1/0)return 0;var e=h(t),r=u(t),n=e?1:0,i=t.__iterate(r?e?function(t,e){n=31*n+ur(ot(t),ot(e))|0}:function(t,e){n=n+ur(ot(t),ot(e))|0}:e?function(t){n=31*n+ot(t)|0}:function(t){n=n+ot(t)|0});return or(i,n)}function or(t,e){return e=xr(e,3432918353),e=xr(e<<15|e>>>-15,461845907),e=xr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=xr(e^e>>>16,2246822507),e=xr(e^e>>>13,3266489909),e=it(e^e>>>16)}function ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sr=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=o,e.isKeyed=u,e.isIndexed=s,e.isAssociative=a,e.isOrdered=h,e.Keyed=r,e.Indexed=n,e.Set=i;var ar="@@__IMMUTABLE_ITERABLE__@@",hr="@@__IMMUTABLE_KEYED__@@",fr="@@__IMMUTABLE_INDEXED__@@",cr="@@__IMMUTABLE_ORDERED__@@",_r="delete",pr=5,vr=1<=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},j.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new S(function(){return i>n?I():z(t,i,r[e?n-i++:i++])})},t(R,x),R.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},R.prototype.has=function(t){return this._object.hasOwnProperty(t)},R.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;i>=o;o++){var u=n[e?i-o:o];if(t(r[u],u,this)===!1)return o+1}return o},R.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new S(function(){var u=n[e?i-o:o];return o++>i?I():z(t,u,r[u])})},R.prototype[cr]=!0,t(U,k),U.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);
-var r=this._iterable,n=D(r),i=0;if(q(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},U.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=D(r);if(!q(n))return new S(I);var i=0;return new S(function(){var e=n.next();return e.done?e:z(t,i++,e.value)})},t(K,k),K.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=this._iterator,n=this._iteratorCache,i=0;n.length>i;)if(t(n[i],i++,this)===!1)return i;for(var o;!(o=r.next()).done;){var u=o.value;if(n[i]=u,t(u,i++,this)===!1)break}return i},K.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new S(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return z(t,i,n[i++])})};var Dr;t(G,k),G.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},G.prototype.get=function(t,e){return this.has(t)?this._value:e},G.prototype.includes=function(t){return X(this._value,t)},G.prototype.slice=function(t,e){var r=this.size;return d(t,e,r)?this:new G(this._value,g(e,r)-m(t,r))},G.prototype.reverse=function(){return this},G.prototype.indexOf=function(t){return X(this._value,t)?0:-1},G.prototype.lastIndexOf=function(t){return X(this._value,t)?this.size:-1},G.prototype.__iterate=function(t,e){for(var r=0;this.size>r;r++)if(t(this._value,r,this)===!1)return r+1;return r},G.prototype.__iterator=function(t,e){var r=this,n=0;return new S(function(){return r.size>n?z(t,n++,r._value):I()})},G.prototype.equals=function(t){return t instanceof G?X(this._value,t._value):F(t)};var Mr;t($,k),$.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},$.prototype.get=function(t,e){return this.has(t)?this._start+l(this,t)*this._step:e},$.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&this.size>e&&e===Math.floor(e);
-},$.prototype.slice=function(t,e){return d(t,e,this.size)?this:(t=m(t,this.size),e=g(e,this.size),t>=e?new $(0,0):new $(this.get(t,this._end),this.get(e,this._end),this._step))},$.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&this.size>r)return r}return-1},$.prototype.lastIndexOf=function(t){return this.indexOf(t)},$.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;r>=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-n:n}return o},$.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new S(function(){var u=i;return i+=e?-n:n,o>r?I():z(t,o++,u)})},$.prototype.equals=function(t){return t instanceof $?this._start===t._start&&this._end===t._end&&this._step===t._step:F(this,t)};var Er;t(tt,e),t(et,tt),t(rt,tt),t(nt,tt),tt.Keyed=et,tt.Indexed=rt,tt.Set=nt;var Or,xr="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},kr=Object.isExtensible,Ar=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),jr="function"==typeof WeakMap;jr&&(Or=new WeakMap);var Rr=0,Ur="__immutablehash__";"function"==typeof Symbol&&(Ur=Symbol(Ur));var Kr=16,Lr=255,Tr=0,Br={};t(ct,et),ct.of=function(){var t=sr.call(arguments,0);return zt().withMutations(function(e){for(var r=0;t.length>r;r+=2){if(r+1>=t.length)throw Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},ct.prototype.toString=function(){return this.__toString("Map {","}")},ct.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ct.prototype.set=function(t,e){return It(this,t,e)},ct.prototype.setIn=function(t,e){return this.updateIn(t,yr,function(){return e})},ct.prototype.remove=function(t){return It(this,t,yr)},ct.prototype.deleteIn=function(t){return this.updateIn(t,function(){return yr})},ct.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r);
-},ct.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Rt(this,ke(t),e,r);return n===yr?void 0:n},ct.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):zt()},ct.prototype.merge=function(){return xt(this,void 0,arguments)},ct.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return xt(this,t,e)},ct.prototype.mergeIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,zt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ct.prototype.mergeDeep=function(){return xt(this,kt,arguments)},ct.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return xt(this,At(t),e)},ct.prototype.mergeDeepIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,zt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ct.prototype.sort=function(t){return Zt(we(this,t))},ct.prototype.sortBy=function(t,e){return Zt(we(this,e,t))},ct.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ct.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},ct.prototype.asImmutable=function(){return this.__ensureOwner()},ct.prototype.wasAltered=function(){return this.__altered},ct.prototype.__iterator=function(t,e){return new mt(this,t,e)},ct.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},ct.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?St(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ct.isMap=_t;var Wr="@@__IMMUTABLE_MAP__@@",Cr=ct.prototype;Cr[Wr]=!0,Cr[_r]=Cr.remove,Cr.removeIn=Cr.deleteIn,pt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(X(r,i[o][0]))return i[o][1];return n},pt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===yr,a=this.entries,h=0,f=a.length;f>h&&!X(n,a[h][0]);h++);
-var _=f>h;if(_?a[h][1]===i:s)return this;if(c(u),(s||!_)&&c(o),!s||1!==a.length){if(!_&&!s&&a.length>=Nr)return Mt(t,a,n,i);var v=t&&t===this.ownerID,l=v?a:p(a);return _?s?h===f-1?l.pop():l[h]=l.pop():l[h]=[n,i]:l.push([n,i]),v?(this.entries=l,this):new pt(t,l)}},vt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=1<<((0===t?e:e>>>t)&lr),o=this.bitmap;return 0===(o&i)?n:this.nodes[Ut(o&i-1)].get(t+pr,e,r,n)},vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&lr,a=1<=Pr)return Ot(t,_,h,s,v);if(f&&!v&&2===_.length&&qt(_[1^c]))return _[1^c];if(f&&v&&1===_.length&&qt(v))return v;var l=t&&t===this.ownerID,y=f?v?h:h^a:h|a,d=f?v?Kt(_,c,v,l):Tt(_,c,l):Lt(_,c,v,l);return l?(this.bitmap=y,this.nodes=d,this):new vt(t,y,d)},lt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=(0===t?e:e>>>t)&lr,o=this.nodes[i];return o?o.get(t+pr,e,r,n):n},lt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&lr,a=i===yr,h=this.nodes,f=h[s];if(a&&!f)return this;var c=bt(f,t,e+pr,r,n,i,o,u);if(c===f)return this;var _=this.count;if(f){if(!c&&(_--,Hr>_))return Et(t,h,_,s)}else _++;var p=t&&t===this.ownerID,v=Kt(h,s,c,p);return p?(this.count=_,this.nodes=v,this):new lt(t,_,v)},yt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(X(r,i[o][0]))return i[o][1];return n},yt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=i===yr;if(r!==this.keyHash)return s?this:(c(u),c(o),Dt(this,t,e,r,[n,i]));for(var a=this.entries,h=0,f=a.length;f>h&&!X(n,a[h][0]);h++);var _=f>h;if(_?a[h][1]===i:s)return this;if(c(u),(s||!_)&&c(o),s&&2===f)return new dt(t,this.keyHash,a[1^h]);var v=t&&t===this.ownerID,l=v?a:p(a);return _?s?h===f-1?l.pop():l[h]=l.pop():l[h]=[n,i]:l.push([n,i]),v?(this.entries=l,this):new yt(t,this.keyHash,l)},dt.prototype.get=function(t,e,r,n){return X(r,this.entry[0])?this.entry[1]:n;
-},dt.prototype.update=function(t,e,r,n,i,o,u){var s=i===yr,a=X(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(c(u),s?void c(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new dt(t,this.keyHash,[n,i]):(c(o),Dt(this,t,e,ot(n),[n,i])))},pt.prototype.iterate=yt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;i>=n;n++)if(t(r[e?i-n:n])===!1)return!1},vt.prototype.iterate=lt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},dt.prototype.iterate=function(t,e){return t(this.entry)},t(mt,S),mt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return gt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,r>=i)return gt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,r>=i){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return gt(t,o.entry);e=this._stack=wt(o,e)}continue}e=this._stack=this._stack.__prev}return I()};var Jr,Nr=vr/4,Pr=vr/2,Hr=vr/4;t(Bt,rt),Bt.of=function(){return this(arguments)},Bt.prototype.toString=function(){return this.__toString("List [","]")},Bt.prototype.get=function(t,e){if(t=l(this,t),t>=0&&this.size>t){t+=this._origin;var r=Qt(this,t);return r&&r.array[t&lr]}return e},Bt.prototype.set=function(t,e){return Ht(this,t,e)},Bt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Bt.prototype.insert=function(t,e){return this.splice(t,0,e)},Bt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=pr,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Pt()},Bt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){Xt(r,0,e+t.length);for(var n=0;t.length>n;n++)r.set(e+n,t[n])})},Bt.prototype.pop=function(){return Xt(this,0,-1)},Bt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Xt(e,-t.length);for(var r=0;t.length>r;r++)e.set(r,t[r]);
-})},Bt.prototype.shift=function(){return Xt(this,1)},Bt.prototype.merge=function(){return Ft(this,void 0,arguments)},Bt.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return Ft(this,t,e)},Bt.prototype.mergeDeep=function(){return Ft(this,kt,arguments)},Bt.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return Ft(this,At(t),e)},Bt.prototype.setSize=function(t){return Xt(this,0,t)},Bt.prototype.slice=function(t,e){var r=this.size;return d(t,e,r)?this:Xt(this,m(t,r),g(e,r))},Bt.prototype.__iterator=function(t,e){var r=0,n=Jt(this,e);return new S(function(){var e=n();return e===Xr?I():z(t,r++,e)})},Bt.prototype.__iterate=function(t,e){for(var r,n=0,i=Jt(this,e);(r=i())!==Xr&&t(r,n++,this)!==!1;);return n},Bt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Nt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Bt.isList=Wt;var Vr="@@__IMMUTABLE_LIST__@@",Yr=Bt.prototype;Yr[Vr]=!0,Yr[_r]=Yr.remove,Yr.setIn=Cr.setIn,Yr.deleteIn=Yr.removeIn=Cr.removeIn,Yr.update=Cr.update,Yr.updateIn=Cr.updateIn,Yr.mergeIn=Cr.mergeIn,Yr.mergeDeepIn=Cr.mergeDeepIn,Yr.withMutations=Cr.withMutations,Yr.asMutable=Cr.asMutable,Yr.asImmutable=Cr.asImmutable,Yr.wasAltered=Cr.wasAltered,Ct.prototype.removeBefore=function(t,e,r){if(r===e?1<>>e&lr;if(n>=this.array.length)return new Ct([],t);var i,o=0===n;if(e>0){var u=this.array[n];if(i=u&&u.removeBefore(t,e-pr,r),i===u&&o)return this}if(o&&!i)return this;var s=Yt(this,t);if(!o)for(var a=0;n>a;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Ct.prototype.removeAfter=function(t,e,r){if(r===(e?1<>>e&lr;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if(i=o&&o.removeAfter(t,e-pr,r),i===o&&n===this.array.length-1)return this}var u=Yt(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Qr,Xr={};t(Zt,ct),Zt.of=function(){return this(arguments)},Zt.prototype.toString=function(){return this.__toString("OrderedMap {","}");
-},Zt.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Zt.prototype.set=function(t,e){return re(this,t,e)},Zt.prototype.remove=function(t){return re(this,t,yr)},Zt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Zt.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},Zt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Zt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?te(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Zt.isOrderedMap=$t,Zt.prototype[cr]=!0,Zt.prototype[_r]=Zt.prototype.remove;var Fr;t(ne,x),ne.prototype.get=function(t,e){return this._iter.get(t,e)},ne.prototype.has=function(t){return this._iter.has(t)},ne.prototype.valueSeq=function(){return this._iter.valueSeq()},ne.prototype.reverse=function(){var t=this,e=he(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ne.prototype.map=function(t,e){var r=this,n=ae(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ne.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?De(this):0,function(i){return t(i,e?--r:r++,n)}),e)},ne.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(wr,e),n=e?De(this):0;return new S(function(){var i=r.next();return i.done?i:z(t,e?--n:n++,i.value,i)})},ne.prototype[cr]=!0,t(ie,k),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},ie.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e),n=0;
-return new S(function(){var e=r.next();return e.done?e:z(t,n++,e.value,e)})},t(oe,A),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},oe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new S(function(){var e=r.next();return e.done?e:z(t,e.value,e.value,e)})},t(ue,x),ue.prototype.entrySeq=function(){return this._iter.toSeq()},ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){qe(e);var n=o(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new S(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){qe(n);var i=o(n);return z(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},ie.prototype.cacheResult=ne.prototype.cacheResult=oe.prototype.cacheResult=ue.prototype.cacheResult=Oe,t(Ae,et),Ae.prototype.toString=function(){return this.__toString(Re(this)+" {","}")},Ae.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ae.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Ae.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=je(this,zt()))},Ae.prototype.set=function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+Re(this));if(this._map&&!this._map.has(t)){var r=this._defaultValues[t];if(e===r)return this}var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:je(this,n)},Ae.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:je(this,e)},Ae.prototype.wasAltered=function(){return this._map.wasAltered()},Ae.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},Ae.prototype.__iterate=function(t,e){
-var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},Ae.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?je(this,e,t):(this.__ownerID=t,this._map=e,this)};var Gr=Ae.prototype;Gr[_r]=Gr.remove,Gr.deleteIn=Gr.removeIn=Cr.removeIn,Gr.merge=Cr.merge,Gr.mergeWith=Cr.mergeWith,Gr.mergeIn=Cr.mergeIn,Gr.mergeDeep=Cr.mergeDeep,Gr.mergeDeepWith=Cr.mergeDeepWith,Gr.mergeDeepIn=Cr.mergeDeepIn,Gr.setIn=Cr.setIn,Gr.update=Cr.update,Gr.updateIn=Cr.updateIn,Gr.withMutations=Cr.withMutations,Gr.asMutable=Cr.asMutable,Gr.asImmutable=Cr.asImmutable,t(Le,nt),Le.of=function(){return this(arguments)},Le.fromKeys=function(t){return this(r(t).keySeq())},Le.prototype.toString=function(){return this.__toString("Set {","}")},Le.prototype.has=function(t){return this._map.has(t)},Le.prototype.add=function(t){return Be(this,this._map.set(t,!0))},Le.prototype.remove=function(t){return Be(this,this._map.remove(t))},Le.prototype.clear=function(){return Be(this,this._map.clear())},Le.prototype.union=function(){var t=sr.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;t.length>r;r++)i(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Le.prototype.intersect=function(){var t=sr.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},Le.prototype.subtract=function(){var t=sr.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},Le.prototype.merge=function(){return this.union.apply(this,arguments)},Le.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return this.union.apply(this,e)},
-Le.prototype.sort=function(t){return Je(we(this,t))},Le.prototype.sortBy=function(t,e){return Je(we(this,e,t))},Le.prototype.wasAltered=function(){return this._map.wasAltered()},Le.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},Le.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Le.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Le.isSet=Te;var Zr="@@__IMMUTABLE_SET__@@",$r=Le.prototype;$r[Zr]=!0,$r[_r]=$r.remove,$r.mergeDeep=$r.merge,$r.mergeDeepWith=$r.mergeWith,$r.withMutations=Cr.withMutations,$r.asMutable=Cr.asMutable,$r.asImmutable=Cr.asImmutable,$r.__empty=Ce,$r.__make=We;var tn;t(Je,Le),Je.of=function(){return this(arguments)},Je.fromKeys=function(t){return this(r(t).keySeq())},Je.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Je.isOrderedSet=Ne;var en=Je.prototype;en[cr]=!0,en.__empty=He,en.__make=Pe;var rn;t(Ve,rt),Ve.of=function(){return this(arguments)},Ve.prototype.toString=function(){return this.__toString("Stack [","]")},Ve.prototype.get=function(t,e){var r=this._head;for(t=l(this,t);r&&t--;)r=r.next;return r?r.value:e},Ve.prototype.peek=function(){return this._head&&this._head.value},Ve.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Qe(t,e)},Ve.prototype.pushAll=function(t){if(t=n(t),0===t.size)return this;ft(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Qe(e,r)},Ve.prototype.pop=function(){return this.slice(1)},Ve.prototype.unshift=function(){return this.push.apply(this,arguments)},Ve.prototype.unshiftAll=function(t){
-return this.pushAll(t)},Ve.prototype.shift=function(){return this.pop.apply(this,arguments)},Ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xe()},Ve.prototype.slice=function(t,e){if(d(t,e,this.size))return this;var r=m(t,this.size),n=g(e,this.size);if(n!==this.size)return rt.prototype.slice.call(this,t,e);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Qe(i,o)},Ve.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Qe(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ve.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&t(n.value,r++,this)!==!1;)n=n.next;return r},Ve.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new S(function(){if(n){var e=n.value;return n=n.next,z(t,r++,e)}return I()})},Ve.isStack=Ye;var nn="@@__IMMUTABLE_STACK__@@",on=Ve.prototype;on[nn]=!0,on.withMutations=Cr.withMutations,on.asMutable=Cr.asMutable,on.asImmutable=Cr.asImmutable,on.wasAltered=Cr.wasAltered;var un;e.Iterator=S,Fe(e,{toArray:function(){ft(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new ne(this,!0)},toMap:function(){return ct(this.toKeyedSeq())},toObject:function(){ft(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return Zt(this.toKeyedSeq())},toOrderedSet:function(){return Je(u(this)?this.valueSeq():this)},toSet:function(){return Le(u(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this);
-},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ve(u(this)?this.valueSeq():this)},toList:function(){return Bt(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=sr.call(arguments,0);return be(this,ye(this,t))},includes:function(t){return this.some(function(e){return X(e,t)})},entries:function(){return this.__iterator(Sr)},every:function(t,e){ft(this.size);var r=!0;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?void 0:(r=!1,!1)}),r},filter:function(t,e){return be(this,fe(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return ft(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ft(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?""+n:""}),e},keys:function(){return this.__iterator(gr)},map:function(t,e){return be(this,ae(this,t,e))},reduce:function(t,e,r){ft(this.size);var n,i;return arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return be(this,he(this,!0))},slice:function(t,e){return be(this,pe(this,t,e,!0))},some:function(t,e){return!this.every($e(t),e)},sort:function(t){return be(this,we(this,t))},values:function(){return this.__iterator(wr)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return v(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return ce(this,t,e)},equals:function(t){return F(this,t)},entrySeq:function(){var t=this;if(t._cache)return new j(t._cache);var e=t.toSeq().map(Ze).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){
-return this.filter($e(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){return t.call(e,r,i,o)?(n=[i,r],!1):void 0}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(y)},flatMap:function(t,e){return be(this,me(this,t,e))},flatten:function(t){return be(this,de(this,t,!0))},fromEntrySeq:function(){return new ue(this)},get:function(t,e){return this.find(function(e,r){return X(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=ke(t);!(r=i.next()).done;){var o=r.value;if(n=n&&n.get?n.get(o,yr):yr,n===yr)return e}return n},groupBy:function(t,e){return _e(this,t,e)},has:function(t){return this.get(t,yr)!==yr},hasIn:function(t){return this.getIn(t,yr)!==yr},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return X(e,t)})},keySeq:function(){return this.toSeq().map(Ge).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Se(this,t)},maxBy:function(t,e){return Se(this,e,t)},min:function(t){return Se(this,t?tr(t):nr)},minBy:function(t,e){return Se(this,e?tr(e):nr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return be(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return be(this,le(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile($e(t),e)},sortBy:function(t,e){return be(this,we(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return be(this,this.toSeq().reverse().take(t).reverse());
-},takeWhile:function(t,e){return be(this,ve(this,t,e))},takeUntil:function(t,e){return this.takeWhile($e(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ir(this))}});var sn=e.prototype;sn[ar]=!0,sn[br]=sn.values,sn.__toJS=sn.toArray,sn.__toStringMapper=er,sn.inspect=sn.toSource=function(){return""+this},sn.chain=sn.flatMap,sn.contains=sn.includes,Fe(r,{flip:function(){return be(this,se(this))},mapEntries:function(t,e){var r=this,n=0;return be(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return be(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var an=r.prototype;an[hr]=!0,an[br]=sn.entries,an.__toJS=sn.toObject,an.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+er(t)},Fe(n,{toKeyedSeq:function(){return new ne(this,!1)},filter:function(t,e){return be(this,fe(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return be(this,he(this,!1))},slice:function(t,e){return be(this,pe(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=m(t,0>t?this.count():this.size);var n=this.slice(0,t);return be(this,1===r?n:n.concat(p(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return be(this,de(this,t,!1))},get:function(t,e){return t=l(this,t),0>t||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return t=l(this,t),t>=0&&(void 0!==this.size?this.size===1/0||this.size>t:-1!==this.indexOf(t))},interpose:function(t){return be(this,ge(this,t))},interleave:function(){var t=[this].concat(p(arguments)),e=Ie(this.toSeq(),k.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),
-be(this,r)},keySeq:function(){return $(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return be(this,le(this,t,e,!1))},zip:function(){var t=[this].concat(p(arguments));return be(this,Ie(this,rr,t))},zipWith:function(t){var e=p(arguments);return e[0]=this,be(this,Ie(this,t,e))}}),n.prototype[fr]=!0,n.prototype[cr]=!0,Fe(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=sn.includes,i.prototype.contains=i.prototype.includes,Fe(x,r.prototype),Fe(k,n.prototype),Fe(A,i.prototype),Fe(et,r.prototype),Fe(rt,n.prototype),Fe(nt,i.prototype);var hn={Iterable:e,Seq:O,Collection:tt,Map:ct,OrderedMap:Zt,List:Bt,Stack:Ve,Set:Le,OrderedSet:Je,Record:Ae,Range:$,Repeat:G,is:X,fromJS:H};return hn});
\ No newline at end of file
diff --git a/backend/staticfiles/drf-yasg/immutable.min.js.gz b/backend/staticfiles/drf-yasg/immutable.min.js.gz
deleted file mode 100644
index 17d0042b9..000000000
Binary files a/backend/staticfiles/drf-yasg/immutable.min.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/insQ.d4a1933caf20.js b/backend/staticfiles/drf-yasg/insQ.d4a1933caf20.js
deleted file mode 100644
index 92b57dc56..000000000
--- a/backend/staticfiles/drf-yasg/insQ.d4a1933caf20.js
+++ /dev/null
@@ -1,163 +0,0 @@
-var insertionQ = (function () {
- "use strict";
-
- var sequence = 100,
- isAnimationSupported = false,
- animation_string = 'animationName',
- keyframeprefix = '',
- domPrefixes = 'Webkit Moz O ms Khtml'.split(' '),
- pfx = '',
- elm = document.createElement('div'),
- options = {
- strictlyNew: true,
- timeout: 20
- };
-
- if (elm.style.animationName) {
- isAnimationSupported = true;
- }
-
- if (isAnimationSupported === false) {
- for (var i = 0; i < domPrefixes.length; i++) {
- if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) {
- pfx = domPrefixes[i];
- animation_string = pfx + 'AnimationName';
- keyframeprefix = '-' + pfx.toLowerCase() + '-';
- isAnimationSupported = true;
- break;
- }
- }
- }
-
-
- function listen(selector, callback) {
- var styleAnimation, animationName = 'insQ_' + (sequence++);
-
- var eventHandler = function (event) {
- if (event.animationName === animationName || event[animation_string] === animationName) {
- if (!isTagged(event.target)) {
- callback(event.target);
- }
- }
- };
-
- styleAnimation = document.createElement('style');
- styleAnimation.innerHTML = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { outline: 1px solid transparent } to { outline: 0px solid transparent } }' +
- "\n" + selector + ' { animation-duration: 0.001s; animation-name: ' + animationName + '; ' +
- keyframeprefix + 'animation-duration: 0.001s; ' + keyframeprefix + 'animation-name: ' + animationName + '; ' +
- ' } ';
-
- document.head.appendChild(styleAnimation);
-
- var bindAnimationLater = setTimeout(function () {
- document.addEventListener('animationstart', eventHandler, false);
- document.addEventListener('MSAnimationStart', eventHandler, false);
- document.addEventListener('webkitAnimationStart', eventHandler, false);
- //event support is not consistent with DOM prefixes
- }, options.timeout); //starts listening later to skip elements found on startup. this might need tweaking
-
- return {
- destroy: function () {
- clearTimeout(bindAnimationLater);
- if (styleAnimation) {
- document.head.removeChild(styleAnimation);
- styleAnimation = null;
- }
- document.removeEventListener('animationstart', eventHandler);
- document.removeEventListener('MSAnimationStart', eventHandler);
- document.removeEventListener('webkitAnimationStart', eventHandler);
- }
- };
- }
-
-
- function tag(el) {
- el.QinsQ = true; //bug in V8 causes memory leaks when weird characters are used as field names. I don't want to risk leaking DOM trees so the key is not '-+-' anymore
- }
-
- function isTagged(el) {
- return (options.strictlyNew && (el.QinsQ === true));
- }
-
- function topmostUntaggedParent(el) {
- if (isTagged(el.parentNode)) {
- return el;
- } else {
- return topmostUntaggedParent(el.parentNode);
- }
- }
-
- function tagAll(e) {
- tag(e);
- e = e.firstChild;
- for (; e; e = e.nextSibling) {
- if (e !== undefined && e.nodeType === 1) {
- tagAll(e);
- }
- }
- }
-
- //aggregates multiple insertion events into a common parent
- function catchInsertions(selector, callback) {
- var insertions = [];
- //throttle summary
- var sumUp = (function () {
- var to;
- return function () {
- clearTimeout(to);
- to = setTimeout(function () {
- insertions.forEach(tagAll);
- callback(insertions);
- insertions = [];
- }, 10);
- };
- })();
-
- return listen(selector, function (el) {
- if (isTagged(el)) {
- return;
- }
- tag(el);
- var myparent = topmostUntaggedParent(el);
- if (insertions.indexOf(myparent) < 0) {
- insertions.push(myparent);
- }
- sumUp();
- });
- }
-
- //insQ function
- var exports = function (selector) {
- if (isAnimationSupported && selector.match(/[^{}]/)) {
-
- if (options.strictlyNew) {
- tagAll(document.body); //prevents from catching things on show
- }
- return {
- every: function (callback) {
- return listen(selector, callback);
- },
- summary: function (callback) {
- return catchInsertions(selector, callback);
- }
- };
- } else {
- return false;
- }
- };
-
- //allows overriding defaults
- exports.config = function (opt) {
- for (var o in opt) {
- if (opt.hasOwnProperty(o)) {
- options[o] = opt[o];
- }
- }
- };
-
- return exports;
-})();
-
-if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
- module.exports = insertionQ;
-}
diff --git a/backend/staticfiles/drf-yasg/insQ.d4a1933caf20.js.gz b/backend/staticfiles/drf-yasg/insQ.d4a1933caf20.js.gz
deleted file mode 100644
index bac07885b..000000000
Binary files a/backend/staticfiles/drf-yasg/insQ.d4a1933caf20.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/insQ.js b/backend/staticfiles/drf-yasg/insQ.js
deleted file mode 100644
index 92b57dc56..000000000
--- a/backend/staticfiles/drf-yasg/insQ.js
+++ /dev/null
@@ -1,163 +0,0 @@
-var insertionQ = (function () {
- "use strict";
-
- var sequence = 100,
- isAnimationSupported = false,
- animation_string = 'animationName',
- keyframeprefix = '',
- domPrefixes = 'Webkit Moz O ms Khtml'.split(' '),
- pfx = '',
- elm = document.createElement('div'),
- options = {
- strictlyNew: true,
- timeout: 20
- };
-
- if (elm.style.animationName) {
- isAnimationSupported = true;
- }
-
- if (isAnimationSupported === false) {
- for (var i = 0; i < domPrefixes.length; i++) {
- if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) {
- pfx = domPrefixes[i];
- animation_string = pfx + 'AnimationName';
- keyframeprefix = '-' + pfx.toLowerCase() + '-';
- isAnimationSupported = true;
- break;
- }
- }
- }
-
-
- function listen(selector, callback) {
- var styleAnimation, animationName = 'insQ_' + (sequence++);
-
- var eventHandler = function (event) {
- if (event.animationName === animationName || event[animation_string] === animationName) {
- if (!isTagged(event.target)) {
- callback(event.target);
- }
- }
- };
-
- styleAnimation = document.createElement('style');
- styleAnimation.innerHTML = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { outline: 1px solid transparent } to { outline: 0px solid transparent } }' +
- "\n" + selector + ' { animation-duration: 0.001s; animation-name: ' + animationName + '; ' +
- keyframeprefix + 'animation-duration: 0.001s; ' + keyframeprefix + 'animation-name: ' + animationName + '; ' +
- ' } ';
-
- document.head.appendChild(styleAnimation);
-
- var bindAnimationLater = setTimeout(function () {
- document.addEventListener('animationstart', eventHandler, false);
- document.addEventListener('MSAnimationStart', eventHandler, false);
- document.addEventListener('webkitAnimationStart', eventHandler, false);
- //event support is not consistent with DOM prefixes
- }, options.timeout); //starts listening later to skip elements found on startup. this might need tweaking
-
- return {
- destroy: function () {
- clearTimeout(bindAnimationLater);
- if (styleAnimation) {
- document.head.removeChild(styleAnimation);
- styleAnimation = null;
- }
- document.removeEventListener('animationstart', eventHandler);
- document.removeEventListener('MSAnimationStart', eventHandler);
- document.removeEventListener('webkitAnimationStart', eventHandler);
- }
- };
- }
-
-
- function tag(el) {
- el.QinsQ = true; //bug in V8 causes memory leaks when weird characters are used as field names. I don't want to risk leaking DOM trees so the key is not '-+-' anymore
- }
-
- function isTagged(el) {
- return (options.strictlyNew && (el.QinsQ === true));
- }
-
- function topmostUntaggedParent(el) {
- if (isTagged(el.parentNode)) {
- return el;
- } else {
- return topmostUntaggedParent(el.parentNode);
- }
- }
-
- function tagAll(e) {
- tag(e);
- e = e.firstChild;
- for (; e; e = e.nextSibling) {
- if (e !== undefined && e.nodeType === 1) {
- tagAll(e);
- }
- }
- }
-
- //aggregates multiple insertion events into a common parent
- function catchInsertions(selector, callback) {
- var insertions = [];
- //throttle summary
- var sumUp = (function () {
- var to;
- return function () {
- clearTimeout(to);
- to = setTimeout(function () {
- insertions.forEach(tagAll);
- callback(insertions);
- insertions = [];
- }, 10);
- };
- })();
-
- return listen(selector, function (el) {
- if (isTagged(el)) {
- return;
- }
- tag(el);
- var myparent = topmostUntaggedParent(el);
- if (insertions.indexOf(myparent) < 0) {
- insertions.push(myparent);
- }
- sumUp();
- });
- }
-
- //insQ function
- var exports = function (selector) {
- if (isAnimationSupported && selector.match(/[^{}]/)) {
-
- if (options.strictlyNew) {
- tagAll(document.body); //prevents from catching things on show
- }
- return {
- every: function (callback) {
- return listen(selector, callback);
- },
- summary: function (callback) {
- return catchInsertions(selector, callback);
- }
- };
- } else {
- return false;
- }
- };
-
- //allows overriding defaults
- exports.config = function (opt) {
- for (var o in opt) {
- if (opt.hasOwnProperty(o)) {
- options[o] = opt[o];
- }
- }
- };
-
- return exports;
-})();
-
-if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
- module.exports = insertionQ;
-}
diff --git a/backend/staticfiles/drf-yasg/insQ.js.gz b/backend/staticfiles/drf-yasg/insQ.js.gz
deleted file mode 100644
index bac07885b..000000000
Binary files a/backend/staticfiles/drf-yasg/insQ.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/insQ.min.90ab21607447.js b/backend/staticfiles/drf-yasg/insQ.min.90ab21607447.js
deleted file mode 100644
index 9bef072d3..000000000
--- a/backend/staticfiles/drf-yasg/insQ.min.90ab21607447.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// insertion-query v1.0.3 (2016-01-20)
-// license:MIT
-// Zbyszek Tenerowicz (http://naugtur.pl/)
-var insertionQ=function(){"use strict";function a(a,b){var d,e="insQ_"+g++,f=function(a){(a.animationName===e||a[i]===e)&&(c(a.target)||b(a.target))};d=document.createElement("style"),d.innerHTML="@"+j+"keyframes "+e+" { from { outline: 1px solid transparent } to { outline: 0px solid transparent } }\n"+a+" { animation-duration: 0.001s; animation-name: "+e+"; "+j+"animation-duration: 0.001s; "+j+"animation-name: "+e+"; } ",document.head.appendChild(d);var h=setTimeout(function(){document.addEventListener("animationstart",f,!1),document.addEventListener("MSAnimationStart",f,!1),document.addEventListener("webkitAnimationStart",f,!1)},n.timeout);return{destroy:function(){clearTimeout(h),d&&(document.head.removeChild(d),d=null),document.removeEventListener("animationstart",f),document.removeEventListener("MSAnimationStart",f),document.removeEventListener("webkitAnimationStart",f)}}}function b(a){a.QinsQ=!0}function c(a){return n.strictlyNew&&a.QinsQ===!0}function d(a){return c(a.parentNode)?a:d(a.parentNode)}function e(a){for(b(a),a=a.firstChild;a;a=a.nextSibling)void 0!==a&&1===a.nodeType&&e(a)}function f(f,g){var h=[],i=function(){var a;return function(){clearTimeout(a),a=setTimeout(function(){h.forEach(e),g(h),h=[]},10)}}();return a(f,function(a){if(!c(a)){b(a);var e=d(a);h.indexOf(e)<0&&h.push(e),i()}})}var g=100,h=!1,i="animationName",j="",k="Webkit Moz O ms Khtml".split(" "),l="",m=document.createElement("div"),n={strictlyNew:!0,timeout:20};if(m.style.animationName&&(h=!0),h===!1)for(var o=0;o (http://naugtur.pl/)
-var insertionQ=function(){"use strict";function a(a,b){var d,e="insQ_"+g++,f=function(a){(a.animationName===e||a[i]===e)&&(c(a.target)||b(a.target))};d=document.createElement("style"),d.innerHTML="@"+j+"keyframes "+e+" { from { outline: 1px solid transparent } to { outline: 0px solid transparent } }\n"+a+" { animation-duration: 0.001s; animation-name: "+e+"; "+j+"animation-duration: 0.001s; "+j+"animation-name: "+e+"; } ",document.head.appendChild(d);var h=setTimeout(function(){document.addEventListener("animationstart",f,!1),document.addEventListener("MSAnimationStart",f,!1),document.addEventListener("webkitAnimationStart",f,!1)},n.timeout);return{destroy:function(){clearTimeout(h),d&&(document.head.removeChild(d),d=null),document.removeEventListener("animationstart",f),document.removeEventListener("MSAnimationStart",f),document.removeEventListener("webkitAnimationStart",f)}}}function b(a){a.QinsQ=!0}function c(a){return n.strictlyNew&&a.QinsQ===!0}function d(a){return c(a.parentNode)?a:d(a.parentNode)}function e(a){for(b(a),a=a.firstChild;a;a=a.nextSibling)void 0!==a&&1===a.nodeType&&e(a)}function f(f,g){var h=[],i=function(){var a;return function(){clearTimeout(a),a=setTimeout(function(){h.forEach(e),g(h),h=[]},10)}}();return a(f,function(a){if(!c(a)){b(a);var e=d(a);h.indexOf(e)<0&&h.push(e),i()}})}var g=100,h=!1,i="animationName",j="",k="Webkit Moz O ms Khtml".split(" "),l="",m=document.createElement("div"),n={strictlyNew:!0,timeout:20};if(m.style.animationName&&(h=!0),h===!1)for(var o=0;o
-// This file is licensed under the BSD 3-Clause License.
-// License text available at https://opensource.org/licenses/BSD-3-Clause
-
-"use strict";
-
-var currentPath = window.location.protocol + "//" + window.location.host + window.location.pathname;
-var specURL = currentPath + '?format=openapi';
-var redoc = document.createElement("redoc");
-
-var redocSettings = JSON.parse(document.getElementById('redoc-settings').innerHTML);
-if (redocSettings.url) {
- specURL = redocSettings.url;
-}
-delete redocSettings.url;
-if (redocSettings.fetchSchemaWithQuery) {
- var query = new URLSearchParams(window.location.search || '').entries();
- var url = specURL.split('?');
- var usp = new URLSearchParams(url[1] || '');
- for (var it = query.next(); !it.done; it = query.next()) {
- usp.set(it.value[0], it.value[1]);
- }
- url[1] = usp.toString();
- specURL = url[1] ? url.join('?') : url[0];
-}
-delete redocSettings.fetchSchemaWithQuery;
-
-redoc.setAttribute("spec-url", specURL);
-
-function camelToKebab(str) {
- return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
-}
-
-for (var p in redocSettings) {
- if (redocSettings.hasOwnProperty(p)) {
- if (redocSettings[p] !== null && redocSettings[p] !== undefined && redocSettings[p] !== false) {
- redoc.setAttribute(camelToKebab(p), redocSettings[p].toString());
- }
- }
-}
-
-document.body.replaceChild(redoc, document.getElementById('redoc-placeholder'));
-
-function hideEmptyVersion() {
- // 'span.api-info-version' is for redoc 1.x, 'div.api-info span' is for redoc 2-alpha
- var apiVersion = document.querySelector('span.api-info-version') || document.querySelector('div.api-info span');
- if (!apiVersion) {
- console.log("WARNING: could not find API versionString element (span.api-info-version)");
- return;
- }
-
- var versionString = apiVersion.innerText;
- if (versionString) {
- // trim spaces and surrounding ()
- versionString = versionString.replace(/ /g, '');
- versionString = versionString.replace(/(^\()|(\)$)/g, '');
- }
-
- if (!versionString) {
- // hide version element if empty
- apiVersion.classList.add("hidden");
- }
-}
-
-if (document.querySelector('span.api-info-version') || document.querySelector('div.api-info span')) {
- hideEmptyVersion();
-}
-else {
- insertionQ('span.api-info-version').every(hideEmptyVersion);
- insertionQ('div.api-info span').every(hideEmptyVersion);
-}
diff --git a/backend/staticfiles/drf-yasg/redoc-init.41348b1afc50.js.gz b/backend/staticfiles/drf-yasg/redoc-init.41348b1afc50.js.gz
deleted file mode 100644
index 88bfd6a95..000000000
Binary files a/backend/staticfiles/drf-yasg/redoc-init.41348b1afc50.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/redoc-init.js b/backend/staticfiles/drf-yasg/redoc-init.js
deleted file mode 100644
index f35c22751..000000000
--- a/backend/staticfiles/drf-yasg/redoc-init.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// redoc-init.js
-// https://github.com/axnsan12/drf-yasg
-// Copyright 2017 - 2021, Cristian V.
-// This file is licensed under the BSD 3-Clause License.
-// License text available at https://opensource.org/licenses/BSD-3-Clause
-
-"use strict";
-
-var currentPath = window.location.protocol + "//" + window.location.host + window.location.pathname;
-var specURL = currentPath + '?format=openapi';
-var redoc = document.createElement("redoc");
-
-var redocSettings = JSON.parse(document.getElementById('redoc-settings').innerHTML);
-if (redocSettings.url) {
- specURL = redocSettings.url;
-}
-delete redocSettings.url;
-if (redocSettings.fetchSchemaWithQuery) {
- var query = new URLSearchParams(window.location.search || '').entries();
- var url = specURL.split('?');
- var usp = new URLSearchParams(url[1] || '');
- for (var it = query.next(); !it.done; it = query.next()) {
- usp.set(it.value[0], it.value[1]);
- }
- url[1] = usp.toString();
- specURL = url[1] ? url.join('?') : url[0];
-}
-delete redocSettings.fetchSchemaWithQuery;
-
-redoc.setAttribute("spec-url", specURL);
-
-function camelToKebab(str) {
- return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
-}
-
-for (var p in redocSettings) {
- if (redocSettings.hasOwnProperty(p)) {
- if (redocSettings[p] !== null && redocSettings[p] !== undefined && redocSettings[p] !== false) {
- redoc.setAttribute(camelToKebab(p), redocSettings[p].toString());
- }
- }
-}
-
-document.body.replaceChild(redoc, document.getElementById('redoc-placeholder'));
-
-function hideEmptyVersion() {
- // 'span.api-info-version' is for redoc 1.x, 'div.api-info span' is for redoc 2-alpha
- var apiVersion = document.querySelector('span.api-info-version') || document.querySelector('div.api-info span');
- if (!apiVersion) {
- console.log("WARNING: could not find API versionString element (span.api-info-version)");
- return;
- }
-
- var versionString = apiVersion.innerText;
- if (versionString) {
- // trim spaces and surrounding ()
- versionString = versionString.replace(/ /g, '');
- versionString = versionString.replace(/(^\()|(\)$)/g, '');
- }
-
- if (!versionString) {
- // hide version element if empty
- apiVersion.classList.add("hidden");
- }
-}
-
-if (document.querySelector('span.api-info-version') || document.querySelector('div.api-info span')) {
- hideEmptyVersion();
-}
-else {
- insertionQ('span.api-info-version').every(hideEmptyVersion);
- insertionQ('div.api-info span').every(hideEmptyVersion);
-}
diff --git a/backend/staticfiles/drf-yasg/redoc-init.js.gz b/backend/staticfiles/drf-yasg/redoc-init.js.gz
deleted file mode 100644
index 88bfd6a95..000000000
Binary files a/backend/staticfiles/drf-yasg/redoc-init.js.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/redoc-old/LICENSE b/backend/staticfiles/drf-yasg/redoc-old/LICENSE
deleted file mode 100644
index b0070607f..000000000
--- a/backend/staticfiles/drf-yasg/redoc-old/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015, Rebilly, Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
diff --git a/backend/staticfiles/drf-yasg/redoc-old/LICENSE.e4e5f59c85dc b/backend/staticfiles/drf-yasg/redoc-old/LICENSE.e4e5f59c85dc
deleted file mode 100644
index b0070607f..000000000
--- a/backend/staticfiles/drf-yasg/redoc-old/LICENSE.e4e5f59c85dc
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015, Rebilly, Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
diff --git a/backend/staticfiles/drf-yasg/redoc-old/LICENSE.e4e5f59c85dc.gz b/backend/staticfiles/drf-yasg/redoc-old/LICENSE.e4e5f59c85dc.gz
deleted file mode 100644
index 5e332a09b..000000000
Binary files a/backend/staticfiles/drf-yasg/redoc-old/LICENSE.e4e5f59c85dc.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/redoc-old/LICENSE.gz b/backend/staticfiles/drf-yasg/redoc-old/LICENSE.gz
deleted file mode 100644
index 5e332a09b..000000000
Binary files a/backend/staticfiles/drf-yasg/redoc-old/LICENSE.gz and /dev/null differ
diff --git a/backend/staticfiles/drf-yasg/redoc-old/redoc.min.a11aa4191acf.js b/backend/staticfiles/drf-yasg/redoc-old/redoc.min.a11aa4191acf.js
deleted file mode 100644
index decbf0d12..000000000
--- a/backend/staticfiles/drf-yasg/redoc-old/redoc.min.a11aa4191acf.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*!
- * ReDoc - OpenAPI/Swagger-generated API Reference Documentation
- * -------------------------------------------------------------
- * Version: "1.22.3"
- * Repo: https://github.com/Rebilly/ReDoc
- */
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(function(){try{return require("esprima")}catch(e){}}(),function(){try{return require("jquery")}catch(e){}}()):"function"==typeof define&&define.amd?define("Redoc",["esprima","jquery"],t):"object"==typeof exports?exports.Redoc=t(function(){try{return require("esprima")}catch(e){}}(),function(){try{return require("jquery")}catch(e){}}()):e.Redoc=t(e.esprima,e.jquery)}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=249)}([function(e,t,n){var r=n(5),o=n(8),i=n(25),a=n(20),s=n(58),l=function(e,t,n){var u,c,p,d,f=e&l.F,h=e&l.G,g=e&l.S,m=e&l.P,y=e&l.B,v=h?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),_=b.prototype||(b.prototype={});h&&(n=t);for(u in n)c=!f&&v&&void 0!==v[u],p=(c?v:n)[u],d=y&&c?s(p,r):m&&"function"==typeof p?s(Function.call,p):p,v&&a(v,u,p,e&l.U),b[u]!=p&&i(b,u,d),m&&_[u]!=p&&(_[u]=p)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function r(){if(!Do){var e=jo.Symbol;if(e&&e.iterator)Do=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}function k(e){if(e.length>1){return" ("+x(e.slice().reverse()).map(function(e){return a(e.token)}).join(" -> ")+")"}return""}function C(e,t,n,r){var o=[t],i=n(o),a=r?w(i,r):Error(i);return a.addKey=S,a.keys=o,a.injectors=[e],a.constructResolvingMessage=n,a[_i]=r,a}function S(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function O(e,t){return C(e,t,function(e){return"No provider for "+a(e[0].token)+"!"+k(e)})}function P(e,t){return C(e,t,function(e){return"Cannot instantiate cyclic dependency!"+k(e)})}function M(e,t,n,r){return C(e,r,function(e){var n=a(e[0].token);return t.message+": Error during instantiation of "+n+"!"+k(e)+"."},t)}function E(e){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e)}function T(e,t){for(var n=[],r=0,o=t.length;r-1&&e.splice(n,1)}function ve(e,t){var n=Fa.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);Fa.set(e,t)}function be(e){var t=Fa.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}function _e(e){return e.reduce(function(e,t){var n=Array.isArray(t)?_e(t):t;return e.concat(n)},[])}function we(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}function xe(e){return e.map(function(e){return e.nativeElement})}function ke(e,t,n){e.childNodes.forEach(function(e){e instanceof Ga&&(t(e)&&n.push(e),ke(e,t,n))})}function Ce(e,t,n){e instanceof Ga&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Ga&&Ce(e,t,n)})}function Se(e){return Ja.get(e)||null}function Oe(e){Ja.set(e.nativeNode,e)}function Pe(e){Ja.delete(e.nativeNode)}function Me(e,t){var n=Ee(e),r=Ee(t);if(n&&r)return Te(e,t,Me);var o=e&&("object"==typeof e||"function"==typeof e),a=t&&("object"==typeof t||"function"==typeof t);return!(n||!o||r||!a)||i(e,t)}function Ee(e){return!!Ae(e)&&(Array.isArray(e)||!(e instanceof Map)&&r()in e)}function Te(e,t,n){for(var o=e[r()](),i=t[r()]();;){var a=o.next(),s=i.next();if(a.done&&s.done)return!0;if(a.done||s.done)return!1;if(!n(a.value,s.value))return!1}}function Ie(e,t){if(Array.isArray(e))for(var n=0;n0&&jt(e,t,0,n)&&(f=!0),d>1&&jt(e,t,1,r)&&(f=!0),d>2&&jt(e,t,2,o)&&(f=!0),d>3&&jt(e,t,3,i)&&(f=!0),d>4&&jt(e,t,4,a)&&(f=!0),d>5&&jt(e,t,5,s)&&(f=!0),d>6&&jt(e,t,6,l)&&(f=!0),d>7&&jt(e,t,7,u)&&(f=!0),d>8&&jt(e,t,8,c)&&(f=!0),d>9&&jt(e,t,9,p)&&(f=!0),f}function Nt(e,t,n){for(var r=!1,o=0;o0?o[n-1]:null,r)}function Xt(e,t){var n=at(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),Gt(t.parent.def,t.parentNodeDef)}}function Gt(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}function Jt(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,rn(n,t),Os.dirtyParentQueries(r),tn(r),r}function Kt(e){if(16&e.state){var t=at(e);if(t){var n=t.template._projectedViews;n&&(rn(n,n.indexOf(e)),Os.dirtyParentQueries(e))}}}function Qt(e,t,n){var r=e.viewContainer._embeddedViews,o=r[t];return rn(r,t),null==n&&(n=r.length),nn(r,n,o),Os.dirtyParentQueries(o),tn(o),en(e,n>0?r[n-1]:null,o),o}function en(e,t,n){var r=t?lt(t,t.def.lastRenderRootNode):e.renderElement;vt(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function tn(e){vt(e,3,null,null,void 0)}function nn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function rn(e,t){t>=e.length-1?e.pop():e.splice(t,1)}function on(e,t,n,r,o,i){return new Vs(e,t,n,r,o,i)}function an(e){return e.viewDefFactory}function sn(e,t,n){return new Hs(e,t,n)}function ln(e){return new qs(e)}function un(e,t){return new Us(e,t)}function cn(e,t){return new $s(e,t)}function pn(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Ve(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return ze(e,n.nodeIndex).renderText;if(20240&n.flags)return Be(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function dn(e){return new Ys(e.renderer)}function fn(e,t,n,r){return new Ws(e,t,n,r)}function hn(e,t,n,r,o,i,a,s){var l=[];if(a)for(var u in a){var c=a[u],p=c[0],d=c[1];l[p]={flags:8,name:u,nonMinifiedName:d,ns:null,securityContext:null,suffix:null}}var f=[];if(s)for(var h in s)f.push({type:1,propName:h,target:null,eventName:s[h]});return t|=16384,yn(e,t,n,r,o,o,i,l,f)}function gn(e,t,n){return e|=16,yn(-1,e,null,0,t,t,n)}function mn(e,t,n,r,o){return yn(-1,e,t,0,n,r,o)}function yn(e,t,n,r,o,i,a,s,l){var u=ft(n),c=u.matchedQueries,p=u.references,d=u.matchedQueryIds;l||(l=[]),s||(s=[]);var f=ht(a);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:d,references:p,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:Ct(s),outputs:l,element:null,provider:{token:o,value:i,deps:f},text:null,query:null,ngContent:null}}function vn(e,t){return Cn(e,t)}function bn(e,t){for(var n=e;n.parent&&!ct(n);)n=n.parent;return Sn(n.parent,st(n),!0,t.provider.value,t.provider.deps)}function _n(e,t){var n=(32768&t.flags)>0,r=Sn(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(var o=0;o0&&et(e,t,0,n)&&(h=!0,g=En(e,d,t,0,n,g)),m>1&&et(e,t,1,r)&&(h=!0,g=En(e,d,t,1,r,g)),m>2&&et(e,t,2,o)&&(h=!0,g=En(e,d,t,2,o,g)),m>3&&et(e,t,3,i)&&(h=!0,g=En(e,d,t,3,i,g)),m>4&&et(e,t,4,a)&&(h=!0,g=En(e,d,t,4,a,g)),m>5&&et(e,t,5,s)&&(h=!0,g=En(e,d,t,5,s,g)),m>6&&et(e,t,6,l)&&(h=!0,g=En(e,d,t,6,l,g)),m>7&&et(e,t,7,u)&&(h=!0,g=En(e,d,t,7,u,g)),m>8&&et(e,t,8,c)&&(h=!0,g=En(e,d,t,8,c,g)),m>9&&et(e,t,9,p)&&(h=!0,g=En(e,d,t,9,p,g)),g&&f.ngOnChanges(g),2&e.state&&65536&t.flags&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),h}function kn(e,t,n){for(var r=Be(e,t.nodeIndex),o=r.instance,i=!1,a=void 0,s=0;s0,r=t.provider;switch(201347067&t.flags){case 512:return Sn(e,t.parent,n,r.value,r.deps);case 1024:return On(e,t.parent,n,r.value,r.deps);case 2048:return Pn(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Sn(e,t,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(Pn(e,t,n,o[0]));case 2:return new r(Pn(e,t,n,o[0]),Pn(e,t,n,o[1]));case 3:return new r(Pn(e,t,n,o[0]),Pn(e,t,n,o[1]),Pn(e,t,n,o[2]));default:for(var a=new Array(i),s=0;s0&&tt(e,t,0,n)&&(f=!0),h>1&&tt(e,t,1,r)&&(f=!0),h>2&&tt(e,t,2,o)&&(f=!0),h>3&&tt(e,t,3,i)&&(f=!0),h>4&&tt(e,t,4,a)&&(f=!0),h>5&&tt(e,t,5,s)&&(f=!0),h>6&&tt(e,t,6,l)&&(f=!0),h>7&&tt(e,t,7,u)&&(f=!0),h>8&&tt(e,t,8,c)&&(f=!0),h>9&&tt(e,t,9,p)&&(f=!0),f){var g=He(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(d.length),h>0&&(m[0]=n),h>1&&(m[1]=r),h>2&&(m[2]=o),h>3&&(m[3]=i),h>4&&(m[4]=a),h>5&&(m[5]=s),h>6&&(m[6]=l),h>7&&(m[7]=u),h>8&&(m[8]=c),h>9&&(m[9]=p);break;case 64:m={},h>0&&(m[d[0].name]=n),h>1&&(m[d[1].name]=r),h>2&&(m[d[2].name]=o),h>3&&(m[d[3].name]=i),h>4&&(m[d[4].name]=a),h>5&&(m[d[5].name]=s),h>6&&(m[d[6].name]=l),h>7&&(m[d[7].name]=u),h>8&&(m[d[8].name]=c),h>9&&(m[d[9].name]=p);break;case 128:var y=n;switch(h){case 1:m=y.transform(n);break;case 2:m=y.transform(r);break;case 3:m=y.transform(r,o);break;case 4:m=y.transform(r,o,i);break;case 5:m=y.transform(r,o,i,a);break;case 6:m=y.transform(r,o,i,a,s);break;case 7:m=y.transform(r,o,i,a,s,l);break;case 8:m=y.transform(r,o,i,a,s,l,u);break;case 9:m=y.transform(r,o,i,a,s,l,u,c);break;case 10:m=y.transform(r,o,i,a,s,l,u,c,p)}}g.value=m}return f}function Wn(e,t,n){for(var r=t.bindings,o=!1,i=0;i0&&tt(e,t,0,n)&&(d=!0),h>1&&tt(e,t,1,r)&&(d=!0),h>2&&tt(e,t,2,o)&&(d=!0),h>3&&tt(e,t,3,i)&&(d=!0),h>4&&tt(e,t,4,a)&&(d=!0),h>5&&tt(e,t,5,s)&&(d=!0),h>6&&tt(e,t,6,l)&&(d=!0),h>7&&tt(e,t,7,u)&&(d=!0),h>8&&tt(e,t,8,c)&&(d=!0),h>9&&tt(e,t,9,p)&&(d=!0),d){var g=t.text.prefix;h>0&&(g+=Kn(n,f[0])),h>1&&(g+=Kn(r,f[1])),h>2&&(g+=Kn(o,f[2])),h>3&&(g+=Kn(i,f[3])),h>4&&(g+=Kn(a,f[4])),h>5&&(g+=Kn(s,f[5])),h>6&&(g+=Kn(l,f[6])),h>7&&(g+=Kn(u,f[7])),h>8&&(g+=Kn(c,f[8])),h>9&&(g+=Kn(p,f[9]));var m=ze(e,t.nodeIndex).renderText;e.renderer.setValue(m,g)}return d}function Jn(e,t,n){for(var r=t.bindings,o=!1,i=0;i0)u=g,er(g)||(c=g);else for(;u&&h===u.nodeIndex+u.childCount;){var b=u.parent;b&&(b.childFlags|=u.childFlags,b.childMatchedQueries|=u.childMatchedQueries),u=b,c=u&&er(u)?u.renderParent:u}}var _=function(e,n,r,o){return t[n].element.handleEvent(e,r,o)};return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Ps,updateRenderer:r||Ps,handleEvent:_,bindingCount:o,outputCount:i,lastRenderRootNode:f}}function er(e){return 0!=(1&e.flags)&&null===e.element.name}function tr(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags){if(0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!")}if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function nr(e,t,n,r){var o=ir(e.root,e.renderer,e,t,n);return ar(o,e.component,r),sr(o),o}function rr(e,t,n){var r=ir(e,e.renderer,null,null,t);return ar(r,n,n),sr(r),r}function or(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,ir(e.root,o,e,t.element.componentProvider,n)}function ir(e,t,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:a}}function ar(e,t,n){e.component=t,e.context=n}function sr(e){var t;if(ct(e)){var n=e.parentNodeDef;t=Ve(e.parent,n.parent.nodeIndex).renderElement}for(var r=e.def,o=e.nodes,i=0;i0&&nt(e,t,0,n),d>1&&nt(e,t,1,r),d>2&&nt(e,t,2,o),d>3&&nt(e,t,3,i),d>4&&nt(e,t,4,a),d>5&&nt(e,t,5,s),d>6&&nt(e,t,6,l),d>7&&nt(e,t,7,u),d>8&&nt(e,t,8,c),d>9&&nt(e,t,9,p)}function mr(e,t,n){for(var r=0;r=this._providers.length)throw I(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw P(this,e.key);return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+a(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},t}(Sa);Oa.decorators=[{type:ci}],Oa.ctorParameters=function(){return[{type:yi}]};var Pa=function(){function e(){}return e.prototype.bootstrap=function(e,t){},e.prototype.tick=function(){},e.prototype.componentTypes=function(){},e.prototype.components=function(){},e.prototype.attachView=function(e){},e.prototype.detachView=function(e){},e.prototype.viewCount=function(){},e.prototype.isStable=function(){},e}(),Ma=function(e){function t(t,n,r,i,a,s){var l=e.call(this)||this;l._zone=t,l._console=n,l._injector=r,l._exceptionHandler=i,l._componentFactoryResolver=a,l._initStatus=s,l._bootstrapListeners=[],l._rootComponents=[],l._rootComponentTypes=[],l._views=[],l._runningTick=!1,l._enforceNoNewChanges=!1,l._stable=!0,l._enforceNoNewChanges=ce(),l._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new Oo.Observable(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),c=new Oo.Observable(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){ga.assertNotInAngularZone(),o(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){ga.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});return l._isStable=Object(Po.merge)(u,Mo.share.call(c)),l}return So.a(t,e),t.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},t.prototype.detachView=function(e){var t=e;ye(this._views,t),t.detachFromAppRef()},t.prototype.bootstrap=function(e,t){var n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=e instanceof Qi?e:this._componentFactoryResolver.resolveComponentFactory(e),this._rootComponentTypes.push(r.componentType);var o=r instanceof aa?null:this._injector.get(sa),i=t||r.selector,a=r.create(yi.NULL,[],i,o);a.onDestroy(function(){n._unloadComponent(a)});var s=a.injector.get(ma,null);return s&&a.injector.get(ya).registerApplication(a.location.nativeElement,s),this._loadComponent(a),ce()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a},t.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this._rootComponents.push(e),this._injector.get($i,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},t.prototype._unloadComponent=function(e){this.detachView(e.hostView),ye(this._rootComponents,e)},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,pa(n)}},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),t}(Pa);Ma._tickScope=ca("ApplicationRef#tick()"),Ma.decorators=[{type:ci}],Ma.ctorParameters=function(){return[{type:ga},{type:Wi},{type:yi},{type:xi},{type:na},{type:Vi}]};var Ea=function(){function e(e,t,n,r,o,i){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return e}(),Ta=function(){function e(){}return e.prototype.injector=function(){},e.prototype.component=function(){},e.prototype.providerTokens=function(){},e.prototype.references=function(){},e.prototype.context=function(){},e.prototype.source=function(){},e}(),Ia=function(){function e(){}return e.prototype.selectRootElement=function(e,t){},e.prototype.createElement=function(e,t,n){},e.prototype.createViewRoot=function(e){},e.prototype.createTemplateAnchor=function(e,t){},e.prototype.createText=function(e,t,n){},e.prototype.projectNodes=function(e,t){},e.prototype.attachViewAfter=function(e,t){},e.prototype.detachView=function(e){},e.prototype.destroyView=function(e,t){},e.prototype.listen=function(e,t,n){},e.prototype.listenGlobal=function(e,t,n){},e.prototype.setElementProperty=function(e,t,n){},e.prototype.setElementAttribute=function(e,t,n){},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){},e.prototype.setElementStyle=function(e,t,n){},e.prototype.invokeElementMethod=function(e,t,n){},e.prototype.setText=function(e,t){},e.prototype.animate=function(e,t,n,r,o,i,a){},e}(),Aa=(new Io("Renderer2Interceptor"),function(){function e(){}return e.prototype.renderComponent=function(e){},e}()),Ra=function(){function e(){}return e.prototype.createRenderer=function(e,t){},e.prototype.begin=function(){},e.prototype.end=function(){},e.prototype.whenRenderingDone=function(){},e}(),Na={};Na.Important=1,Na.DashCase=2,Na[Na.Important]="Important",Na[Na.DashCase]="DashCase";var ja=function(){function e(){}return e.prototype.data=function(){},e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){},e.prototype.createComment=function(e){},e.prototype.createText=function(e){},e.prototype.appendChild=function(e,t){},e.prototype.insertBefore=function(e,t,n){},e.prototype.removeChild=function(e,t){},e.prototype.selectRootElement=function(e){},e.prototype.parentNode=function(e){},e.prototype.nextSibling=function(e){},e.prototype.setAttribute=function(e,t,n,r){},e.prototype.removeAttribute=function(e,t,n){},e.prototype.addClass=function(e,t){},e.prototype.removeClass=function(e,t){},e.prototype.setStyle=function(e,t,n,r){},e.prototype.removeStyle=function(e,t,n){},e.prototype.setProperty=function(e,t,n){},e.prototype.setValue=function(e,t){},e.prototype.listen=function(e,t,n){},e}(),Da=function(){function e(e){this.nativeElement=e}return e}(),La=function(){function e(){}return e.prototype.load=function(e){},e}(),Fa=new Map,za=function(){function e(){this._dirty=!0,this._results=[],this._emitter=new ha}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[r()]=function(){return this._results[r()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=_e(e),this._dirty=!1},e.prototype.notifyOnChanges=function(){this._emitter.emit(this)},e.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._emitter.complete(),this._emitter.unsubscribe()},e}(),Va=function(){function e(){}return e}(),Ba={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ha=function(){function e(e,t){this._compiler=e,this._config=t||Ba}return e.prototype.load=function(e){return this._compiler instanceof Xi?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=e.split("#"),o=r[0],i=r[1];return void 0===i&&(i="default"),n(216)(o).then(function(e){return e[i]}).then(function(e){return we(e,o,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),r=t[0],o=t[1],i="NgFactory";return void 0===o&&(o="default",i=""),n(216)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[o+i]}).then(function(e){return we(e,r,o)})},e}();Ha.decorators=[{type:ci}],Ha.ctorParameters=function(){return[{type:Xi},{type:Va,decorators:[{type:ui}]}]};var qa=function(){function e(){}return e.prototype.elementRef=function(){},e.prototype.createEmbeddedView=function(e){},e}(),Ua=function(){function e(){}return e.prototype.element=function(){},e.prototype.injector=function(){},e.prototype.parentInjector=function(){},e.prototype.clear=function(){},e.prototype.get=function(e){},e.prototype.length=function(){},e.prototype.createEmbeddedView=function(e,t,n){},e.prototype.createComponent=function(e,t,n,r,o){},e.prototype.insert=function(e,t){},e.prototype.move=function(e,t){},e.prototype.indexOf=function(e){},e.prototype.remove=function(e){},e.prototype.detach=function(e){},e}(),$a=function(){function e(){}return e.prototype.markForCheck=function(){},e.prototype.detach=function(){},e.prototype.detectChanges=function(){},e.prototype.checkNoChanges=function(){},e.prototype.reattach=function(){},e}(),Ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return So.a(t,e),t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t.prototype.onDestroy=function(e){},t}($a),Wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return So.a(t,e),t.prototype.context=function(){},t.prototype.rootNodes=function(){},t}(Ya),Za=function(){function e(e,t){this.name=e,this.callback=t}return e}(),Xa=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Ga?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),e}(),Ga=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return So.a(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n=this,r=this.childNodes.indexOf(e);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=n}));var o},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return ke(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Ce(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Xa),Ja=new Map,Ka=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),Qa=function(){function e(){this.hasWrappedValue=!1}return e.prototype.unwrap=function(e){return e instanceof Ka?(this.hasWrappedValue=!0,e.wrapped):e},e.prototype.reset=function(){this.hasWrappedValue=!1},e}(),es=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),ts=function(){function e(){}return e.prototype.supports=function(e){return Ee(e)},e.prototype.create=function(e,t){return new rs(t||e)},e}(),ns=function(e,t){return t},rs=function(){function e(e){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||ns}return Object.defineProperty(e.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex"+a(this.currentIndex)+"]"},e}(),is=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&i(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),as=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new is,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=e,r=this.map.get(n);return r?r.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.toString=function(){return"_DuplicateMap("+a(this.map)+")"},e}(),ss=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||Ae(e)},e.prototype.create=function(e){return new ls},e}(),ls=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||Ae(e)))throw new Error("Error trying to diff '"+a(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var o=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new us(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){i(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),us=function(){function e(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return e}(),cs=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();return t=t.concat(r),new e(t)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new di,new ui]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(null!=t)return t;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+Ne(e)+"'")},e}(),ps=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new di,new ui]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),ds=[new ss],fs=[new ts],hs=new cs(fs),gs=new ps(ds),ms=[{provide:Ui,useValue:"unknown"},Oa,{provide:Sa,useExisting:Oa},{provide:Ei,useFactory:je,deps:[]},ya,Wi],ys=de(null,"core",ms),vs=new Io("LocaleId"),bs=new Io("Translations"),_s=new Io("TranslationsFormat"),ws={};ws.Error=0,ws.Warning=1,ws.Ignore=2,ws[ws.Error]="Error",ws[ws.Warning]="Warning",ws[ws.Ignore]="Ignore";var xs=function(){function e(e){}return e}();xs.decorators=[{type:ri,args:[{providers:[Ma,{provide:Pa,useExisting:Ma},Vi,Xi,Hi,{provide:cs,useFactory:De},{provide:ps,useFactory:Le},{provide:vs,useFactory:Fe,deps:[[new li(vs),new ui,new di]]}]}]}],xs.ctorParameters=function(){return[{type:Pa}]};var ks={};ks.NONE=0,ks.HTML=1,ks.STYLE=2,ks.SCRIPT=3,ks.URL=4,ks.RESOURCE_URL=5,ks[ks.NONE]="NONE",ks[ks.HTML]="HTML",ks[ks.STYLE]="STYLE",ks[ks.SCRIPT]="SCRIPT",ks[ks.URL]="URL",ks[ks.RESOURCE_URL]="RESOURCE_URL";var Cs=function(){function e(){}return e.prototype.sanitize=function(e,t){},e}(),Ss=function(){function e(){}return e.prototype.view=function(){},e.prototype.nodeIndex=function(){},e.prototype.injector=function(){},e.prototype.component=function(){},e.prototype.providerTokens=function(){},e.prototype.references=function(){},e.prototype.context=function(){},e.prototype.componentRenderElement=function(){},e.prototype.renderNode=function(){},e.prototype.logError=function(e){for(var t=[],n=1;n=0;t--){var n=Jt(this._data,t);Os.destroyView(n)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new qs(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof aa||(o=i.get(sa));var a=e.create(i,r,void 0,o);return this.insert(a.hostView,t),a},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e,r=n._view;return Zt(this._view,this._data,t,r),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return Qt(this._data,n,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Jt(this._data,e);t&&Os.destroyView(t)},e.prototype.detach=function(e){var t=Jt(this._data,e);return t?new qs(t):null},e}(),qs=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return yt(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){rt(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin(),Os.checkAndUpdateView(this._view),e.end&&e.end()},e.prototype.checkNoChanges=function(){Os.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Os.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,tn(this._view),Os.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}(),Us=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return So.a(t,e),t.prototype.createEmbeddedView=function(e){return new qs(Os.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Da(Ve(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(qa),$s=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){void 0===t&&(t=yi.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Os.resolveDep(this.view,this.elDef,n,{flags:0,token:e,tokenKey:Ge(e)},t)},e}(),Ys=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=kt(t),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n-1)return r;if(r=n.getPluralCategory(e),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}function a(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?U.One:U.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?U.One:U.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?U.One:U.Other;case"ar":return 0===n?U.Zero:1===n?U.One:2===n?U.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?U.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?U.Many:U.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?U.One:U.Other;case"be":return n%10==1&&n%100!=11?U.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?U.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?U.Many:U.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?U.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?U.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?U.Few:0!==n&&n%1e6==0?U.Many:U.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||a%10==1&&a%100!=11?U.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?U.Few:U.Other;case"cs":case"sk":return 1===o&&0===i?U.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?U.Few:0!==i?U.Many:U.Other;case"cy":return 0===n?U.Zero:1===n?U.One:2===n?U.Two:3===n?U.Few:6===n?U.Many:U.Other;case"da":return 1===n||0!==s&&(0===o||1===o)?U.One:U.Other;case"dsb":case"hsb":return 0===i&&o%100==1||a%100==1?U.One:0===i&&o%100==2||a%100==2?U.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?U.Few:U.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?U.One:U.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&a%10!=4&&a%10!=6&&a%10!=9?U.One:U.Other;case"ga":return 1===n?U.One:2===n?U.Two:n===Math.floor(n)&&n>=3&&n<=6?U.Few:n===Math.floor(n)&&n>=7&&n<=10?U.Many:U.Other;case"gd":return 1===n||11===n?U.One:2===n||12===n?U.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?U.Few:U.Other;case"gv":return 0===i&&o%10==1?U.One:0===i&&o%10==2?U.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?U.Many:U.Other:U.Few;case"he":return 1===o&&0===i?U.One:2===o&&0===i?U.Two:0!==i||n>=0&&n<=10||n%10!=0?U.Other:U.Many;case"is":return 0===s&&o%10==1&&o%100!=11||0!==s?U.One:U.Other;case"ksh":return 0===n?U.Zero:1===n?U.One:U.Other;case"kw":case"naq":case"se":case"smn":return 1===n?U.One:2===n?U.Two:U.Other;case"lag":return 0===n?U.Zero:0!==o&&1!==o||0===n?U.Other:U.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?U.Few:0!==a?U.Many:U.Other:U.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?U.Zero:n%10==1&&n%100!=11||2===i&&a%10==1&&a%100!=11||2!==i&&a%10==1?U.One:U.Other;case"mk":return 0===i&&o%10==1||a%10==1?U.One:U.Other;case"mt":return 1===n?U.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?U.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?U.Many:U.Other;case"pl":return 1===o&&0===i?U.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?U.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?U.Many:U.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?U.One:U.Other;case"ro":return 1===o&&0===i?U.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?U.Few:U.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?U.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?U.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?U.Many:U.Other;case"shi":return 0===o||1===n?U.One:n===Math.floor(n)&&n>=2&&n<=10?U.Few:U.Other;case"si":return 0===n||1===n||0===o&&1===a?U.One:U.Other;case"sl":return 0===i&&o%100==1?U.One:0===i&&o%100==2?U.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?U.Few:U.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?U.One:U.Other;default:return U.Other}}function s(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n1?"short":"narrow":"long",n}function v(e){return e.reduce(function(e,t){return Object.assign({},e,t)},{})}function b(e){return function(t,n){return f(t,n,e)}}function _(e,t,n){var r=be[e];if(r)return r(t,n);var o=e,i=we.get(o);if(!i){i=[];var a=void 0;ve.exec(e);for(var s=e;s;)a=ve.exec(s),a?(i=i.concat(a.slice(1)),s=i.pop()):(i.push(s),s=null);we.set(o,i)}return i.reduce(function(e,r){var o=_e[r];return e+(o?o(t,n):w(r))},"")}function w(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function x(e,t,n,r,o,i,a){if(void 0===i&&(i=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&C(n)?+n:n))throw u(e,n);var s=void 0,l=void 0,c=void 0;if(r!==me.Currency&&(s=1,l=0,c=3),o){var p=o.match(ke);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(s=k(p[1])),null!=p[3]&&(l=k(p[3])),null!=p[5]&&(c=k(p[5]))}return ye.format(n,t,r,{minimumIntegerDigits:s,minimumFractionDigits:l,maximumFractionDigits:c,currency:i,currencyAsSymbol:a})}function k(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function C(e){return!isNaN(e-parseFloat(e))}function S(e){return null==e||""===e}function O(e){return e instanceof Date&&!isNaN(e.valueOf())}function P(e){var t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=M(e[9]+e[10]),r=M(e[9]+e[11])),o.call(t,M(e[1]),M(e[2])-1,M(e[3]));var a=M(e[4]||"0")-n,s=M(e[5]||"0")-r,l=M(e[6]||"0"),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,a,s,l,u),t}function M(e){return parseInt(e,10)}function E(e){return e===Fe}function T(e){return e===ze}function I(e){return e===Ve}function A(e){return e===Be}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"NgLocaleLocalization",function(){return q}),n.d(t,"NgLocalization",function(){return H}),n.d(t,"ɵparseCookieValue",function(){return s}),n.d(t,"CommonModule",function(){return je}),n.d(t,"DeprecatedI18NPipesModule",function(){return De}),n.d(t,"NgClass",function(){return $}),n.d(t,"NgFor",function(){return G}),n.d(t,"NgForOf",function(){return Z}),n.d(t,"NgForOfContext",function(){return W}),n.d(t,"NgIf",function(){return J}),n.d(t,"NgIfContext",function(){return K}),n.d(t,"NgPlural",function(){return re}),n.d(t,"NgPluralCase",function(){return oe}),n.d(t,"NgStyle",function(){return ie}),n.d(t,"NgSwitch",function(){return ee}),n.d(t,"NgSwitchCase",function(){return te}),n.d(t,"NgSwitchDefault",function(){return ne}),n.d(t,"NgTemplateOutlet",function(){return ae}),n.d(t,"NgComponentOutlet",function(){return Y}),n.d(t,"DOCUMENT",function(){return Le}),n.d(t,"AsyncPipe",function(){return de}),n.d(t,"DatePipe",function(){return Me}),n.d(t,"I18nPluralPipe",function(){return Te}),n.d(t,"I18nSelectPipe",function(){return Ie}),n.d(t,"JsonPipe",function(){return Ae}),n.d(t,"LowerCasePipe",function(){return fe}),n.d(t,"CurrencyPipe",function(){return Oe}),n.d(t,"DecimalPipe",function(){return Ce}),n.d(t,"PercentPipe",function(){return Se}),n.d(t,"SlicePipe",function(){return Re}),n.d(t,"UpperCasePipe",function(){return ge}),n.d(t,"TitleCasePipe",function(){return he}),n.d(t,"ɵPLATFORM_BROWSER_ID",function(){return Fe}),n.d(t,"ɵPLATFORM_SERVER_ID",function(){return ze}),n.d(t,"ɵPLATFORM_WORKER_APP_ID",function(){return Ve}),n.d(t,"ɵPLATFORM_WORKER_UI_ID",function(){return Be}),n.d(t,"isPlatformBrowser",function(){return E}),n.d(t,"isPlatformServer",function(){return T}),n.d(t,"isPlatformWorkerApp",function(){return I}),n.d(t,"isPlatformWorkerUi",function(){return A}),n.d(t,"VERSION",function(){return He}),n.d(t,"PlatformLocation",function(){return j}),n.d(t,"LOCATION_INITIALIZED",function(){return D}),n.d(t,"LocationStrategy",function(){return L}),n.d(t,"APP_BASE_HREF",function(){return F}),n.d(t,"HashLocationStrategy",function(){return V}),n.d(t,"PathLocationStrategy",function(){return B}),n.d(t,"Location",function(){return z}),n.d(t,"ɵa",function(){return se}),n.d(t,"ɵb",function(){return Ne});var R=n(142),N=n(1),j=function(){function e(){}return e.prototype.getBaseHrefFromDOM=function(){},e.prototype.onPopState=function(e){},e.prototype.onHashChange=function(e){},e.prototype.pathname=function(){},e.prototype.search=function(){},e.prototype.hash=function(){},e.prototype.replaceState=function(e,t,n){},e.prototype.pushState=function(e,t,n){},e.prototype.forward=function(){},e.prototype.back=function(){},e}(),D=new N.InjectionToken("Location Initialized"),L=function(){function e(){}return e.prototype.path=function(e){},e.prototype.prepareExternalUrl=function(e){},e.prototype.pushState=function(e,t,n,r){},e.prototype.replaceState=function(e,t,n,r){},e.prototype.forward=function(){},e.prototype.back=function(){},e.prototype.onPopState=function(e){},e.prototype.getBaseHref=function(){},e}(),F=new N.InjectionToken("appBaseHref"),z=function(){function e(t){var n=this;this._subject=new N.EventEmitter,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(o(r)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(r(this._baseHref,o(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t){void 0===t&&(t=""),this._platformStrategy.pushState(null,"",e,t)},e.prototype.replaceState=function(e,t){void 0===t&&(t=""),this._platformStrategy.replaceState(null,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-("/"===e[n-1]?1:0);return e.slice(0,r)+e.slice(n)},e}();z.decorators=[{type:N.Injectable}],z.ctorParameters=function(){return[{type:L}]};var V=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return R.a(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=z.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+z.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+z.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(L);V.decorators=[{type:N.Injectable}],V.ctorParameters=function(){return[{type:j},{type:void 0,decorators:[{type:N.Optional},{type:N.Inject,args:[F]}]}]};var B=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return R.a(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return z.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+z.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+z.normalizeQueryParams(r));this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+z.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(L);B.decorators=[{type:N.Injectable}],B.ctorParameters=function(){return[{type:j},{type:void 0,decorators:[{type:N.Optional},{type:N.Inject,args:[F]}]}]};var H=function(){function e(){}return e.prototype.getPluralCategory=function(e){},e}(),q=function(e){function t(t){var n=e.call(this)||this;return n.locale=t,n}return R.a(t,e),t.prototype.getPluralCategory=function(e){switch(a(this.locale,e)){case U.Zero:return"zero";case U.One:return"one";case U.Two:return"two";case U.Few:return"few";case U.Many:return"many";default:return"other"}},t}(H);q.decorators=[{type:N.Injectable}],q.ctorParameters=function(){return[{type:void 0,decorators:[{type:N.Inject,args:[N.LOCALE_ID]}]}]};var U={};U.Zero=0,U.One=1,U.Two=2,U.Few=3,U.Many=4,U.Other=5,U[U.Zero]="Zero",U[U.One]="One",U[U.Two]="Two",U[U.Few]="Few",U[U.Many]="Many",U[U.Other]="Other";var $=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._applyInitialClasses(!0),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(N["ɵisListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._cleanupClasses=function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(N["ɵstringify"])(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})},e.prototype._applyClasses=function(e,t){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):Object.keys(e).forEach(function(r){null!=e[r]&&n._toggleClass(r,!t)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){n._renderer.setElementClass(n._ngEl.nativeElement,e,!!t)})},e}();$.decorators=[{type:N.Directive,args:[{selector:"[ngClass]"}]}],$.ctorParameters=function(){return[{type:N.IterableDiffers},{type:N.KeyValueDiffers},{type:N.ElementRef},{type:N.Renderer}]},$.propDecorators={klass:[{type:N.Input,args:["class"]}],ngClass:[{type:N.Input}]};var Y=function(){function e(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return e.prototype.ngOnChanges=function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(N.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(N.ComponentFactoryResolver),o=r.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,t,this.ngComponentOutletContent)}},e.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},e}();Y.decorators=[{type:N.Directive,args:[{selector:"[ngComponentOutlet]"}]}],Y.ctorParameters=function(){return[{type:N.ViewContainerRef}]},Y.propDecorators={ngComponentOutlet:[{type:N.Input}],ngComponentOutletInjector:[{type:N.Input}],ngComponentOutletContent:[{type:N.Input}],ngComponentOutletNgModuleFactory:[{type:N.Input}]};var W=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),Z=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(N.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+l(t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new W(null,t.ngForOf,-1,-1),o),a=new X(e,i);n.push(a)}else if(null==o)t._viewContainer.remove(r);else{var i=t._viewContainer.get(r);t._viewContainer.move(i,o);var a=new X(e,i);n.push(a)}});for(var r=0;r /g,">")}function S(e){Ie.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Ie.removeAttribute(e,n)});for(var t=0,n=Ie.childNodesAsList(e);t0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r-1},t}(le);Ce.decorators=[{type:L.Injectable}],Ce.ctorParameters=function(){return[{type:void 0,decorators:[{type:L.Inject,args:[W]}]},{type:ke,decorators:[{type:L.Inject,args:[xe]}]}]};var Se=["alt","control","meta","shift"],Oe={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Pe=function(e){function t(t){return e.call(this,t)||this}return j.a(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,o){var i=t.parseEventName(n),a=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(e,i.domEventName,a)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(Se.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},t.getEventFullKey=function(e){var t="",n=r().getEventKey(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Se.forEach(function(r){if(r!=n){(0,Oe[r])(e)&&(t+=r+".")}}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(le);Pe.decorators=[{type:L.Injectable}],Pe.ctorParameters=function(){return[{type:void 0,decorators:[{type:L.Inject,args:[W]}]}]};var Me=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Ee=/^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=null,Ie=null,Ae=w("area,br,col,hr,img,wbr"),Re=w("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ne=w("rp,rt"),je=x(Ne,Re),De=x(Re,w("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Le=x(Ne,w("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Fe=x(Ae,De,Le,je),ze=w("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ve=w("srcset"),Be=w("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),He=x(ze,Ve,Be),qe=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(Ie.isElementNode(t)?this.startElement(t):Ie.isTextNode(t)?this.chars(Ie.nodeValue(t)):this.sanitizedSomething=!0,Ie.firstChild(t))t=Ie.firstChild(t);else for(;t;){Ie.isElementNode(t)&&this.endElement(t);var n=k(t,Ie.nextSibling(t));if(n){t=n;break}t=k(t,Ie.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=Ie.nodeName(e).toLowerCase();if(!Fe.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),Ie.attributeMap(e).forEach(function(e,n){var r=n.toLowerCase();if(!He.hasOwnProperty(r))return void(t.sanitizedSomething=!0);ze[r]&&(e=v(e)),Ve[r]&&(e=b(e)),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(C(e)),t.buf.push('"')}),this.buf.push(">")},e.prototype.endElement=function(e){var t=Ie.nodeName(e).toLowerCase();Fe.hasOwnProperty(t)&&!Ae.hasOwnProperty(t)&&(this.buf.push(""),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(C(e))},e}(),Ue=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$e=/([^\#-~ |!])/g,Ye=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),We=/^url\(([^)]+)\)$/,Ze=function(){function e(){}return e.prototype.sanitize=function(e,t){},e.prototype.bypassSecurityTrustHtml=function(e){},e.prototype.bypassSecurityTrustStyle=function(e){},e.prototype.bypassSecurityTrustScript=function(e){},e.prototype.bypassSecurityTrustUrl=function(e){},e.prototype.bypassSecurityTrustResourceUrl=function(e){},e}(),Xe=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return j.a(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case L.SecurityContext.NONE:return t;case L.SecurityContext.HTML:return t instanceof Je?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),O(this._doc,String(t)));case L.SecurityContext.STYLE:return t instanceof Ke?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),M(t));case L.SecurityContext.SCRIPT:if(t instanceof Qe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case L.SecurityContext.URL:return t instanceof tt||t instanceof et?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),v(String(t)));case L.SecurityContext.RESOURCE_URL:if(t instanceof tt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof Ge)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new Je(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new Ke(e)},t.prototype.bypassSecurityTrustScript=function(e){return new Qe(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new et(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new tt(e)},t}(Ze);Xe.decorators=[{type:L.Injectable}],Xe.ctorParameters=function(){return[{type:void 0,decorators:[{type:L.Inject,args:[W]}]}]};var Ge=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.getTypeName=function(){},e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j.a(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Ge),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j.a(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Ge),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j.a(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Ge),et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j.a(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Ge),tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j.a(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Ge),nt=[{provide:L.PLATFORM_ID,useValue:D["ɵPLATFORM_BROWSER_ID"]},{provide:L.PLATFORM_INITIALIZER,useValue:E,multi:!0},{provide:D.PlatformLocation,useClass:Z},{provide:W,useFactory:I,deps:[]}],rt=[{provide:L.Sanitizer,useExisting:Ze},{provide:Ze,useClass:Xe}],ot=Object(L.createPlatformFactory)(L.platformCore,"browser",nt),it=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return e.withServerTransition=function(t){return{ngModule:e,providers:[{provide:L.APP_ID,useValue:t.appId},{provide:G,useExisting:L.APP_ID},J]}},e}();it.decorators=[{type:L.NgModule,args:[{providers:[rt,{provide:L.ErrorHandler,useFactory:T,deps:[]},{provide:ae,useClass:_e,multi:!0},{provide:ae,useClass:Pe,multi:!0},{provide:ae,useClass:Ce,multi:!0},{provide:xe,useClass:ke},ge,{provide:L.RendererFactory2,useExisting:ge},{provide:ue,useExisting:ce},ce,L.Testability,se,ie,X,Q],exports:[D.CommonModule,L.ApplicationModule]}]}],it.ctorParameters=function(){return[{type:it,decorators:[{type:L.Optional},{type:L.SkipSelf}]}]};var at="undefined"!=typeof window&&window||{},st=function(){function e(e,t){this.msPerTick=e,this.numTicks=t}return e}(),lt=function(){function e(e){this.appRef=e.injector.get(L.ApplicationRef)}return e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=null!=at.console.profile;t&&n&&at.console.profile("Change Detection");for(var o=r().performanceNow(),i=0;i<5||r().performanceNow()-o<500;)this.appRef.tick(),i++;var a=r().performanceNow();t&&n&&at.console.profileEnd("Change Detection");var s=(a-o)/i;return at.console.log("ran "+i+" change detection cycles"),at.console.log(s.toFixed(2)+" ms per check"),new st(s,i)},e}(),ut="profiler",ct=function(){function e(){}return e.all=function(){return function(e){return!0}},e.css=function(e){return function(t){return null!=t.nativeElement&&r().elementMatches(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}(),pt=new L.Version("4.4.6")},function(e,t,n){"use strict";function r(e){return e.discriminator||e["x-extendedDiscriminator"]}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(443),a=n(41),s=n(88),l=n(91),u=n(231),c=n(29),p=n(7),d=n(73),f=function(){function e(e){this._schema={},this.spec=new l.BehaviorSubject(null),this.options=e.options}return e.prototype.load=function(e){var t=this;return new Promise(function(n,r){t.parser=new i,t.parser.bundle(e,{http:{withCredentials:!1}}).then(function(o){"string"==typeof e&&(t.specUrl=e),t.rawSpec=o,t._schema=c.snapshot(o);try{t.init(),t.spec.next(t._schema),n(t._schema)}catch(e){r(e)}},function(e){return r(e)})})},e.prototype.init=function(){var e,t=this.specUrl?s.parse(s.resolve(window.location.href,this.specUrl)):{protocol:window.location.protocol,host:window.location.host},n=this._schema.schemes;n&&n.length?"http"===(e=n[0])&&n.indexOf("https")>=0&&(e="https"):e=t.protocol?t.protocol.slice(0,-1):"http";var r=this._schema.host||t.host;this.basePath=this._schema.basePath||"",this.apiUrl=e+"://"+r+this.basePath,this.apiProtocol=e,this.apiUrl.endsWith("/")&&(this.apiUrl=this.apiUrl.substr(0,this.apiUrl.length-1)),this.preprocess()},e.prototype.preprocess=function(){var e=new u.MdRenderer;if(!this._schema.info)throw Error('Specification Error: Required field "info" is not specified at the top level of the specification');if(this._schema.info.description||(this._schema.info.description=""),this._schema.securityDefinitions&&!this.options.noAutoAuth){var t=n(148).SecurityDefinitions;e.addPreprocessor(t.insertTagIntoDescription)}this._schema.info["x-redoc-html-description"]=e.renderMd(this._schema.info.description),this._schema.info["x-redoc-markdown-headers"]=e.headings},Object.defineProperty(e.prototype,"schema",{get:function(){return this._schema},set:function(e){this._schema=e,this.spec.next(this._schema)},enumerable:!0,configurable:!0}),e.prototype.byPointer=function(e){var t=null;if(void 0==e)return null;try{t=a.JsonPointer.get(this._schema,decodeURIComponent(e))}catch(n){"#"!==e.charAt(0)&&(e="#"+e);try{t=this.parser.$refs.get(decodeURIComponent(e))}catch(e){}}return t},e.prototype.resolveRefs=function(e){var t=this;return Object.keys(e).forEach(function(n){if(e[n].$ref){var r=t.byPointer(e[n].$ref);r._pointer=e[n].$ref,e[n]=r}}),e},e.prototype.getOperationParams=function(e){function t(e,t){if(!Array.isArray(e))throw new Error("parameters must be an array. Got "+typeof e+" at "+t);return e.map(function(e,n){return e._pointer=a.JsonPointer.join(t,n),e})}"parameters"===a.JsonPointer.baseName(e)&&(e=a.JsonPointer.dirName(e));var n=a.JsonPointer.join(a.JsonPointer.dirName(e),["parameters"]),r=this.byPointer(n)||[],o=a.JsonPointer.join(e,["parameters"]),i=this.byPointer(o)||[],s={};return i.forEach(function(e){return s[e.name]=!0}),r=r.filter(function(e){return!s[e.name]}),r=t(r,n),i=t(i,o),i=this.resolveRefs(i),r=this.resolveRefs(r),i.concat(r)},e.prototype.getTagsMap=function(){for(var e=this._schema.tags||[],t={},n=0,r=e;n-1&&i.push({name:a.JsonPointer.baseName(e),$ref:e})}var l,u=r["x-extendedDiscriminator"];if(r["x-derived-from"]){l=[e].concat(r["x-derived-from"].filter(function(e){if(!e)return!1;var t=n.byPointer(e);return t&&t.discriminator}))}else l=[e];for(var c=0,p=Object.keys(o);c=0)return"break"}(b))break}if(!(m<0)){var _=void 0;if(u){for(var w=h.allOf||[],x=0,k=w;x0?o(r(e),9007199254740991):0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11);t.SpecManager=r.SpecManager;var o=function(){function e(e){this.specMgr=e,this.componentSchema=null,this.dereferencedCache={}}return e.prototype.ngOnInit=function(){this.preinit()},e.prototype.preinit=function(){this.componentSchema=this.specMgr.byPointer(this.pointer||""),this.init()},e.prototype.ngOnDestroy=function(){this.destroy()},e.prototype.init=function(){},e.prototype.destroy=function(){},e}();t.BaseComponent=o;var i=function(e){function t(t,n){var r=e.call(this,t)||this;return r.specMgr=t,r.app=n,r}return __extends(t,e),t.prototype.subscribeForSearch=function(){var e=this;this.searchSubscription=this.app.searchContainingPointers.subscribe(function(t){for(var n=0;n=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function u(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function c(e,t){var n=0;return i(v,t)?v[t]:35===t.charCodeAt(0)&&y.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),l(n))?u(n):e}function p(e){return e.indexOf("&")<0?e:e.replace(m,c)}function d(e){return w[e]}function f(e){return b.test(e)?e.replace(_,d):e}var h=Object.prototype.hasOwnProperty,g=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,m=/&([a-z#][a-z0-9]{1,31});/gi,y=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,v=n(232),b=/[&<>"]/,_=/[&<>"]/g,w={"&":"&","<":"<",">":">",'"':"""};t.assign=a,t.isString=o,t.has=i,t.unescapeMd=s,t.isValidEntityCode=l,t.fromCodePoint=u,t.replaceEntities=p,t.escapeHtml=f},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(5),o=n(25),i=n(19),a=n(56)("src"),s=Function.toString,l=(""+s).split("toString");n(8).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(0),o=n(3),i=n(45),a=/"/g,s=function(e,t,n,r){var o=String(i(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+""+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";(function(e){function r(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(r()=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),i.alloc(+e)}function m(e,t){if(i.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,o);if("number"==typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,o){function i(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(o){var c=-1;for(u=n;us&&(n=s-l),u=n;u>=0;u--){for(var p=!0,d=0;do&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:i>223?3:i>191?2:1;if(o+s<=n){var l,u,c,p;switch(s){case 1:i<128&&(a=i);break;case 2:l=e[o+1],128==(192&l)&&(p=(31&i)<<6|63&l)>127&&(a=p);break;case 3:l=e[o+1],u=e[o+2],128==(192&l)&&128==(192&u)&&(p=(15&i)<<12|(63&l)<<6|63&u)>2047&&(p<55296||p>57343)&&(a=p);break;case 4:l=e[o+1],u=e[o+2],c=e[o+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(p=(15&i)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&p<1114112&&(a=p)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return E(r)}function E(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,o,a){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function F(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,r,o){return o||F(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return o||F(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,n,r,52,8),n+8}function B(e){if(e=H(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function H(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function q(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function $(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function W(e){return G.toByteArray(B(e))}function Z(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function X(e){return e!==e}var G=n(444),J=n(445),K=n(446);t.Buffer=i,t.SlowBuffer=g,t.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return a(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return l(null,e,t,n)},i.allocUnsafe=function(e){return u(null,e)},i.allocUnsafeSlow=function(e){return u(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},i.prototype.compare=function(e,t,n,r,o){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,s=n-t,l=Math.min(a,s),u=this.slice(r,o),c=e.slice(t,n),p=0;po)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)r+=this[e+--t]*o;return r},i.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i=o&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),J.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),J.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),J.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),J.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){j(this,e,t,n,Math.pow(2,8*n)-1,0)}var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a";return this.unstrustedSpec?n:this.sanitizer.bypassSecurityTrustHtml(n)},e=t=__decorate([r.Pipe({name:"marked"}),__metadata("design:paramtypes",[o.DomSanitizer,l.OptionsService])],e);var t}();t.MarkedPipe=d;var f=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return i.isBlank(e)?e:i.isString(e)?this.sanitizer.bypassSecurityTrustHtml(e):e},e=__decorate([r.Pipe({name:"safe"}),__metadata("design:paramtypes",[o.DomSanitizer])],e)}();t.SafePipe=f;var h={"c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim"},g=function(){function e(e){this.sanitizer=e}return t=e,e.prototype.transform=function(e,n){if(i.isBlank(n)||0===n.length)throw new u("Prism pipe requires one argument");if(i.isBlank(e))return e;if(!i.isString(e))throw new c(t,e);var r=n[0].toString().trim().toLowerCase();h[r]&&(r=h[r]);var o=Prism.languages[r];return o||(o=Prism.languages.clike),this.sanitizer.bypassSecurityTrustHtml(Prism.highlight(e,o))},e=t=__decorate([r.Pipe({name:"prism"}),__metadata("design:paramtypes",[o.DomSanitizer])],e);var t}();t.PrismPipe=g;var m=function(){function e(){}return t=e,e.prototype.transform=function(e){if(i.isBlank(e))return e;if(!i.isString(e))throw new c(t,e);return encodeURIComponent(e)},e=t=__decorate([r.Pipe({name:"encodeURIComponent"})],e);var t}();t.EncodeURIComponentPipe=m;var y={csv:"Comma Separated",ssv:"Space Separated",tsv:"Tab Separated",pipes:"Pipe Separated"},v=function(){function e(){}return e.prototype.transform=function(e){var t=e.collectionFormat;return t||(t="csv"),"multi"===t?"Multiple "+e.in+" params of":y[t]},e=__decorate([r.Pipe({name:"collectionFormat"})],e)}();t.CollectionFormatPipe=v,t.REDOC_PIPES=[d,f,g,m,s.JsonFormatter,p,v]},function(e,t,n){var r=n(12),o=n(57);e.exports=n(14)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(45);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e,t){function n(){e.classList.add("ps--focus")}function r(){e.classList.remove("ps--focus")}var o=this;o.settings=l();for(var i in t)o.settings[i]=t[i];o.containerWidth=null,o.containerHeight=null,o.contentWidth=null,o.contentHeight=null,o.isRtl="rtl"===u.css(e,"direction"),o.isNegativeScroll=function(){var t=e.scrollLeft,n=null;return e.scrollLeft=-1,n=e.scrollLeft<0,e.scrollLeft=t,n}(),o.negativeScrollAdjustment=o.isNegativeScroll?e.scrollWidth-e.clientWidth:0,o.event=new c,o.ownerDocument=e.ownerDocument||document,o.scrollbarXRail=u.appendTo(u.create("div","ps__scrollbar-x-rail"),e),o.scrollbarX=u.appendTo(u.create("div","ps__scrollbar-x"),o.scrollbarXRail),o.scrollbarX.setAttribute("tabindex",0),o.event.bind(o.scrollbarX,"focus",n),o.event.bind(o.scrollbarX,"blur",r),o.scrollbarXActive=null,o.scrollbarXWidth=null,o.scrollbarXLeft=null,o.scrollbarXBottom=s.toInt(u.css(o.scrollbarXRail,"bottom")),o.isScrollbarXUsingBottom=o.scrollbarXBottom===o.scrollbarXBottom,o.scrollbarXTop=o.isScrollbarXUsingBottom?null:s.toInt(u.css(o.scrollbarXRail,"top")),o.railBorderXWidth=s.toInt(u.css(o.scrollbarXRail,"borderLeftWidth"))+s.toInt(u.css(o.scrollbarXRail,"borderRightWidth")),u.css(o.scrollbarXRail,"display","block"),o.railXMarginWidth=s.toInt(u.css(o.scrollbarXRail,"marginLeft"))+s.toInt(u.css(o.scrollbarXRail,"marginRight")),u.css(o.scrollbarXRail,"display",""),o.railXWidth=null,o.railXRatio=null,o.scrollbarYRail=u.appendTo(u.create("div","ps__scrollbar-y-rail"),e),o.scrollbarY=u.appendTo(u.create("div","ps__scrollbar-y"),o.scrollbarYRail),o.scrollbarY.setAttribute("tabindex",0),o.event.bind(o.scrollbarY,"focus",n),o.event.bind(o.scrollbarY,"blur",r),o.scrollbarYActive=null,o.scrollbarYHeight=null,o.scrollbarYTop=null,o.scrollbarYRight=s.toInt(u.css(o.scrollbarYRail,"right")),o.isScrollbarYUsingRight=o.scrollbarYRight===o.scrollbarYRight,o.scrollbarYLeft=o.isScrollbarYUsingRight?null:s.toInt(u.css(o.scrollbarYRail,"left")),o.scrollbarYOuterWidth=o.isRtl?s.outerWidth(o.scrollbarY):null,o.railBorderYWidth=s.toInt(u.css(o.scrollbarYRail,"borderTopWidth"))+s.toInt(u.css(o.scrollbarYRail,"borderBottomWidth")),u.css(o.scrollbarYRail,"display","block"),o.railYMarginHeight=s.toInt(u.css(o.scrollbarYRail,"marginTop"))+s.toInt(u.css(o.scrollbarYRail,"marginBottom")),u.css(o.scrollbarYRail,"display",""),o.railYHeight=null,o.railYRatio=null}function o(e){return e.getAttribute("data-ps-id")}function i(e,t){e.setAttribute("data-ps-id",t)}function a(e){e.removeAttribute("data-ps-id")}var s=n(51),l=n(589),u=n(65),c=n(590),p=n(591),d={};t.add=function(e,t){var n=p();return i(e,n),d[n]=new r(e,t),d[n]},t.remove=function(e){delete d[o(e)],a(e)},t.get=function(e){return d[o(e)]}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";function r(e){return JSON.stringify(e)}function o(e){return"string"==typeof e}function i(e){return"function"==typeof e}function a(e){return void 0==e}function s(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function l(e,t){return e.reduce(function(e,n){return w.call(e,n[t])?e[n[t]].push(n):e[n[t]]=[n],e},{})}function u(e,t){if(void 0===t&&(t=!1),"default"===e)return t?"error":"success";if(e<100||e>599)throw new Error("invalid HTTP code");var n="success";return e>=300&&e<400?n="redirect":e>=400?n="error":e<200&&(n="info"),n}function c(e,t){for(var n=Object.keys(t),r=-1,o=n.length;++r0||function(e){return"[object SafariRemoteNotification]"===e.toString()}(!window.safari||safari.pushNotification),t.snapshot=h,t.isJsonLike=g,t.isXmlLike=m,t.isTextLike=y,t.getJsonLikeSample=v,t.getXmlLikeSample=b,t.getTextLikeSample=_},function(e,t,n){var r=n(75),o=n(45);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(19),o=n(26),i=n(122)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(58),o=n(75),i=n(26),a=n(15),s=n(253);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,p=6==e,d=5==e||p,f=t||s;return function(t,s,h){for(var g,m,y=i(t),v=o(y),b=r(s,h,3),_=a(v.length),w=0,x=n?f(t,_):l?f(t,0):void 0;_>w;w++)if((d||w in v)&&(g=v[w],m=b(g,w,y),e))if(n)x[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:x.push(g)}else if(c)return!1;return p?-1:u||c?c:x}}},function(e,t,n){var r=n(0),o=n(8),i=n(3);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){g&&f&&(g=!1,f.length?h=f.concat(h):m=-1,h.length&&s())}function s(){if(!g){var e=o(a);g=!0;for(var t=h.length;t;){for(f=h,h=[];++m1)for(var n=1;n0?r:n)(e)}},function(e,t,n){var r=n(101),o=n(57),i=n(30),a=n(44),s=n(19),l=n(175),u=Object.getOwnPropertyDescriptor;t.f=n(14)?u:function(e,t){if(e=i(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";if(n(14)){var r=n(78),o=n(5),i=n(3),a=n(0),s=n(107),l=n(141),u=n(58),c=n(77),p=n(57),d=n(25),f=n(76),h=n(37),g=n(15),m=n(206),y=n(55),v=n(44),b=n(19),_=n(126),w=n(4),x=n(26),k=n(124),C=n(53),S=n(31),O=n(59).f,P=n(125),M=n(56),E=n(9),T=n(32),I=n(121),A=n(207),R=n(106),N=n(67),j=n(128),D=n(80),L=n(138),F=n(204),z=n(12),V=n(38),B=z.f,H=V.f,q=o.RangeError,U=o.TypeError,$=o.Uint8Array,Y=Array.prototype,W=l.ArrayBuffer,Z=l.DataView,X=T(0),G=T(2),J=T(3),K=T(4),Q=T(5),ee=T(6),te=I(!0),ne=I(!1),re=R.values,oe=R.keys,ie=R.entries,ae=Y.lastIndexOf,se=Y.reduce,le=Y.reduceRight,ue=Y.join,ce=Y.sort,pe=Y.slice,de=Y.toString,fe=Y.toLocaleString,he=E("iterator"),ge=E("toStringTag"),me=M("typed_constructor"),ye=M("def_constructor"),ve=s.CONSTR,be=s.TYPED,_e=s.VIEW,we=T(1,function(e,t){return Oe(A(e,e[ye]),t)}),xe=i(function(){return 1===new $(new Uint16Array([1]).buffer)[0]}),ke=!!$&&!!$.prototype.set&&i(function(){new $(1).set({})}),Ce=function(e,t){var n=h(e);if(n<0||n%t)throw q("Wrong offset!");return n},Se=function(e){if(w(e)&&be in e)return e;throw U(e+" is not a typed array!")},Oe=function(e,t){if(!(w(e)&&me in e))throw U("It is not a typed array constructor!");return new e(t)},Pe=function(e,t){return Me(A(e,e[ye]),t)},Me=function(e,t){for(var n=0,r=t.length,o=Oe(e,r);r>n;)o[n]=t[n++];return o},Ee=function(e,t,n){B(e,t,{get:function(){return this._d[n]}})},Te=function(e){var t,n,r,o,i,a,s=x(e),l=arguments.length,c=l>1?arguments[1]:void 0,p=void 0!==c,d=P(s);if(void 0!=d&&!k(d)){for(a=d.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(p&&l>2&&(c=u(c,arguments[2],2)),t=0,n=g(s.length),o=Oe(this,n);n>t;t++)o[t]=p?c(s[t],t):s[t];return o},Ie=function(){for(var e=0,t=arguments.length,n=Oe(this,t);t>e;)n[e]=arguments[e++];return n},Ae=!!$&&i(function(){fe.call(new $(1))}),Re=function(){return fe.apply(Ae?pe.call(Se(this)):Se(this),arguments)},Ne={copyWithin:function(e,t){return F.call(Se(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return K(Se(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return L.apply(Se(this),arguments)},filter:function(e){return Pe(this,G(Se(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Se(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Se(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Se(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Se(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Se(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Se(this),arguments)},lastIndexOf:function(e){return ae.apply(Se(this),arguments)},map:function(e){return we(Se(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Se(this),arguments)},reduceRight:function(e){return le.apply(Se(this),arguments)},reverse:function(){for(var e,t=this,n=Se(t).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(e){return ce.call(Se(this),e)},subarray:function(e,t){var n=Se(this),r=n.length,o=y(e,r);return new(A(n,n[ye]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,g((void 0===t?r:y(t,r))-o))}},je=function(e,t){return Pe(this,pe.call(Se(this),e,t))},De=function(e){Se(this);var t=Ce(arguments[1],1),n=this.length,r=x(e),o=g(r.length),i=0;if(o+t>n)throw q("Wrong length!");for(;i255?255:255&r),o.v[f](n*t+o.o,r,xe)},E=function(e,t){B(e,t,{get:function(){return P(this,t)},set:function(e){return M(this,t,e)},enumerable:!0})};b?(h=n(function(e,n,r,o){c(e,h,u,"_d");var i,a,s,l,p=0,f=0;if(w(n)){if(!(n instanceof W||"ArrayBuffer"==(l=_(n))||"SharedArrayBuffer"==l))return be in n?Me(h,n):Te.call(h,n);i=n,f=Ce(r,t);var y=n.byteLength;if(void 0===o){if(y%t)throw q("Wrong length!");if((a=y-f)<0)throw q("Wrong length!")}else if((a=g(o)*t)+f>y)throw q("Wrong length!");s=a/t}else s=m(n),a=s*t,i=new W(a);for(d(e,"_d",{b:i,o:f,l:a,e:s,v:new Z(i)});p=0?e.substr(t).toLowerCase():""},t.getHash=function(e){var t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){var t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){var t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&r.browser},t.isFileSystemPath=function(e){if(r.browser)return!1;var t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){for(var t=0;to*r?t.INVIEW_POSITION.ABOVE:o*e.getBoundingClientRect().bottom<=o*r?t.INVIEW_POSITION.BELLOW:t.INVIEW_POSITION.INVIEW},e.prototype.scrollToPos=function(e){this.$scrollParent.scrollTo?this.$scrollParent.scrollTo(0,Math.floor(e)):this.$scrollParent.scrollTop=e},e.prototype.scrollTo=function(e,t){if(void 0===t&&(t=0),e){var n=e.getBoundingClientRect(),r=this.scrollY()+n.top-this.scrollYOffset()+t+1;return this.scrollToPos(r),r}},e.prototype.saveScroll=function(){var e=this._stickElement;if(e){var t=e.offsetParent;this._savedPosition=e.offsetTop+t.offsetTop}},e.prototype.setStickElement=function(e){this._stickElement=e},e.prototype.restoreScroll=function(){var e=this._stickElement;if(e){var t=e.offsetParent,n=e.offsetTop+t.offsetTop,r=this.scrollY()+(n-this._savedPosition);this.scrollToPos(r)}},e.prototype.relativeScrollPos=function(e){return-e.getBoundingClientRect().top+this.scrollYOffset()-1},e.prototype.scrollHandler=function(e){var t=this.scrollY()-this.prevOffsetY>0;this.prevOffsetY=this.scrollY(),this.scroll.next({isScrolledDown:t,evt:e})},e.prototype.bind=function(){var e=this;this.prevOffsetY=this.scrollY(),this._cancel=o.BrowserDomAdapter.onAndCancel(this.$scrollParent,"scroll",a.throttle(function(t){e.scrollHandler(t)},100,this))},e.prototype.unbind=function(){this._cancel()},e=__decorate([r.Injectable(),__metadata("design:paramtypes",[i.OptionsService])],e)}();t.ScrollService=s},function(e,t,n){"use strict";function r(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function o(e,t){var n={width:t.railXWidth};t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-e.scrollTop:n.top=t.scrollbarXTop+e.scrollTop,a.css(t.scrollbarXRail,n);var r={top:e.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft,a.css(t.scrollbarYRail,r),a.css(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),a.css(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}var i=n(51),a=n(65),s=n(27),l=n(52);e.exports=function(e){var t=s.get(e);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight;var n;e.contains(t.scrollbarXRail)||(n=a.queryChildren(e,".ps__scrollbar-x-rail"),n.length>0&&n.forEach(function(e){a.remove(e)}),a.appendTo(t.scrollbarXRail,e)),e.contains(t.scrollbarYRail)||(n=a.queryChildren(e,".ps__scrollbar-y-rail"),n.length>0&&n.forEach(function(e){a.remove(e)}),a.appendTo(t.scrollbarYRail,e)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),o(e,t),t.scrollbarXActive?e.classList.add("ps--active-x"):(e.classList.remove("ps--active-x"),t.scrollbarXWidth=0,t.scrollbarXLeft=0,l(e,"left",0)),t.scrollbarYActive?e.classList.add("ps--active-y"):(e.classList.remove("ps--active-y"),t.scrollbarYHeight=0,t.scrollbarYTop=0,l(e,"top",0))}},function(e,t,n){var r=n(4);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(56)("meta"),o=n(4),i=n(19),a=n(12).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(3)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},f=function(e){return u&&h.NEED&&l(e)&&!i(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:d,onFreeze:f}},function(e,t,n){"use strict";var r=n(84),o=n(419),i=n(212),a=n(423),s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=o.toSubscriber(e,t,n);if(r?r.call(i,this.source):i.add(this.source||!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var o;o=n.subscribe(function(t){if(o)try{e(t)}catch(e){r(e),o.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[i.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t0&&(c=e.exports.formatter.apply(null,u)),n&&n.message&&(c+=(c?" \n":"")+n.message);var p=new t(c);return o(p,n),i(p),a(p,r),p}}function o(e,t){u(e,t),a(e,t)}function i(e){e.toJSON=s,e.inspect=l}function a(e,t){if(t&&"object"==typeof t)for(var n=Object.keys(t),r=0;r=0))try{e[o]=t[o]}catch(e){}}}function s(){var e={},t=Object.keys(this);t=t.concat(v);for(var n=0;n=0)return t.splice(n,1),t.join("\n")}return e}}function d(e){if(!b)return!1;var t=Object.getOwnPropertyDescriptor(e,"stack");return!!t&&"function"==typeof t.get}function f(e,t){var n=Object.getOwnPropertyDescriptor(e,"stack");Object.defineProperty(e,"stack",{get:function(){return c(n.get.apply(e),t.stack)},enumerable:!1,configurable:!0})}function h(e){var t=Object.getOwnPropertyDescriptor(e,"stack");Object.defineProperty(e,"stack",{get:function(){return p(t.get.apply(e))},enumerable:!1,configurable:!0})}var g=n(474),m=Array.prototype.slice,y=["name","message","stack"],v=["name","message","description","number","code","fileName","lineNumber","columnNumber","sourceURL","line","column","stack"];e.exports=r(Error),e.exports.error=r(Error),e.exports.eval=r(EvalError),e.exports.range=r(RangeError),e.exports.reference=r(ReferenceError),e.exports.syntax=r(SyntaxError),e.exports.type=r(TypeError),e.exports.uri=r(URIError),e.exports.formatter=g;var b=function(){return!(!Object.getOwnPropertyDescriptor||!Object.defineProperty||"undefined"!=typeof navigator&&/Android/.test(navigator.userAgent))}()},function(e,t,n){"use strict";function r(e){var t,n=["ps--in-scrolling"];return t=void 0===e?["ps--x","ps--y"]:["ps--"+e],n.concat(t)}var o=n(65),i=t.toInt=function(e){return parseInt(e,10)||0};t.isEditable=function(e){return o.matches(e,"input,[contenteditable]")||o.matches(e,"select,[contenteditable]")||o.matches(e,"textarea,[contenteditable]")||o.matches(e,"button,[contenteditable]")},t.removePsClasses=function(e){for(var t=0;t=i.contentHeight-i.containerHeight&&(n=i.contentHeight-i.containerHeight,n-e.scrollTop<=2?n=e.scrollTop:e.scrollTop=n,e.dispatchEvent(o("ps-y-reach-end"))),"left"===t&&n>=i.contentWidth-i.containerWidth&&(n=i.contentWidth-i.containerWidth,n-e.scrollLeft<=2?n=e.scrollLeft:e.scrollLeft=n,e.dispatchEvent(o("ps-x-reach-end"))),void 0===i.lastTop&&(i.lastTop=e.scrollTop),void 0===i.lastLeft&&(i.lastLeft=e.scrollLeft),"top"===t&&ni.lastTop&&e.dispatchEvent(o("ps-scroll-down")),"left"===t&&ni.lastLeft&&e.dispatchEvent(o("ps-scroll-right")),"top"===t&&n!==i.lastTop&&(e.scrollTop=i.lastTop=n,e.dispatchEvent(o("ps-scroll-y"))),"left"===t&&n!==i.lastLeft&&(e.scrollLeft=i.lastLeft=n,e.dispatchEvent(o("ps-scroll-x")))}},function(e,t,n){var r=n(2),o=n(177),i=n(123),a=n(122)("IE_PROTO"),s=function(){},l=function(){var e,t=n(176)("iframe"),r=i.length;for(t.style.display="none",n(179).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("
-
-
-