upgrade with bootstrap 5.2
This commit is contained in:
Vendored
+10878
File diff suppressed because it is too large
Load Diff
@@ -1,56 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
/*!
|
||||
* CoreUI Plugins - Chart.js for CoreUI 3
|
||||
* @version vv2.0.0-beta.0
|
||||
* @link https://coreui.io
|
||||
* Copyright (c) 2019 creativeLabs Łukasz Holeczek
|
||||
* Licensed under MIT (https://coreui.io/license/plugins/chart.js)
|
||||
*/
|
||||
.c-chartjs-tooltip {
|
||||
position: absolute;
|
||||
z-index: 1021;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
padding: 0.25rem 0.5rem;
|
||||
color: #fff;
|
||||
pointer-events: none;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
opacity: 0;
|
||||
transition: all 0.25s ease;
|
||||
-webkit-transform: translate(-50%, 0);
|
||||
transform: translate(-50%, 0);
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.c-chartjs-tooltip .c-tooltip-header {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.c-chartjs-tooltip .c-tooltip-header-item {
|
||||
font-size: 0.765625rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.c-chartjs-tooltip .c-tooltip-body-item {
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
font-size: 0.765625rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.c-chartjs-tooltip .c-tooltip-body-item-color {
|
||||
display: inline-block;
|
||||
width: 0.875rem;
|
||||
height: 0.875rem;
|
||||
margin-right: 0.875rem;
|
||||
}
|
||||
|
||||
.c-chartjs-tooltip .c-tooltip-body-item-value {
|
||||
padding-left: 1rem;
|
||||
margin-left: auto;
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -1,688 +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: .75em;
|
||||
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; }
|
||||
|
||||
.select2-container--coreui .select2-selection--single {
|
||||
height: calc(1.5em + .75rem + 2px) !important
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--single .select2-selection__placeholder {
|
||||
color: #757575;
|
||||
line-height: calc(1.5em + .75rem)
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--single .select2-selection__arrow {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 3px;
|
||||
width: 20px
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--single .select2-selection__arrow b {
|
||||
top: 60%;
|
||||
border-color: #636f83 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--single .select2-selection__rendered {
|
||||
line-height: calc(1.5em + .75rem)
|
||||
}
|
||||
|
||||
.select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid;
|
||||
border-radius: .25rem;
|
||||
border-color: #d8dbe0
|
||||
}
|
||||
|
||||
.select2-results__message {
|
||||
color: #3c4b64
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--multiple {
|
||||
min-height: calc(1.5em + .75rem + 2px) !important
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--multiple .select2-selection__rendered {
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 5px;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--multiple .select2-selection__rendered .select2-search__field {
|
||||
background-color: #fff;
|
||||
color: #768192
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--multiple .select2-selection__choice {
|
||||
border: 1px solid;
|
||||
border-radius: .2rem;
|
||||
padding: 0;
|
||||
padding-right: 5px;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
margin-top: 0.3em;
|
||||
margin-right: 5px;
|
||||
color: #768192;
|
||||
border-color: #39f
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--multiple .select2-selection__choice__remove {
|
||||
width: 26px;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-right: .375rem;
|
||||
border-right: 1px solid;
|
||||
background: #fff;
|
||||
color: #9cf;
|
||||
border-color: #39f;
|
||||
background: rgba(51, 153, 255, 0)
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #39f;
|
||||
background: rgba(51, 153, 255, 0.1)
|
||||
}
|
||||
|
||||
.select2-container {
|
||||
display: block
|
||||
}
|
||||
|
||||
.select2-container *:focus {
|
||||
outline: 0
|
||||
}
|
||||
|
||||
.input-group .select2-container--coreui {
|
||||
-ms-flex-positive: 1;
|
||||
flex-grow: 1
|
||||
}
|
||||
|
||||
.input-group-prepend ~ .select2-container--coreui .select2-selection {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection {
|
||||
border: 1px solid;
|
||||
border-radius: .25rem;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
border-color: #d8dbe0
|
||||
}
|
||||
|
||||
.select2-container--coreui.select2-container--focus .select2-selection {
|
||||
border-color: #39f;
|
||||
box-shadow: 0 0 0 .2rem rgba(50, 31, 219, 0.25)
|
||||
}
|
||||
|
||||
.select2-container--coreui.select2-container--focus.select2-container--open .select2-selection {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0
|
||||
}
|
||||
|
||||
.select2-container--coreui.select2-container--disabled .select2-selection,
|
||||
.select2-container--coreui.select2-container--disabled.select2-container--focus .select2-selection {
|
||||
cursor: not-allowed;
|
||||
box-shadow: none;
|
||||
background-color: #d8dbe0;
|
||||
border-color: #d8dbe0
|
||||
}
|
||||
|
||||
.select2-container--coreui.select2-container--disabled .select2-search__field,
|
||||
.select2-container--coreui.select2-container--disabled.select2-container--focus .select2-search__field {
|
||||
background-color: transparent
|
||||
}
|
||||
|
||||
select.is-invalid ~ .select2-container--coreui .select2-selection {
|
||||
border-color: #e55353
|
||||
}
|
||||
|
||||
select.is-valid ~ .select2-container--coreui .select2-selection {
|
||||
border-color: #2eb85c
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-dropdown {
|
||||
background-color: #fff;
|
||||
border-color: #d8dbe0;
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-dropdown.select2-dropdown--above {
|
||||
border-top: 1px solid;
|
||||
border-top-left-radius: .25rem;
|
||||
border-top-right-radius: .25rem;
|
||||
border-color: #d8dbe0
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-dropdown .select2-results__option[aria-selected=true] {
|
||||
background-color: #f2f2f2
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-results__option--highlighted,
|
||||
.select2-container--coreui .select2-results__option--highlighted.select2-results__option[aria-selected=true] {
|
||||
background-color: #321fdb;
|
||||
color: #ebedef
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-results__option[role=group] {
|
||||
padding: 0
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-results>.select2-results__options {
|
||||
max-height: 15em;
|
||||
overflow-y: auto
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-results__group {
|
||||
padding: 6px;
|
||||
display: list-item;
|
||||
color: #3c4b64
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection__clear {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
line-height: 1.15em;
|
||||
padding-left: 0.3em;
|
||||
margin-top: 0.5em;
|
||||
border-radius: 100%;
|
||||
background-color: #3c4b64;
|
||||
color: #ebedef;
|
||||
float: right;
|
||||
margin-right: 0.3em
|
||||
}
|
||||
|
||||
.select2-container--coreui .select2-selection__clear:hover {
|
||||
background-color: #636f83
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
@charset "UTF-8";
|
||||
/*!
|
||||
* CoreUI Plugins - Chart.js for CoreUI 3
|
||||
* @version v3.0.0
|
||||
* @link https://coreui.io
|
||||
* Copyright (c) 2021 creativeLabs Łukasz Holeczek
|
||||
* Licensed under MIT (https://coreui.io/license/plugins/chart.js)
|
||||
*/
|
||||
.chartjs-tooltip {
|
||||
position: absolute;
|
||||
z-index: 1021;
|
||||
padding: 0.25rem 0.5rem;
|
||||
color: #fff;
|
||||
pointer-events: none;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
opacity: 0;
|
||||
transition: all 0.15s ease;
|
||||
transform: translate(-50%, 0);
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.chartjs-tooltip {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
.chartjs-tooltip-header {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.chartjs-tooltip-header-item {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.chartjs-tooltip-body-item {
|
||||
align-items: center;
|
||||
font-size: 0.875rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
+13807
-13235
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,328 @@
|
||||
@charset "UTF-8";
|
||||
table.dataTable th.dt-left,
|
||||
table.dataTable td.dt-left {
|
||||
text-align: left;
|
||||
}
|
||||
table.dataTable th.dt-center,
|
||||
table.dataTable td.dt-center,
|
||||
table.dataTable td.dataTables_empty {
|
||||
text-align: center;
|
||||
}
|
||||
table.dataTable th.dt-right,
|
||||
table.dataTable td.dt-right {
|
||||
text-align: right;
|
||||
}
|
||||
table.dataTable th.dt-justify,
|
||||
table.dataTable td.dt-justify {
|
||||
text-align: justify;
|
||||
}
|
||||
table.dataTable th.dt-nowrap,
|
||||
table.dataTable td.dt-nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
table.dataTable thead th.dt-head-left,
|
||||
table.dataTable thead td.dt-head-left,
|
||||
table.dataTable tfoot th.dt-head-left,
|
||||
table.dataTable tfoot td.dt-head-left {
|
||||
text-align: left;
|
||||
}
|
||||
table.dataTable thead th.dt-head-center,
|
||||
table.dataTable thead td.dt-head-center,
|
||||
table.dataTable tfoot th.dt-head-center,
|
||||
table.dataTable tfoot td.dt-head-center {
|
||||
text-align: center;
|
||||
}
|
||||
table.dataTable thead th.dt-head-right,
|
||||
table.dataTable thead td.dt-head-right,
|
||||
table.dataTable tfoot th.dt-head-right,
|
||||
table.dataTable tfoot td.dt-head-right {
|
||||
text-align: right;
|
||||
}
|
||||
table.dataTable thead th.dt-head-justify,
|
||||
table.dataTable thead td.dt-head-justify,
|
||||
table.dataTable tfoot th.dt-head-justify,
|
||||
table.dataTable tfoot td.dt-head-justify {
|
||||
text-align: justify;
|
||||
}
|
||||
table.dataTable thead th.dt-head-nowrap,
|
||||
table.dataTable thead td.dt-head-nowrap,
|
||||
table.dataTable tfoot th.dt-head-nowrap,
|
||||
table.dataTable tfoot td.dt-head-nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
table.dataTable tbody th.dt-body-left,
|
||||
table.dataTable tbody td.dt-body-left {
|
||||
text-align: left;
|
||||
}
|
||||
table.dataTable tbody th.dt-body-center,
|
||||
table.dataTable tbody td.dt-body-center {
|
||||
text-align: center;
|
||||
}
|
||||
table.dataTable tbody th.dt-body-right,
|
||||
table.dataTable tbody td.dt-body-right {
|
||||
text-align: right;
|
||||
}
|
||||
table.dataTable tbody th.dt-body-justify,
|
||||
table.dataTable tbody td.dt-body-justify {
|
||||
text-align: justify;
|
||||
}
|
||||
table.dataTable tbody th.dt-body-nowrap,
|
||||
table.dataTable tbody td.dt-body-nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
table.dataTable td.dt-control {
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
table.dataTable td.dt-control:before {
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
margin-top: -9px;
|
||||
display: inline-block;
|
||||
color: white;
|
||||
border: 0.15em solid white;
|
||||
border-radius: 1em;
|
||||
box-shadow: 0 0 0.2em #444;
|
||||
box-sizing: content-box;
|
||||
text-align: center;
|
||||
text-indent: 0 !important;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
line-height: 1em;
|
||||
content: "+";
|
||||
background-color: #31b131;
|
||||
}
|
||||
table.dataTable tr.dt-hasChild td.dt-control:before {
|
||||
content: "-";
|
||||
background-color: #d33333;
|
||||
}
|
||||
|
||||
/*! Bootstrap 5 integration for DataTables
|
||||
*
|
||||
* ©2020 SpryMedia Ltd, all rights reserved.
|
||||
* License: MIT datatables.net/license/mit
|
||||
*/
|
||||
table.dataTable {
|
||||
clear: both;
|
||||
margin-top: 6px !important;
|
||||
margin-bottom: 6px !important;
|
||||
max-width: none !important;
|
||||
border-collapse: separate !important;
|
||||
border-spacing: 0;
|
||||
}
|
||||
table.dataTable td,
|
||||
table.dataTable th {
|
||||
-webkit-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
table.dataTable td.dataTables_empty,
|
||||
table.dataTable th.dataTables_empty {
|
||||
text-align: center;
|
||||
}
|
||||
table.dataTable.nowrap th,
|
||||
table.dataTable.nowrap td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
div.dataTables_wrapper div.dataTables_length label {
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_length select {
|
||||
width: auto;
|
||||
display: inline-block;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_filter {
|
||||
text-align: right;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_filter label {
|
||||
font-weight: normal;
|
||||
white-space: nowrap;
|
||||
text-align: left;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_filter input {
|
||||
margin-left: 0.5em;
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_info {
|
||||
padding-top: 0.85em;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_paginate {
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
text-align: right;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
|
||||
margin: 2px 0;
|
||||
white-space: nowrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_processing {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 200px;
|
||||
margin-left: -100px;
|
||||
margin-top: -26px;
|
||||
text-align: center;
|
||||
padding: 1em 0;
|
||||
}
|
||||
|
||||
table.dataTable > thead > tr > th:active,
|
||||
table.dataTable > thead > tr > td:active {
|
||||
outline: none;
|
||||
}
|
||||
table.dataTable > thead > tr > th:not(.sorting_disabled),
|
||||
table.dataTable > thead > tr > td:not(.sorting_disabled) {
|
||||
padding-right: 30px;
|
||||
}
|
||||
table.dataTable > thead .sorting,
|
||||
table.dataTable > thead .sorting_asc,
|
||||
table.dataTable > thead .sorting_desc,
|
||||
table.dataTable > thead .sorting_asc_disabled,
|
||||
table.dataTable > thead .sorting_desc_disabled {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
}
|
||||
table.dataTable > thead .sorting:before, table.dataTable > thead .sorting:after,
|
||||
table.dataTable > thead .sorting_asc:before,
|
||||
table.dataTable > thead .sorting_asc:after,
|
||||
table.dataTable > thead .sorting_desc:before,
|
||||
table.dataTable > thead .sorting_desc:after,
|
||||
table.dataTable > thead .sorting_asc_disabled:before,
|
||||
table.dataTable > thead .sorting_asc_disabled:after,
|
||||
table.dataTable > thead .sorting_desc_disabled:before,
|
||||
table.dataTable > thead .sorting_desc_disabled:after {
|
||||
position: absolute;
|
||||
bottom: 0.5em;
|
||||
display: block;
|
||||
opacity: 0.3;
|
||||
}
|
||||
table.dataTable > thead .sorting:before,
|
||||
table.dataTable > thead .sorting_asc:before,
|
||||
table.dataTable > thead .sorting_desc:before,
|
||||
table.dataTable > thead .sorting_asc_disabled:before,
|
||||
table.dataTable > thead .sorting_desc_disabled:before {
|
||||
right: 1em;
|
||||
content: "↑";
|
||||
}
|
||||
table.dataTable > thead .sorting:after,
|
||||
table.dataTable > thead .sorting_asc:after,
|
||||
table.dataTable > thead .sorting_desc:after,
|
||||
table.dataTable > thead .sorting_asc_disabled:after,
|
||||
table.dataTable > thead .sorting_desc_disabled:after {
|
||||
right: 0.5em;
|
||||
content: "↓";
|
||||
}
|
||||
table.dataTable > thead .sorting_asc:before,
|
||||
table.dataTable > thead .sorting_desc:after {
|
||||
opacity: 1;
|
||||
}
|
||||
table.dataTable > thead .sorting_asc_disabled:before,
|
||||
table.dataTable > thead .sorting_desc_disabled:after {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
div.dataTables_scrollHead table.dataTable {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
div.dataTables_scrollBody > table {
|
||||
border-top: none;
|
||||
margin-top: 0 !important;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
div.dataTables_scrollBody > table > thead .sorting:before,
|
||||
div.dataTables_scrollBody > table > thead .sorting_asc:before,
|
||||
div.dataTables_scrollBody > table > thead .sorting_desc:before,
|
||||
div.dataTables_scrollBody > table > thead .sorting:after,
|
||||
div.dataTables_scrollBody > table > thead .sorting_asc:after,
|
||||
div.dataTables_scrollBody > table > thead .sorting_desc:after {
|
||||
display: none;
|
||||
}
|
||||
div.dataTables_scrollBody > table > tbody tr:first-child th,
|
||||
div.dataTables_scrollBody > table > tbody tr:first-child td {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
div.dataTables_scrollFoot > .dataTables_scrollFootInner {
|
||||
box-sizing: content-box;
|
||||
}
|
||||
div.dataTables_scrollFoot > .dataTables_scrollFootInner > table {
|
||||
margin-top: 0 !important;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
div.dataTables_wrapper div.dataTables_length,
|
||||
div.dataTables_wrapper div.dataTables_filter,
|
||||
div.dataTables_wrapper div.dataTables_info,
|
||||
div.dataTables_wrapper div.dataTables_paginate {
|
||||
text-align: center;
|
||||
}
|
||||
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
|
||||
justify-content: center !important;
|
||||
}
|
||||
}
|
||||
table.dataTable.table-sm > thead > tr > th:not(.sorting_disabled) {
|
||||
padding-right: 20px;
|
||||
}
|
||||
table.dataTable.table-sm .sorting:before,
|
||||
table.dataTable.table-sm .sorting_asc:before,
|
||||
table.dataTable.table-sm .sorting_desc:before {
|
||||
top: 5px;
|
||||
right: 0.85em;
|
||||
}
|
||||
table.dataTable.table-sm .sorting:after,
|
||||
table.dataTable.table-sm .sorting_asc:after,
|
||||
table.dataTable.table-sm .sorting_desc:after {
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
table.table-bordered.dataTable {
|
||||
border-right-width: 0;
|
||||
}
|
||||
table.table-bordered.dataTable thead tr:first-child th,
|
||||
table.table-bordered.dataTable thead tr:first-child td {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
table.table-bordered.dataTable th,
|
||||
table.table-bordered.dataTable td {
|
||||
border-left-width: 0;
|
||||
}
|
||||
table.table-bordered.dataTable th:first-child, table.table-bordered.dataTable th:first-child,
|
||||
table.table-bordered.dataTable td:first-child,
|
||||
table.table-bordered.dataTable td:first-child {
|
||||
border-left-width: 1px;
|
||||
}
|
||||
table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable th:last-child,
|
||||
table.table-bordered.dataTable td:last-child,
|
||||
table.table-bordered.dataTable td:last-child {
|
||||
border-right-width: 1px;
|
||||
}
|
||||
table.table-bordered.dataTable th,
|
||||
table.table-bordered.dataTable td {
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
div.dataTables_scrollHead table.table-bordered {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
div.table-responsive > div.dataTables_wrapper > div.row {
|
||||
margin: 0;
|
||||
}
|
||||
div.table-responsive > div.dataTables_wrapper > div.row > div[class^=col-]:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
div.table-responsive > div.dataTables_wrapper > div.row > div[class^=col-]:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) {
|
||||
--bs-table-accent-bg: transparent;
|
||||
}
|
||||
table.dataTable.table-striped > tbody > tr.odd {
|
||||
--bs-table-accent-bg: var(--bs-table-striped-bg);
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > td.child,
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > th.child,
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty {
|
||||
cursor: default !important;
|
||||
}
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > td.child:before,
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > th.child:before,
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty:before {
|
||||
display: none !important;
|
||||
}
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
|
||||
position: relative;
|
||||
padding-left: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
|
||||
top: 50%;
|
||||
left: 5px;
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
margin-top: -9px;
|
||||
display: block;
|
||||
position: absolute;
|
||||
color: white;
|
||||
border: 0.15em solid white;
|
||||
border-radius: 1em;
|
||||
box-shadow: 0 0 0.2em #444;
|
||||
box-sizing: content-box;
|
||||
text-align: center;
|
||||
text-indent: 0 !important;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
line-height: 1em;
|
||||
content: "+";
|
||||
background-color: #0d6efd;
|
||||
}
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
|
||||
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
|
||||
content: "-";
|
||||
background-color: #d33333;
|
||||
}
|
||||
table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td.dtr-control,
|
||||
table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th.dtr-control {
|
||||
padding-left: 27px;
|
||||
}
|
||||
table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td.dtr-control:before,
|
||||
table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th.dtr-control:before {
|
||||
left: 4px;
|
||||
height: 14px;
|
||||
width: 14px;
|
||||
border-radius: 14px;
|
||||
line-height: 14px;
|
||||
text-indent: 3px;
|
||||
}
|
||||
table.dataTable.dtr-column > tbody > tr > td.dtr-control,
|
||||
table.dataTable.dtr-column > tbody > tr > th.dtr-control,
|
||||
table.dataTable.dtr-column > tbody > tr > td.control,
|
||||
table.dataTable.dtr-column > tbody > tr > th.control {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
|
||||
table.dataTable.dtr-column > tbody > tr > th.dtr-control:before,
|
||||
table.dataTable.dtr-column > tbody > tr > td.control:before,
|
||||
table.dataTable.dtr-column > tbody > tr > th.control:before {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
height: 0.8em;
|
||||
width: 0.8em;
|
||||
margin-top: -0.5em;
|
||||
margin-left: -0.5em;
|
||||
display: block;
|
||||
position: absolute;
|
||||
color: white;
|
||||
border: 0.15em solid white;
|
||||
border-radius: 1em;
|
||||
box-shadow: 0 0 0.2em #444;
|
||||
box-sizing: content-box;
|
||||
text-align: center;
|
||||
text-indent: 0 !important;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
line-height: 1em;
|
||||
content: "+";
|
||||
background-color: #0d6efd;
|
||||
}
|
||||
table.dataTable.dtr-column > tbody > tr.parent td.dtr-control:before,
|
||||
table.dataTable.dtr-column > tbody > tr.parent th.dtr-control:before,
|
||||
table.dataTable.dtr-column > tbody > tr.parent td.control:before,
|
||||
table.dataTable.dtr-column > tbody > tr.parent th.control:before {
|
||||
content: "-";
|
||||
background-color: #d33333;
|
||||
}
|
||||
table.dataTable > tbody > tr.child {
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
table.dataTable > tbody > tr.child:hover {
|
||||
background: transparent !important;
|
||||
}
|
||||
table.dataTable > tbody > tr.child ul.dtr-details {
|
||||
display: inline-block;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
table.dataTable > tbody > tr.child ul.dtr-details > li {
|
||||
border-bottom: 1px solid #efefef;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
table.dataTable > tbody > tr.child ul.dtr-details > li:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
table.dataTable > tbody > tr.child span.dtr-title {
|
||||
display: inline-block;
|
||||
min-width: 75px;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.dtr-modal {
|
||||
position: fixed;
|
||||
box-sizing: border-box;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
padding: 10em 1em;
|
||||
}
|
||||
div.dtr-modal div.dtr-modal-display {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 50%;
|
||||
height: 50%;
|
||||
overflow: auto;
|
||||
margin: auto;
|
||||
z-index: 102;
|
||||
overflow: auto;
|
||||
background-color: #f5f5f7;
|
||||
border: 1px solid black;
|
||||
border-radius: 0.5em;
|
||||
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
div.dtr-modal div.dtr-modal-content {
|
||||
position: relative;
|
||||
padding: 1em;
|
||||
}
|
||||
div.dtr-modal div.dtr-modal-close {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: 1px solid #eaeaea;
|
||||
background-color: #f9f9f9;
|
||||
text-align: center;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
z-index: 12;
|
||||
}
|
||||
div.dtr-modal div.dtr-modal-close:hover {
|
||||
background-color: #eaeaea;
|
||||
}
|
||||
div.dtr-modal div.dtr-modal-background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 101;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
div.dtr-modal div.dtr-modal-display {
|
||||
width: 95%;
|
||||
}
|
||||
}
|
||||
div.dtr-bs-modal table.table tr:first-child td {
|
||||
border-top: none;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
div.dts {
|
||||
display: block !important;
|
||||
}
|
||||
div.dts tbody th,
|
||||
div.dts tbody td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
div.dts div.dts_loading {
|
||||
z-index: 1;
|
||||
}
|
||||
div.dts div.dts_label {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
color: white;
|
||||
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
|
||||
text-align: right;
|
||||
border-radius: 3px;
|
||||
padding: 0.4em;
|
||||
z-index: 2;
|
||||
display: none;
|
||||
}
|
||||
div.dts div.dataTables_scrollBody {
|
||||
background: repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, white 10px, white 20px);
|
||||
}
|
||||
div.dts div.dataTables_scrollBody table {
|
||||
z-index: 2;
|
||||
}
|
||||
div.dts div.dataTables_paginate,
|
||||
div.dts div.dataTables_length {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.DTS div.dataTables_scrollBody table {
|
||||
background-color: white;
|
||||
}
|
||||
@@ -1,65 +1,116 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /assets/css/view.css
|
||||
Desc. : CSS Class for Normal Page
|
||||
Module : /assets/css/default.css
|
||||
Desc. : CSS Default Configuration
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : December 20th, 2007.
|
||||
Last Modified : November 24th, 2020.
|
||||
Last Modified : April 22nd, 2022.
|
||||
|
||||
(c) 2009 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2009 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
.c-main {
|
||||
padding-top: 1rem
|
||||
:root {/* ok */
|
||||
--cui-body-font-size: .95rem;
|
||||
--cui-card-color: #000;
|
||||
/*--cui-body-font-weight: 400;
|
||||
--cui-body-line-height: 1.5;
|
||||
--cui-body-color: rgba(44, 56, 74, 0.95);
|
||||
--cui-body-bg: #fff;*/
|
||||
}
|
||||
|
||||
.card-header.custom-style {
|
||||
padding: .50rem 1.25rem;
|
||||
.toast {/* ok */
|
||||
width: unset !important;
|
||||
font-size: .95rem !important;
|
||||
}
|
||||
|
||||
table.dataTable.table-bordered th, table.dataTable.table-bordered td {/* ok */
|
||||
border-width: 0 1px !important;
|
||||
}
|
||||
table.dataTable.table-bordered th {/* ok */
|
||||
font-size: 105%;
|
||||
background-color: var(--cui-gray-100, #ACACAC) !important;
|
||||
border-top-width: 1px !important;
|
||||
border-bottom-width: 1px !important;
|
||||
}
|
||||
table.dataTable.table-bordered tr:last-child td {/* ok */
|
||||
border-bottom-width: 1px !important;
|
||||
}
|
||||
table.dataTable a.fon-tabel-dt i {/* ok */
|
||||
padding-top: 2px;
|
||||
width: 1.5rem !important;
|
||||
height: 1.5rem !important;
|
||||
border: 0.15em solid white;
|
||||
border-radius: .7em;
|
||||
box-shadow: 0 0 0.2em #444;
|
||||
background-color: #31b131;
|
||||
}
|
||||
table.dataTable tr.dt-hasChild a.fon-tabel-dt i {/* ok */
|
||||
background-color: #d33333;
|
||||
}
|
||||
table.dataTable a.fon-tabel-dt:hover i, table.dataTable tr.dt-hasChild a.fon-tabel-dt:hover i {/* ok */
|
||||
color: unset;
|
||||
}
|
||||
|
||||
.card-header.custom-style {/* ok */
|
||||
padding: .5rem 1.25rem;
|
||||
background-color: #ced2d8 !important;
|
||||
text-align: center !important;
|
||||
color: #fff !important;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.card-body { padding: .75rem; }
|
||||
.table th, .table td { padding: .5rem; }
|
||||
.table-hover tbody tr:hover, .table-hover tbody tr:active { background-color: #ff9 }
|
||||
.table-hover tbody tr:hover, .table-hover tbody tr:active { background-color: var(--cui-yellow, #ff9); }/* ok */
|
||||
.table-select tbody tr { cursor: pointer }
|
||||
textarea { overflow-x: hidden }
|
||||
input[type="checkbox"][readonly] {
|
||||
pointer-events: none;
|
||||
}
|
||||
a.c-header-nav-link, a.slink, a.mlink , a.table-icon{ cursor: pointer; }
|
||||
a.table-icon {
|
||||
text-decoration: none;
|
||||
padding: 0 5px;
|
||||
div.body {/* ok */
|
||||
background-color: #ebedef;
|
||||
}
|
||||
a.table-icon:hover i {
|
||||
a.nav-link, a.slink, a.mlink , a.table-icon{ cursor: pointer; }
|
||||
a.table-icon {/* ok */
|
||||
text-decoration: none;
|
||||
padding: 0 6px;
|
||||
}
|
||||
a.table-icon:hover i {/* ok */
|
||||
color: red;
|
||||
}
|
||||
button.tbl-rowbtn {
|
||||
background-color: #93E3FF;
|
||||
padding: .2rem .5rem;
|
||||
margin-right: .2rem;
|
||||
margin-bottom: .25rem;
|
||||
button.tbl-rowbtn {/* */
|
||||
padding: .1rem .5rem;
|
||||
}
|
||||
button.tbl-rowbtn:hover {
|
||||
button.tbl-rowbtn:hover {/* ok */
|
||||
color: #fff;
|
||||
background-color: #39f;
|
||||
background-color: var(--cui-primary, #39f);
|
||||
}
|
||||
.input-group-text {
|
||||
button.tbl-rowbtn.normal {/* */
|
||||
background-color: var(--cui-cyan, #93E3FF);
|
||||
}
|
||||
.input-group-text {/* ok */
|
||||
box-shadow: none !important;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.icon-tooltip { color: var(--warning); }
|
||||
.dropdown-menu.multi-level {
|
||||
margin-top: .5rem;
|
||||
|
||||
/* navi menu */
|
||||
|
||||
.header-nav .nav-link {/* ok */
|
||||
padding-left: 1.25rem !important;
|
||||
}
|
||||
.dropdown-submenu {
|
||||
.header-nav .dropdown-menu.multi-level {/* ok */
|
||||
margin-top: .15rem !important;
|
||||
}
|
||||
.header-nav .dropdown-toggle:after {/* ok */
|
||||
border-width: .4em .4em 0 .4em;
|
||||
margin-left: .5rem !important;
|
||||
border-top-color: rgba(44, 56, 74, 0.681);
|
||||
}
|
||||
.header-nav .dropdown-submenu {/* ok */
|
||||
position: relative;
|
||||
}
|
||||
.dropdown-submenu>.dropdown-menu {
|
||||
.header-nav .dropdown-submenu>.dropdown-menu {/* ok */
|
||||
top: 0;
|
||||
left: 100%;
|
||||
margin-top: -6px;
|
||||
@@ -68,47 +119,31 @@ button.tbl-rowbtn:hover {
|
||||
-moz-border-radius: 0 6px 6px;
|
||||
border-radius: 0 6px 6px 6px;
|
||||
}
|
||||
.dropdown-submenu:hover>.dropdown-menu {
|
||||
.header-nav .dropdown-submenu:hover>.dropdown-menu {/* ok */
|
||||
display: block;
|
||||
}
|
||||
.dropdown-submenu>a:after {
|
||||
display: block;
|
||||
content: " ";
|
||||
.header-nav .dropdown-submenu>a:after {/* ok */
|
||||
float: right;
|
||||
text-align: right;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 0 5px 5px;
|
||||
border-left-color: #aaa;
|
||||
margin-top: 3px;
|
||||
margin-right: -10px;
|
||||
border-width: .4em 0 .4em .4em;
|
||||
border-left-color: rgba(44, 56, 74, 0.681);
|
||||
margin-top: 5px;
|
||||
}
|
||||
.dropdown-submenu:hover {
|
||||
.header-nav .dropdown-submenu:hover {/* ok */
|
||||
background-color: #ebedef;
|
||||
}
|
||||
.dropdown-submenu.pull-left {
|
||||
float: none;
|
||||
}
|
||||
.dropdown-submenu.pull-left>.dropdown-menu {
|
||||
left: -100%;
|
||||
margin-left: 10px;
|
||||
-webkit-border-radius: 6px 0 6px 6px;
|
||||
-moz-border-radius: 6px 0 6px 6px;
|
||||
border-radius: 6px 0 6px 6px;
|
||||
}
|
||||
.dropdown-toggle:after {
|
||||
margin-left: .45em;
|
||||
}
|
||||
.dropdown-toggle.slink:after {
|
||||
.header-nav .dropdown-toggle.slink:after {/* ok */
|
||||
margin-left: auto;
|
||||
}
|
||||
a.nav-head { font-size: 1.2em; }
|
||||
.header-nav .dropdown-menu {/* ok */
|
||||
max-height: 90vh !important;
|
||||
/*overflow-y: auto;*/
|
||||
}
|
||||
|
||||
.modal-dialog.modal-fs {
|
||||
width: 95%;
|
||||
max-width: none;
|
||||
.modal-dialog.modal-fs {/* ok */
|
||||
width: 90vw;
|
||||
max-width: unset;
|
||||
}
|
||||
.modal-header button.btn-cetak { margin-left: .5rem; }
|
||||
.modal-header button.btn-cetak:hover {
|
||||
@@ -132,32 +167,41 @@ a.nav-head { font-size: 1.2em; }
|
||||
.modal-500 { max-width: 500px; }
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.dropdown-menu { width: 200px !important; }
|
||||
@media (max-width: 991.98px) {/* ok */
|
||||
.header-nav .dropdown-menu { width: 200px !important; }
|
||||
button.tbl-rowbtn {
|
||||
margin-bottom: .25rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.dropdown-menu { width: 250px !important; }
|
||||
.c-main > .container-fluid {
|
||||
padding-right: 15px;
|
||||
padding-left: 15px
|
||||
@media (min-width: 992px) {/* ok */
|
||||
.header-nav .dropdown-menu { width: 250px !important; }
|
||||
.wrapper {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
.table thead th {
|
||||
text-align: center;
|
||||
text-align: center !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
}
|
||||
|
||||
div.dataTables_wrapper div.toolbar {
|
||||
div.dataTables_wrapper div.toolbar {/* ok */
|
||||
padding-top: 0 !important;
|
||||
margin: 2px 0;
|
||||
}
|
||||
div.dataTables_length select.form-select {/* ok */
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
table>tbody tr.rred td:not(:last-child) { background-color: #F49DA4; }
|
||||
table>tbody tr.rgreen td:not(:last-child) { background-color:#7eff6c; }
|
||||
table>tbody tr.ryellow td:not(:last-child) { background-color:#ffffa8; }
|
||||
table>tbody tr.rblue td:not(:last-child) { background-color:#9ECAF5; }
|
||||
table>tbody tr.rpurple td:not(:last-child) { background-color:#8E60EE; }
|
||||
table>tbody tr.rsuccess td:not(:last-child) { background-color: var(--cui-success); }
|
||||
table>tbody tr.rred td:not(:last-child) { background-color: var(--cui-red); }
|
||||
table>tbody tr.rgreen td:not(:last-child) { background-color: var(--cui-green); }
|
||||
table>tbody tr.ryellow td:not(:last-child) { background-color: var(--cui-yellow); }
|
||||
table>tbody tr.rblue td:not(:last-child) { background-color: var(--cui-blue); }
|
||||
table>tbody tr.rpurple td:not(:last-child) { background-color: var(--cui-purple); }
|
||||
table>tbody tr.rcoret td:not(:last-child) { background-color:#F9B5B7; text-decoration: line-through; }
|
||||
|
||||
/* compatible, delete next !
|
||||
table * .bold { font-weight: bold !important; }
|
||||
table * .left { text-align: left !important; }
|
||||
table * .right { text-align: right !important; }
|
||||
@@ -165,7 +209,16 @@ table * .center { text-align: center !important; }
|
||||
table * .wrap { white-space: normal !important; }
|
||||
table * .nowrap { white-space: nowrap !important; }
|
||||
table * .autowrap { white-space: nowrap !important; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
|
||||
table * .hidden { visibility: hidden !important; display: none !important; }
|
||||
table * .hidden { visibility: hidden !important; display: none !important; }*/
|
||||
|
||||
table * .b { font-weight: bold !important; }
|
||||
table * .l { text-align: left !important; }
|
||||
table * .r { text-align: right !important; }
|
||||
table * .c { text-align: center !important; }
|
||||
table * .wr { white-space: normal !important; }
|
||||
table * .nwr { white-space: nowrap !important; }
|
||||
table * .awr { white-space: nowrap !important; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
|
||||
table * .hid { visibility: hidden !important; display: none !important; }
|
||||
table * .nb { border: 0 !important; }
|
||||
|
||||
ul.dtr-details li.hidden { visibility: hidden !important; display: none !important; }
|
||||
@@ -178,38 +231,26 @@ ul.dtr-details li.hidden { visibility: hidden !important; display: none !importa
|
||||
}
|
||||
|
||||
.bs-fonac .dropdown-item {
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: .5rem .8rem;
|
||||
clear: both;
|
||||
font-size: .9rem;
|
||||
font-weight: 400;
|
||||
text-align: inherit;
|
||||
white-space: nowrap;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
color: #000
|
||||
color: var(--cui-dropdown-link-color, #000000);
|
||||
}
|
||||
|
||||
.bs-fonac .dropdown-item:hover, .bs-fonac .dropdown-item:focus {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
background-color: #ebedef
|
||||
color: var(--cui-white, #ffffff);
|
||||
background-color: var(--cui-blue, #ebedef);
|
||||
}
|
||||
|
||||
.bs-fonac .dropdown-item.active, .bs-fonac .dropdown-item:active {
|
||||
color: var(--cui-white, #ffffff);
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
background-color: #321fdb
|
||||
background-color: var(--cui-blue, #321fdb);
|
||||
}
|
||||
|
||||
.bs-fonac .dropdown-item.disabled, .bs-fonac .dropdown-item:disabled {
|
||||
color: var(--cui-dropdown-link-disabled-color, #8a93a2);
|
||||
pointer-events: none;
|
||||
background-color: transparent;
|
||||
color: #8a93a2
|
||||
}
|
||||
|
||||
/******************************** text field ********************************/
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
table.dataTable.dtr-inline.collapsed>tbody>tr>td.child,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty{cursor:default !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty:before{display:none !important}table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td.dtr-control,table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th.dtr-control{position:relative;padding-left:30px;cursor:pointer}table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td.dtr-control:before,table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th.dtr-control:before{top:50%;left:5px;height:14px;width:14px;margin-top:-9px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#0275d8}table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before,table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before{content:'-';background-color:#d33333}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td.dtr-control,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th.dtr-control{padding-left:27px}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td.dtr-control:before,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th.dtr-control:before{left:4px;height:14px;width:14px;border-radius:14px;line-height:14px;text-indent:3px}table.dataTable.dtr-column>tbody>tr>td.control,table.dataTable.dtr-column>tbody>tr>th.control{position:relative;cursor:pointer}table.dataTable.dtr-column>tbody>tr>td.control:before,table.dataTable.dtr-column>tbody>tr>th.control:before{top:50%;left:50%;height:16px;width:16px;margin-top:-10px;margin-left:-10px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#0275d8}table.dataTable.dtr-column>tbody>tr.parent td.control:before,table.dataTable.dtr-column>tbody>tr.parent th.control:before{content:'-';background-color:#d33333}table.dataTable>tbody>tr.child{padding:0.5em 1em}table.dataTable>tbody>tr.child:hover{background:transparent !important}table.dataTable>tbody>tr.child ul.dtr-details{display:inline-block;list-style-type:none;margin:0;padding:0}table.dataTable>tbody>tr.child ul.dtr-details>li{border-bottom:1px solid #efefef;padding:0.5em 0}table.dataTable>tbody>tr.child ul.dtr-details>li:first-child{padding-top:0}table.dataTable>tbody>tr.child ul.dtr-details>li:last-child{border-bottom:none}table.dataTable>tbody>tr.child span.dtr-title{display:inline-block;min-width:75px;font-weight:bold}div.dtr-modal{position:fixed;box-sizing:border-box;top:0;left:0;height:100%;width:100%;z-index:100;padding:10em 1em}div.dtr-modal div.dtr-modal-display{position:absolute;top:0;left:0;bottom:0;right:0;width:50%;height:50%;overflow:auto;margin:auto;z-index:102;overflow:auto;background-color:#f5f5f7;border:1px solid black;border-radius:0.5em;box-shadow:0 12px 30px rgba(0,0,0,0.6)}div.dtr-modal div.dtr-modal-content{position:relative;padding:1em}div.dtr-modal div.dtr-modal-close{position:absolute;top:6px;right:6px;width:22px;height:22px;border:1px solid #eaeaea;background-color:#f9f9f9;text-align:center;border-radius:3px;cursor:pointer;z-index:12}div.dtr-modal div.dtr-modal-close:hover{background-color:#eaeaea}div.dtr-modal div.dtr-modal-background{position:fixed;top:0;left:0;right:0;bottom:0;z-index:101;background:rgba(0,0,0,0.6)}@media screen and (max-width: 767px){div.dtr-modal div.dtr-modal-display{width:95%}}div.dtr-bs-modal table.table tr:first-child td{border-top:none}table.dataTable.dtr-inline.collapsed.table-sm>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed.table-sm>tbody>tr>th:first-child:before{top:5px}
|
||||
@@ -1 +0,0 @@
|
||||
div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:10px;background:rgba(0,0,0,0.8);color:white;box-shadow:3px 3px 10px rgba(0,0,0,0.5);text-align:right;border-radius:3px;padding:0.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, #fff 10px, #fff 20px)}div.dts div.dataTables_scrollBody table{z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none}div.DTS div.dataTables_scrollBody table{background-color:white}
|
||||
@@ -1,111 +0,0 @@
|
||||
#loading-bar,
|
||||
#loading-bar-spinner {
|
||||
-webkit-pointer-events: none;
|
||||
pointer-events: none;
|
||||
transition: 350ms linear all;
|
||||
}
|
||||
|
||||
#loading-bar.ng-enter,
|
||||
#loading-bar.ng-leave.ng-leave-active,
|
||||
#loading-bar-spinner.ng-enter,
|
||||
#loading-bar-spinner.ng-leave.ng-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#loading-bar.ng-enter.ng-enter-active,
|
||||
#loading-bar.ng-leave,
|
||||
#loading-bar-spinner.ng-enter.ng-enter-active,
|
||||
#loading-bar-spinner.ng-leave {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#loading-bar .bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 20002;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: #20a8d8;
|
||||
border-top-right-radius: 1px;
|
||||
border-bottom-right-radius: 1px;
|
||||
transition: width 350ms;
|
||||
}
|
||||
|
||||
#loading-bar .peg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 70px;
|
||||
height: 2px;
|
||||
border-radius: 100%;
|
||||
-ms-box-shadow: #29d 1px 0 6px 1px;
|
||||
box-shadow: #29d 1px 0 6px 1px;
|
||||
opacity: .45;
|
||||
}
|
||||
|
||||
#loading-bar-spinner {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
z-index: 10002;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#loading-bar-spinner .spinner-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border: solid 2px transparent;
|
||||
border-top-color: #29d;
|
||||
border-left-color: #29d;
|
||||
border-radius: 50%;
|
||||
-webkit-animation: loading-bar-spinner 400ms linear infinite;
|
||||
animation: loading-bar-spinner 400ms linear infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes loading-bar-spinner {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loading-bar-spinner {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.pace {
|
||||
-webkit-pointer-events: none;
|
||||
pointer-events: none;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.pace-inactive {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pace .pace-progress {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 100%;
|
||||
z-index: 2000;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: #20a8d8;
|
||||
}
|
||||
@@ -73,5 +73,5 @@
|
||||
color: inherit
|
||||
}
|
||||
|
||||
div.c-wrapper, div.c-sidebar, div.modal, div.modal-backdrop { display: none !important; }
|
||||
div.wrapper, div.sidebar, div.modal, div.modal-backdrop, div.lightbox, div.lightboxOverlay { display: none !important; }
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,217 @@
|
||||
[data-simplebar] {
|
||||
position: relative;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
align-content: flex-start;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.simplebar-wrapper {
|
||||
overflow: hidden;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
max-width: inherit;
|
||||
max-height: inherit;
|
||||
}
|
||||
|
||||
.simplebar-mask {
|
||||
direction: inherit;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.simplebar-offset {
|
||||
direction: inherit !important;
|
||||
box-sizing: inherit !important;
|
||||
resize: none !important;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.simplebar-content-wrapper {
|
||||
direction: inherit;
|
||||
box-sizing: border-box !important;
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
|
||||
width: auto;
|
||||
max-width: 100%; /* Not required for horizontal scroll to trigger */
|
||||
max-height: 100%; /* Needed for vertical scroll to trigger */
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
.simplebar-content-wrapper::-webkit-scrollbar,
|
||||
.simplebar-hide-scrollbar::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.simplebar-content:before,
|
||||
.simplebar-content:after {
|
||||
content: ' ';
|
||||
display: table;
|
||||
}
|
||||
|
||||
.simplebar-placeholder {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.simplebar-height-auto-observer-wrapper {
|
||||
box-sizing: inherit !important;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
max-width: 1px;
|
||||
position: relative;
|
||||
float: left;
|
||||
max-height: 1px;
|
||||
overflow: hidden;
|
||||
z-index: -1;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
pointer-events: none;
|
||||
flex-grow: inherit;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 0;
|
||||
}
|
||||
|
||||
.simplebar-height-auto-observer {
|
||||
box-sizing: inherit;
|
||||
display: block;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 1000%;
|
||||
width: 1000%;
|
||||
min-height: 1px;
|
||||
min-width: 1px;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.simplebar-track {
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
pointer-events: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-simplebar].simplebar-dragging .simplebar-content {
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
[data-simplebar].simplebar-dragging .simplebar-track {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.simplebar-scrollbar {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
.simplebar-scrollbar:before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
background: black;
|
||||
border-radius: 7px;
|
||||
left: 2px;
|
||||
right: 2px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s linear;
|
||||
}
|
||||
|
||||
.simplebar-scrollbar.simplebar-visible:before {
|
||||
/* When hovered, remove all transitions from drag handle */
|
||||
opacity: 0.5;
|
||||
transition: opacity 0s linear;
|
||||
}
|
||||
|
||||
.simplebar-track.simplebar-vertical {
|
||||
top: 0;
|
||||
width: 11px;
|
||||
}
|
||||
|
||||
.simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
|
||||
top: 2px;
|
||||
bottom: 2px;
|
||||
}
|
||||
|
||||
.simplebar-track.simplebar-horizontal {
|
||||
left: 0;
|
||||
height: 11px;
|
||||
}
|
||||
|
||||
.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
|
||||
height: 100%;
|
||||
left: 2px;
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
|
||||
right: auto;
|
||||
left: 0;
|
||||
top: 2px;
|
||||
height: 7px;
|
||||
min-height: 0;
|
||||
min-width: 10px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* Rtl support */
|
||||
[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.hs-dummy-scrollbar-size {
|
||||
direction: rtl;
|
||||
position: fixed;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
height: 500px;
|
||||
width: 500px;
|
||||
overflow-y: hidden;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
.simplebar-hide-scrollbar {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
visibility: hidden;
|
||||
overflow-y: scroll;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
.simplebar-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
}
|
||||
@@ -1,234 +0,0 @@
|
||||
.toast-title {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.toast-message {
|
||||
-ms-word-wrap: break-word;
|
||||
word-wrap: break-word
|
||||
}
|
||||
|
||||
.toast-message a,
|
||||
.toast-message label {
|
||||
color: #ffffff
|
||||
}
|
||||
|
||||
.toast-message a:hover {
|
||||
color: #cccccc;
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
.toast-close-button {
|
||||
position: relative;
|
||||
right: -0.3em;
|
||||
top: -0.3em;
|
||||
float: right;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
color: #ffffff;
|
||||
-webkit-text-shadow: 0 1px 0 #ffffff;
|
||||
text-shadow: 0 1px 0 #ffffff;
|
||||
opacity: 0.8;
|
||||
-ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=80);
|
||||
filter: alpha(opacity=80)
|
||||
}
|
||||
|
||||
.toast-close-button:hover,
|
||||
.toast-close-button:focus {
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
opacity: 0.4;
|
||||
-ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=40);
|
||||
filter: alpha(opacity=40)
|
||||
}
|
||||
|
||||
button.toast-close-button {
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
-webkit-appearance: none
|
||||
}
|
||||
|
||||
.toast-top-center {
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.toast-bottom-center {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.toast-top-full-width {
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.toast-bottom-full-width {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.toast-top-left {
|
||||
top: 12px;
|
||||
left: 12px
|
||||
}
|
||||
|
||||
.toast-top-right {
|
||||
top: 60px;
|
||||
right: 12px
|
||||
}
|
||||
|
||||
.toast-bottom-right {
|
||||
right: 12px;
|
||||
bottom: 12px
|
||||
}
|
||||
|
||||
.toast-bottom-left {
|
||||
bottom: 12px;
|
||||
left: 12px
|
||||
}
|
||||
|
||||
#toast-container {
|
||||
position: fixed;
|
||||
z-index: 999999
|
||||
}
|
||||
|
||||
#toast-container * {
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
#toast-container .toast {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: 0 0 6px;
|
||||
padding: 15px;
|
||||
width: 300px;
|
||||
border-radius: .25rem;
|
||||
background-position: 15px center;
|
||||
background-repeat: no-repeat;
|
||||
color: #ffffff;
|
||||
opacity: 0.9;
|
||||
-ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=90);
|
||||
filter: alpha(opacity=90)
|
||||
}
|
||||
|
||||
#toast-container .toast:hover {
|
||||
opacity: 1;
|
||||
-ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100);
|
||||
filter: alpha(opacity=100);
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
#toast-container .toast {
|
||||
background-image: none !important
|
||||
}
|
||||
|
||||
#toast-container.toast-top-center>div,
|
||||
#toast-container.toast-bottom-center>div {
|
||||
width: 300px;
|
||||
margin: auto
|
||||
}
|
||||
|
||||
#toast-container.toast-top-full-width>div,
|
||||
#toast-container.toast-bottom-full-width>div {
|
||||
width: 96%;
|
||||
margin: auto
|
||||
}
|
||||
|
||||
.toast {
|
||||
background-color: #321fdb
|
||||
}
|
||||
|
||||
.toast-success {
|
||||
background-color: #2eb85c
|
||||
}
|
||||
|
||||
.toast-error {
|
||||
background-color: #e55353
|
||||
}
|
||||
|
||||
.toast-info {
|
||||
background-color: #39f
|
||||
}
|
||||
|
||||
.toast-warning {
|
||||
background-color: #f9b115
|
||||
}
|
||||
|
||||
progress-bar,
|
||||
.toast-progress {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
height: 4px;
|
||||
background-color: #000000;
|
||||
opacity: .2;
|
||||
-ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=20);
|
||||
filter: alpha(opacity=20)
|
||||
}
|
||||
|
||||
div[toast],
|
||||
.toast {
|
||||
opacity: 1 !important
|
||||
}
|
||||
|
||||
div[toast].ng-enter,
|
||||
.toast.ng-enter {
|
||||
opacity: 0 !important;
|
||||
transition: opacity .3s linear
|
||||
}
|
||||
|
||||
div[toast].ng-enter.ng-enter-active,
|
||||
.toast.ng-enter.ng-enter-active {
|
||||
opacity: 1 !important
|
||||
}
|
||||
|
||||
div[toast].ng-leave,
|
||||
.toast.ng-leave {
|
||||
opacity: 1;
|
||||
transition: opacity .3s linear
|
||||
}
|
||||
|
||||
div[toast].ng-leave.ng-leave-active,
|
||||
.toast.ng-leave.ng-leave-active {
|
||||
opacity: 0 !important
|
||||
}
|
||||
|
||||
@media all and (max-width: 240px) {
|
||||
#toast-container>div {
|
||||
padding: 8px 8px 8px 50px;
|
||||
width: 11em
|
||||
}
|
||||
#toast-container .toast-close-button {
|
||||
right: -0.2em;
|
||||
top: -0.2em
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 241px) and (max-width: 480px) {
|
||||
#toast-container>div {
|
||||
padding: 8px 8px 8px 50px;
|
||||
width: 18em
|
||||
}
|
||||
#toast-container .toast-close-button {
|
||||
right: -0.2em;
|
||||
top: -0.2em
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 481px) and (max-width: 768px) {
|
||||
#toast-container>div {
|
||||
padding: 15px 15px 15px 50px;
|
||||
width: 25em
|
||||
}
|
||||
}
|
||||
|
||||
.toaster-icon.icon-info {
|
||||
display: none
|
||||
}
|
||||
+7075
File diff suppressed because it is too large
Load Diff
-11
@@ -1,11 +0,0 @@
|
||||
/*!
|
||||
DataTables Bootstrap 4 integration
|
||||
©2011-2017 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var k=a[d];if(b.call(c,k,d,a))return{i:d,v:k}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){a=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(a,b,c,e){if(b){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];d in c||(c[d]={});c=c[d]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
|
||||
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(b){return a(b,window,document)}):"object"===typeof exports?module.exports=function(b,c){b||(b=window);c&&c.fn.dataTable||(c=require("datatables.net")(b,c).$);return a(c,b,b.document)}:a(jQuery,window,document)})(function(a,b,c,e){var d=a.fn.dataTable;a.extend(!0,d.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
|
||||
renderer:"bootstrap"});a.extend(d.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"});d.ext.renderer.pageButton.bootstrap=function(b,l,v,w,m,r){var k=new d.Api(b),x=b.oClasses,n=b.oLanguage.oPaginate,y=b.oLanguage.oAria.paginate||{},g,h,t=0,u=function(c,d){var e,l=function(b){b.preventDefault();
|
||||
a(b.currentTarget).hasClass("disabled")||k.page()==b.data.action||k.page(b.data.action).draw("page")};var q=0;for(e=d.length;q<e;q++){var f=d[q];if(a.isArray(f))u(c,f);else{h=g="";switch(f){case "ellipsis":g="…";h="disabled";break;case "first":g=n.sFirst;h=f+(0<m?"":" disabled");break;case "previous":g=n.sPrevious;h=f+(0<m?"":" disabled");break;case "next":g=n.sNext;h=f+(m<r-1?"":" disabled");break;case "last":g=n.sLast;h=f+(m<r-1?"":" disabled");break;default:g=f+1,h=m===f?"active":""}if(g){var p=
|
||||
a("<li>",{"class":x.sPageButton+" "+h,id:0===v&&"string"===typeof f?b.sTableId+"_"+f:null}).append(a("<a>",{href:"#","aria-controls":b.sTableId,"aria-label":y[f],"data-dt-idx":t,tabindex:b.iTabIndex,"class":"page-link"}).html(g)).appendTo(c);b.oApi._fnBindAction(p,{action:f},l);t++}}}};try{var p=a(l).find(c.activeElement).data("dt-idx")}catch(z){}u(a(l).empty().html('<ul class="pagination"/>').children("ul"),w);p!==e&&a(l).find("[data-dt-idx="+p+"]").trigger("focus")};return d});
|
||||
@@ -1,9 +0,0 @@
|
||||
/*!
|
||||
Bootstrap 4 integration for DataTables' Responsive
|
||||
©2016 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(c.call(b,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){a!=Array.prototype&&a!=Object.prototype&&(a[c]=b.value)};$jscomp.getGlobal=function(a){a=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a];for(var c=0;c<a.length;++c){var b=a[c];if(b&&b.Math==Math)return b}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(a,c,b,d){if(c){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in b||(b[e]={});b=b[e]}a=a[a.length-1];d=b[a];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
|
||||
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs4","datatables.net-responsive"],function(c){return a(c,window,document)}):"object"===typeof exports?module.exports=function(c,b){c||(c=window);b&&b.fn.dataTable||(b=require("datatables.net-bs4")(c,b).$);b.fn.dataTable.Responsive||require("datatables.net-responsive")(c,b);return a(b,c,c.document)}:a(jQuery,window,document)})(function(a,c,b,d){c=a.fn.dataTable;b=c.Responsive.display;var e=b.modal,f=a('<div class="modal fade dtr-bs-modal" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body"/></div></div></div>');
|
||||
b.modal=function(b){return function(c,d,g){if(!a.fn.modal)e(c,d,g);else if(!d){if(b&&b.header){d=f.find("div.modal-header");var h=d.find("button").detach();d.empty().append('<h4 class="modal-title">'+b.header(c)+"</h4>").append(h)}f.find("div.modal-body").empty().append(g());f.appendTo("body").modal()}}};return c.Responsive});
|
||||
Vendored
-6
File diff suppressed because one or more lines are too long
@@ -0,0 +1,768 @@
|
||||
/*
|
||||
Highmaps JS v10.2.1 (2022-08-29)
|
||||
|
||||
(c) 2011-2021 Torstein Honsi
|
||||
|
||||
License: www.highcharts.com/license
|
||||
*/
|
||||
(function(W,I){"object"===typeof module&&module.exports?(I["default"]=I,module.exports=W.document?I(W):I):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return I(W)}):(W.Highcharts&&W.Highcharts.error(16,!0),W.Highcharts=I(W))})("undefined"!==typeof window?window:this,function(W){function I(b,K,e,B){b.hasOwnProperty(K)||(b[K]=B.apply(null,e),"function"===typeof CustomEvent&&W.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:K,module:b[K]}})))}var e=
|
||||
{};I(e,"Core/Globals.js",[],function(){var b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="10.2.1";b.win="undefined"!==typeof W?W:{};b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=
|
||||
!b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(b.userAgent);b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var e=!1;if(!b.isMS){var K=Object.defineProperty({},"passive",{get:function(){e=!0}});
|
||||
b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",b.noop,K),b.win.removeEventListener("testPassive",b.noop,K))}return e}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});I(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(b){function e(c,q,k,H){var a=q?"Highcharts error":"Highcharts warning";32===c&&(c=""+a+": Deprecated member");var l=p(c),E=l?""+a+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();
|
||||
if("undefined"!==typeof H){var d="";l&&(E+="?");x(H,function(c,q){d+="\n - ".concat(q,": ").concat(c);l&&(E+=encodeURI(q)+"="+encodeURI(c))});E+=d}u(b,"displayError",{chart:k,code:c,message:E,params:H},function(){if(q)throw Error(E);f.console&&-1===e.messages.indexOf(E)&&console.warn(E)});e.messages.push(E)}function y(c,q){var f={};x(c,function(k,a){if(F(c[a],!0)&&!c.nodeType&&q[a])k=y(c[a],q[a]),Object.keys(k).length&&(f[a]=k);else if(F(c[a])||c[a]!==q[a]||a in c&&!(a in q))f[a]=c[a]});return f}
|
||||
function B(c,q){return parseInt(c,q||10)}function v(c){return"string"===typeof c}function t(c){c=Object.prototype.toString.call(c);return"[object Array]"===c||"[object Array Iterator]"===c}function F(c,q){return!!c&&"object"===typeof c&&(!q||!t(c))}function z(c){return F(c)&&"number"===typeof c.nodeType}function r(c){var q=c&&c.constructor;return!(!F(c,!0)||z(c)||!q||!q.name||"Object"===q.name)}function p(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function h(c){return"undefined"!==
|
||||
typeof c&&null!==c}function a(c,q,f){var k=v(q)&&!h(f),a,l=function(q,f){h(q)?c.setAttribute(f,q):k?(a=c.getAttribute(f))||"class"!==f||(a=c.getAttribute(f+"Name")):c.removeAttribute(f)};v(q)?l(f,q):x(q,l);return a}function d(c,q){var f;c||(c={});for(f in q)c[f]=q[f];return c}function g(){for(var c=arguments,q=c.length,f=0;f<q;f++){var k=c[f];if("undefined"!==typeof k&&null!==k)return k}}function m(c,q){b.isMS&&!b.svg&&q&&h(q.opacity)&&(q.filter="alpha(opacity=".concat(100*q.opacity,")"));d(c.style,
|
||||
q)}function n(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))}function G(c,q){return 1E14<c?c:parseFloat(c.toPrecision(q||14))}function J(c,q,k){var H=b.getStyle||J;if("width"===q)return q=Math.min(c.offsetWidth,c.scrollWidth),k=c.getBoundingClientRect&&c.getBoundingClientRect().width,k<q&&k>=q-1&&(q=Math.floor(k)),Math.max(0,q-(H(c,"padding-left",!0)||0)-(H(c,"padding-right",!0)||0));if("height"===q)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(H(c,"padding-top",!0)||0)-(H(c,
|
||||
"padding-bottom",!0)||0));f.getComputedStyle||e(27,!0);if(c=f.getComputedStyle(c,void 0)){var a=c.getPropertyValue(q);g(k,"opacity"!==q)&&(a=B(a))}return a}function x(c,q,f){for(var k in c)Object.hasOwnProperty.call(c,k)&&q.call(f||c[k],c[k],k,c)}function C(c,q,f){function k(q,f){var k=c.removeEventListener||b.removeEventListenerPolyfill;k&&k.call(c,q,f,!1)}function a(f){var H;if(c.nodeName){if(q){var a={};a[q]=!0}else a=f;x(a,function(c,q){if(f[q])for(H=f[q].length;H--;)k(q,f[q][H].fn)})}}var l=
|
||||
"function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(l,"hcEvents")){var E=l.hcEvents;q?(l=E[q]||[],f?(E[q]=l.filter(function(c){return f!==c.fn}),k(q,f)):(a(E),E[q]=[])):(a(E),delete l.hcEvents)}}function u(c,q,f,k){f=f||{};if(A.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==b)){var H=A.createEvent("Events");H.initEvent(q,!0,!0);f=d(H,f);c.dispatchEvent?c.dispatchEvent(f):c.fireEvent(q,f)}else if(c.hcEvents){f.target||d(f,{preventDefault:function(){f.defaultPrevented=!0},target:c,
|
||||
type:q});H=[];for(var a=c,l=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[q]&&(H.length&&(l=!0),H.unshift.apply(H,a.hcEvents[q])),a=Object.getPrototypeOf(a);l&&H.sort(function(c,f){return c.order-f.order});H.forEach(function(q){!1===q.fn.call(c,f)&&f.preventDefault()})}k&&!f.defaultPrevented&&k.call(c,f)}var l=b.charts,A=b.doc,f=b.win;(e||(e={})).messages=[];Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var w=Array.prototype.find?function(c,f){return c.find(f)}:
|
||||
function(c,f){var q,k=c.length;for(q=0;q<k;q++)if(f(c[q],q))return c[q]};x({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,f){b[f]=function(q){var k;e(32,!1,void 0,(k={},k["Highcharts.".concat(f)]="use Array.".concat(c),k));return Array.prototype[c].apply(q,[].slice.call(arguments,1))}});var k,D=function(){var c=Math.random().toString(36).substring(2,9)+"-",f=0;return function(){return"highcharts-"+(k?"":c)+f++}}();f.jQuery&&(f.jQuery.fn.highcharts=function(){var c=
|
||||
[].slice.call(arguments);if(this[0])return c[0]?(new (b[v(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):l[a(this[0],"data-highcharts-chart")]});w={addEvent:function(c,f,k,H){void 0===H&&(H={});var q="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(q,"hcEvents")||(q.hcEvents={});q=q.hcEvents;b.Point&&c instanceof b.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var a=c.addEventListener||b.addEventListenerPolyfill;a&&a.call(c,f,k,b.supportsPassiveEvents?{passive:void 0===
|
||||
H.passive?-1!==f.indexOf("touch"):H.passive,capture:!1}:!1);q[f]||(q[f]=[]);q[f].push({fn:k,order:"number"===typeof H.order?H.order:Infinity});q[f].sort(function(c,f){return c.order-f.order});return function(){C(c,f,k)}},arrayMax:function(c){for(var f=c.length,k=c[0];f--;)c[f]>k&&(k=c[f]);return k},arrayMin:function(c){for(var f=c.length,k=c[0];f--;)c[f]<k&&(k=c[f]);return k},attr:a,clamp:function(c,f,k){return c>f?c<k?c:k:f},cleanRecursively:y,clearTimeout:function(c){h(c)&&clearTimeout(c)},correctFloat:G,
|
||||
createElement:function(c,f,k,H,a){c=A.createElement(c);f&&d(c,f);a&&m(c,{padding:"0",border:"none",margin:"0"});k&&m(c,k);H&&H.appendChild(c);return c},css:m,defined:h,destroyObjectProperties:function(c,f){x(c,function(k,q){k&&k!==f&&k.destroy&&k.destroy();delete c[q]})},discardElement:function(c){c&&c.parentElement&&c.parentElement.removeChild(c)},erase:function(c,f){for(var k=c.length;k--;)if(c[k]===f){c.splice(k,1);break}},error:e,extend:d,extendClass:function(c,f){var k=function(){};k.prototype=
|
||||
new c;d(k.prototype,f);return k},find:w,fireEvent:u,getMagnitude:n,getNestedProperty:function(c,k){for(c=c.split(".");c.length&&h(k);){var q=c.shift();if("undefined"===typeof q||"__proto__"===q)return;k=k[q];if(!h(k)||"function"===typeof k||"number"===typeof k.nodeType||k===f)return}return k},getStyle:J,inArray:function(c,f,k){e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return f.indexOf(c,k)},isArray:t,isClass:r,isDOMElement:z,isFunction:function(c){return"function"===typeof c},isNumber:p,
|
||||
isObject:F,isString:v,keys:function(c){e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,f=arguments,k={},H=function(c,f){"object"!==typeof c&&(c={});x(f,function(k,q){"__proto__"!==q&&"constructor"!==q&&(!F(k,!0)||r(k)||z(k)?c[q]=f[q]:c[q]=H(c[q]||{},k))});return c};!0===f[0]&&(k=f[1],f=Array.prototype.slice.call(f,2));var a=f.length;for(c=0;c<a;c++)k=H(k,f[c]);return k},normalizeTickInterval:function(c,f,k,H,a){var q=c;k=g(k,n(c));var l=c/k;f||(f=
|
||||
a?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===H&&(1===k?f=f.filter(function(c){return 0===c%1}):.1>=k&&(f=[1/k])));for(H=0;H<f.length&&!(q=f[H],a&&q*k>=c||!a&&l<=(f[H]+(f[H+1]||f[H]))/2);H++);return q=G(q*k,-Math.round(Math.log(.001)/Math.LN10))},objectEach:x,offset:function(c){var k=A.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(f.pageYOffset||k.scrollTop)-(k.clientTop||0),left:c.left+(f.pageXOffset||k.scrollLeft)-
|
||||
(k.clientLeft||0),width:c.width,height:c.height}},pad:function(c,f,k){return Array((f||2)+1-String(c).replace("-","").length).join(k||"0")+c},pick:g,pInt:B,relativeLength:function(c,f,k){return/%$/.test(c)?f*parseFloat(c)/100+(k||0):parseFloat(c)},removeEvent:C,splat:function(c){return t(c)?c:[c]},stableSort:function(c,f){var k=c.length,q,a;for(a=0;a<k;a++)c[a].safeI=a;c.sort(function(c,k){q=f(c,k);return 0===q?c.safeI-k.safeI:q});for(a=0;a<k;a++)delete c[a].safeI},syncTimeout:function(c,f,k){if(0<
|
||||
f)return setTimeout(c,f,k);c.call(0,k);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:D,useSerialIds:function(c){return k=g(c,k)},wrap:function(c,f,k){var q=c[f];c[f]=function(){var c=Array.prototype.slice.call(arguments),f=arguments,a=this;a.proceed=function(){q.apply(a,arguments.length?arguments:f)};c.unshift(q);c=k.apply(this,c);a.proceed=null;return c}}};"";return w});I(e,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,
|
||||
panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});I(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],
|
||||
function(b,e){var K=e.isNumber,B=e.merge,v=e.pInt;e=function(){function e(F){this.rgba=[NaN,NaN,NaN,NaN];this.input=F;var z=b.Color;if(z&&z!==e)return new z(F);if(!(this instanceof e))return new e(F);this.init(F)}e.parse=function(b){return b?new e(b):e.None};e.prototype.init=function(b){var z;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(a){return new e(a[1])});else if("string"===typeof b){this.input=b=e.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var r=
|
||||
b.length;var p=parseInt(b.substr(1),16);7===r?z=[(p&16711680)>>16,(p&65280)>>8,p&255,1]:4===r&&(z=[(p&3840)>>4|(p&3840)>>8,(p&240)>>4|p&240,(p&15)<<4|p&15,1])}if(!z)for(p=e.parsers.length;p--&&!z;){var h=e.parsers[p];(r=h.regex.exec(b))&&(z=h.parse(r))}}z&&(this.rgba=z)};e.prototype.get=function(b){var z=this.input,r=this.rgba;if("object"===typeof z&&"undefined"!==typeof this.stops){var p=B(z);p.stops=[].slice.call(p.stops);this.stops.forEach(function(h,a){p.stops[a]=[p.stops[a][0],h.get(b)]});return p}return r&&
|
||||
K(r[0])?"rgb"===b||!b&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===b?"".concat(r[3]):"rgba("+r.join(",")+")":z};e.prototype.brighten=function(b){var z=this.rgba;if(this.stops)this.stops.forEach(function(p){p.brighten(b)});else if(K(b)&&0!==b)for(var r=0;3>r;r++)z[r]+=v(255*b),0>z[r]&&(z[r]=0),255<z[r]&&(z[r]=255);return this};e.prototype.setOpacity=function(b){this.rgba[3]=b;return this};e.prototype.tweenTo=function(b,z){var r=this.rgba,p=b.rgba;if(!K(r[0])||!K(p[0]))return b.input||"none";b=
|
||||
1!==p[3]||1!==r[3];return(b?"rgba(":"rgb(")+Math.round(p[0]+(r[0]-p[0])*(1-z))+","+Math.round(p[1]+(r[1]-p[1])*(1-z))+","+Math.round(p[2]+(r[2]-p[2])*(1-z))+(b?","+(p[3]+(r[3]-p[3])*(1-z)):"")+")"};e.names={white:"#ffffff",black:"#000000"};e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(b){return[v(b[1]),v(b[2]),v(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[v(b[1]),
|
||||
v(b[2]),v(b[3]),1]}}];e.None=new e("");return e}();"";return e});I(e,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});I(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var K=b.win,B=e.defined,v=e.error,t=e.extend,F=e.isObject,z=e.merge,r=e.objectEach,p=e.pad,h=e.pick,a=e.splat,d=e.timeUnits,g=b.isSafari&&K.Intl&&K.Intl.DateTimeFormat.prototype.formatRange,m=b.isSafari&&
|
||||
K.Intl&&!K.Intl.DateTimeFormat.prototype.formatRange;e=function(){function n(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=K.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}n.prototype.get=function(a,d){if(this.variableTimezone||this.timezoneOffset){var g=d.getTime(),m=g-this.getTimezoneOffset(d);d.setTime(m);a=d["getUTC"+a]();d.setTime(g);return a}return this.useUTC?d["getUTC"+a]():d["get"+a]()};n.prototype.set=function(a,d,m){if(this.variableTimezone||
|
||||
this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(d)%36E5)return d["setUTC"+a](m);var n=this.getTimezoneOffset(d);n=d.getTime()-n;d.setTime(n);d["setUTC"+a](m);a=this.getTimezoneOffset(d);n=d.getTime()+a;return d.setTime(n)}return this.useUTC||g&&"FullYear"===a?d["setUTC"+a](m):d["set"+a](m)};n.prototype.update=function(a){var d=h(a&&a.useUTC,!0);this.options=a=z(!0,this.options||{},a);this.Date=a.Date||K.Date||Date;this.timezoneOffset=(this.useUTC=
|
||||
d)&&a.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=d&&!(!a.getTimezoneOffset&&!a.timezone)};n.prototype.makeTime=function(a,d,g,n,u,l){if(this.useUTC){var A=this.Date.UTC.apply(0,arguments);var f=this.getTimezoneOffset(A);A+=f;var w=this.getTimezoneOffset(A);f!==w?A+=w-f:f-36E5!==this.getTimezoneOffset(A-36E5)||m||(A-=36E5)}else A=(new this.Date(a,d,h(g,1),h(n,0),h(u,0),h(l,0))).getTime();return A};n.prototype.timezoneOffsetFunction=function(){var a=
|
||||
this,d=this.options,g=d.getTimezoneOffset,m=d.moment||K.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(d.timezone){if(m)return function(a){return 6E4*-m.tz(a,d.timezone).utcOffset()};v(25)}return this.useUTC&&g?function(a){return 6E4*g(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||0)}};n.prototype.dateFormat=function(a,d,g){if(!B(d)||isNaN(d))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=h(a,"%Y-%m-%d %H:%M:%S");
|
||||
var m=this,n=new this.Date(d),l=this.get("Hours",n),A=this.get("Day",n),f=this.get("Date",n),w=this.get("Month",n),k=this.get("FullYear",n),D=b.defaultOptions.lang,c=D&&D.weekdays,q=D&&D.shortWeekdays;n=t({a:q?q[A]:c[A].substr(0,3),A:c[A],d:p(f),e:p(f,2," "),w:A,b:D.shortMonths[w],B:D.months[w],m:p(w+1),o:w+1,y:k.toString().substr(2,2),Y:k,H:p(l),k:l,I:p(l%12||12),l:l%12||12,M:p(this.get("Minutes",n)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:p(n.getSeconds()),L:p(Math.floor(d%1E3),3)},b.dateFormats);r(n,
|
||||
function(c,f){for(;-1!==a.indexOf("%"+f);)a=a.replace("%"+f,"function"===typeof c?c.call(m,d):c)});return g?a.substr(0,1).toUpperCase()+a.substr(1):a};n.prototype.resolveDTLFormat=function(d){return F(d,!0)?d:(d=a(d),{main:d[0],from:d[1],to:d[2]})};n.prototype.getTimeTicks=function(a,g,m,n){var u=this,l=[],A={},f=new u.Date(g),w=a.unitRange,k=a.count||1,D;n=h(n,1);if(B(g)){u.set("Milliseconds",f,w>=d.second?0:k*Math.floor(u.get("Milliseconds",f)/k));w>=d.second&&u.set("Seconds",f,w>=d.minute?0:k*
|
||||
Math.floor(u.get("Seconds",f)/k));w>=d.minute&&u.set("Minutes",f,w>=d.hour?0:k*Math.floor(u.get("Minutes",f)/k));w>=d.hour&&u.set("Hours",f,w>=d.day?0:k*Math.floor(u.get("Hours",f)/k));w>=d.day&&u.set("Date",f,w>=d.month?1:Math.max(1,k*Math.floor(u.get("Date",f)/k)));if(w>=d.month){u.set("Month",f,w>=d.year?0:k*Math.floor(u.get("Month",f)/k));var c=u.get("FullYear",f)}w>=d.year&&u.set("FullYear",f,c-c%k);w===d.week&&(c=u.get("Day",f),u.set("Date",f,u.get("Date",f)-c+n+(c<n?-7:0)));c=u.get("FullYear",
|
||||
f);n=u.get("Month",f);var q=u.get("Date",f),E=u.get("Hours",f);g=f.getTime();!u.variableTimezone&&u.useUTC||!B(m)||(D=m-g>4*d.month||u.getTimezoneOffset(g)!==u.getTimezoneOffset(m));g=f.getTime();for(f=1;g<m;)l.push(g),g=w===d.year?u.makeTime(c+f*k,0):w===d.month?u.makeTime(c,n+f*k):!D||w!==d.day&&w!==d.week?D&&w===d.hour&&1<k?u.makeTime(c,n,q,E+f*k):g+w*k:u.makeTime(c,n,q+f*k*(w===d.day?1:7)),f++;l.push(g);w<=d.hour&&1E4>l.length&&l.forEach(function(c){0===c%18E5&&"000000000"===u.dateFormat("%H%M%S%L",
|
||||
c)&&(A[c]="day")})}l.info=t(a,{higherRanks:A,totalRange:w*k});return l};n.prototype.getDateFormat=function(a,g,n,m){var u=this.dateFormat("%m-%d %H:%M:%S.%L",g),l={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond";for(f in d){if(a===d.week&&+this.dateFormat("%w",g)===n&&"00:00:00.000"===u.substr(6)){var f="week";break}if(d[f]>a){f=h;break}if(l[f]&&u.substr(l[f])!=="01-01 00:00:00.000".substr(l[f]))break;"week"!==f&&(h=f)}return this.resolveDTLFormat(m[f]).main};return n}();"";return e});
|
||||
I(e,"Core/DefaultOptions.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t){e=e.parse;var K=t.merge,z={colors:B.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
|
||||
weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},
|
||||
labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",
|
||||
width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:y.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",
|
||||
month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:y.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:0,
|
||||
href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};z.chart.styledMode=!1;"";var r=new v(K(z.global,z.time));b={defaultOptions:z,defaultTime:r,getOptions:function(){return z},setOptions:function(p){K(!0,z,p);if(p.time||p.global)y.time?y.time.update(K(z.global,z.time,p.global,p.time)):y.time=r;return z}};"";return b});I(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],
|
||||
e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y){var K=b.parse,v=e.win,t=y.isNumber,F=y.objectEach;return function(){function b(b,p,h){this.pos=NaN;this.options=p;this.elem=b;this.prop=h}b.prototype.dSetter=function(){var b=this.paths,p=b&&b[0];b=b&&b[1];var h=this.now||0,a=[];if(1!==h&&p&&b)if(p.length===b.length&&1>h)for(var d=0;d<b.length;d++){for(var g=p[d],m=b[d],n=[],G=0;G<m.length;G++){var J=g[G],x=m[G];t(J)&&t(x)&&("A"!==m[0]||4!==G&&5!==G)?n[G]=J+h*(x-J):n[G]=x}a.push(n)}else a=
|
||||
b;else a=this.toD||[];this.elem.attr("d",a,void 0,!0)};b.prototype.update=function(){var b=this.elem,p=this.prop,h=this.now,a=this.options.step;if(this[p+"Setter"])this[p+"Setter"]();else b.attr?b.element&&b.attr(p,h,null,!0):b.style[p]=h+this.unit;a&&a.call(b,h,this)};b.prototype.run=function(r,p,h){var a=this,d=a.options,g=function(d){return g.stopped?!1:a.step(d)},m=v.requestAnimationFrame||function(a){setTimeout(a,13)},n=function(){for(var a=0;a<b.timers.length;a++)b.timers[a]()||b.timers.splice(a--,
|
||||
1);b.timers.length&&m(n)};r!==p||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=r,this.end=p,this.unit=h,this.now=this.start,this.pos=0,g.elem=this.elem,g.prop=this.prop,g()&&1===b.timers.push(g)&&m(n)):(delete d.curAnim[this.prop],d.complete&&0===Object.keys(d.curAnim).length&&d.complete.call(this.elem))};b.prototype.step=function(b){var p=+new Date,h=this.options,a=this.elem,d=h.complete,g=h.duration,m=h.curAnim;if(a.attr&&!a.element)b=!1;else if(b||p>=g+this.startTime){this.now=
|
||||
this.end;this.pos=1;this.update();var n=m[this.prop]=!0;F(m,function(a){!0!==a&&(n=!1)});n&&d&&d.call(a);b=!1}else this.pos=h.easing((p-this.startTime)/g),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b};b.prototype.initPath=function(b,p,h){function a(a,d){for(;a.length<C;){var l=a[0],f=d[C-a.length];f&&"M"===l[0]&&(a[0]="C"===f[0]?["C",l[1],l[2],l[1],l[2],l[1],l[2]]:["L",l[1],l[2]]);a.unshift(l);n&&(l=a.pop(),a.push(a[a.length-1],l))}}function d(a,l){for(;a.length<
|
||||
C;)if(l=a[Math.floor(a.length/G)-1].slice(),"C"===l[0]&&(l[1]=l[5],l[2]=l[6]),n){var d=a[Math.floor(a.length/G)].slice();a.splice(a.length/2,0,l,d)}else a.push(l)}var g=b.startX,m=b.endX;h=h.slice();var n=b.isArea,G=n?2:1;p=p&&p.slice();if(!p)return[h,h];if(g&&m&&m.length){for(b=0;b<g.length;b++)if(g[b]===m[0]){var J=b;break}else if(g[0]===m[m.length-g.length+b]){J=b;var x=!0;break}else if(g[g.length-1]===m[m.length-g.length+b]){J=g.length-b;break}"undefined"===typeof J&&(p=[])}if(p.length&&t(J)){var C=
|
||||
h.length+J*G;x?(a(p,h),d(h,p)):(a(h,p),d(p,h))}return[p,h]};b.prototype.fillSetter=function(){b.prototype.strokeSetter.apply(this,arguments)};b.prototype.strokeSetter=function(){this.elem.attr(this.prop,K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)};b.timers=[];return b}()});I(e,"Core/Animation/AnimationUtilities.js",[e["Core/Animation/Fx.js"],e["Core/Utilities.js"]],function(b,e){function K(a){return r(a)?p({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function B(a,g){for(var d=b.timers.length;d--;)b.timers[d].elem!==
|
||||
a||g&&g!==b.timers[d].prop||(b.timers[d].stopped=!0)}var v=e.defined,t=e.getStyle,F=e.isArray,z=e.isNumber,r=e.isObject,p=e.merge,h=e.objectEach,a=e.pick;return{animate:function(a,g,m){var d,G="",J,x;if(!r(m)){var C=arguments;m={duration:C[2],easing:C[3],complete:C[4]}}z(m.duration)||(m.duration=400);m.easing="function"===typeof m.easing?m.easing:Math[m.easing]||Math.easeInOutSine;m.curAnim=p(g);h(g,function(n,l){B(a,l);x=new b(a,m,l);J=void 0;"d"===l&&F(g.d)?(x.paths=x.initPath(a,a.pathArray,g.d),
|
||||
x.toD=g.d,d=0,J=1):a.attr?d=a.attr(l):(d=parseFloat(t(a,l))||0,"opacity"!==l&&(G="px"));J||(J=n);"string"===typeof J&&J.match("px")&&(J=J.replace(/px/g,""));x.run(d,J,G)})},animObject:K,getDeferredAnimation:function(a,g,m){var d=K(g),h=0,b=0;(m?[m]:a.series).forEach(function(a){a=K(a.options.animation);h=g&&v(g.defer)?d.defer:Math.max(h,a.duration+a.defer);b=Math.min(d.duration,a.duration)});a.renderer.forExport&&(h=0);return{defer:Math.max(0,h-b),duration:Math.min(h,b)}},setAnimation:function(d,
|
||||
g){g.renderer.globalAnimation=a(d,g.options.chart.animation,!0)},stop:B}});I(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var K=b.SVG_NS,B=e.attr,v=e.createElement,t=e.css,F=e.error,z=e.isFunction,r=e.isString,p=e.objectEach,h=e.splat,a=(e=b.win.trustedTypes)&&z(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(a){return a}}),d=a?a.createHTML(""):"";try{var g=!!(new DOMParser).parseFromString(d,"text/html")}catch(m){g=!1}z=function(){function m(a){this.nodes=
|
||||
"string"===typeof a?this.parseMarkup(a):a}m.filterUserAttributes=function(a){p(a,function(d,g){var n=!0;-1===m.allowedAttributes.indexOf(g)&&(n=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(g)&&(n=r(d)&&m.allowedReferences.some(function(a){return 0===d.indexOf(a)}));n||(F(33,!1,void 0,{"Invalid attribute in config":"".concat(g)}),delete a[g])});return a};m.parseStyle=function(a){return a.split(";").reduce(function(a,d){d=d.split(":").map(function(a){return a.trim()});var g=d.shift();
|
||||
g&&d.length&&(a[g.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})]=d.join(":"));return a},{})};m.setElementHTML=function(a,d){a.innerHTML=m.emptyHTML;d&&(new m(d)).addToDOM(a)};m.prototype.addToDOM=function(a){function d(a,g){var n;h(a).forEach(function(a){var l=a.tagName,h=a.textContent?b.doc.createTextNode(a.textContent):void 0,f=m.bypassHTMLFiltering;if(l)if("#text"===l)var w=h;else if(-1!==m.allowedTags.indexOf(l)||f){l=b.doc.createElementNS("svg"===l?K:g.namespaceURI||K,l);var k=
|
||||
a.attributes||{};p(a,function(a,c){"tagName"!==c&&"attributes"!==c&&"children"!==c&&"style"!==c&&"textContent"!==c&&(k[c]=a)});B(l,f?k:m.filterUserAttributes(k));a.style&&t(l,a.style);h&&l.appendChild(h);d(a.children||[],l);w=l}else F(33,!1,void 0,{"Invalid tagName in config":l});w&&g.appendChild(w);n=w});return n}return d(this.nodes,a)};m.prototype.parseMarkup=function(d){var n=[];d=d.trim().replace(/ style=(["'])/g," data-style=$1");if(g)d=(new DOMParser).parseFromString(a?a.createHTML(d):d,"text/html");
|
||||
else{var h=v("div");h.innerHTML=d;d={body:h}}var x=function(a,d){var l=a.nodeName.toLowerCase(),g={tagName:l};"#text"===l&&(g.textContent=a.textContent||"");if(l=a.attributes){var f={};[].forEach.call(l,function(a){"data-style"===a.name?g.style=m.parseStyle(a.value):f[a.name]=a.value});g.attributes=f}if(a.childNodes.length){var w=[];[].forEach.call(a.childNodes,function(a){x(a,w)});w.length&&(g.children=w)}d.push(g)};[].forEach.call(d.body.childNodes,function(a){return x(a,n)});return n};m.allowedAttributes=
|
||||
"aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
|
||||
m.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");m.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead tbody tspan td th tr u ul #text".split(" ");m.emptyHTML=d;m.bypassHTMLFiltering=!1;return m}();"";return z});
|
||||
I(e,"Core/FormatUtilities.js",[e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e){function K(b,h,a,d){b=+b||0;h=+h;var g=B.lang,m=(b.toString().split(".")[1]||"").split("e")[0].length,n=b.toString().split("e"),G=h;if(-1===h)h=Math.min(m,20);else if(!F(h))h=2;else if(h&&n[1]&&0>n[1]){var p=h+ +n[1];0<=p?(n[0]=(+n[0]).toExponential(p).split("e")[0],h=p):(n[0]=n[0].split(".")[0]||0,b=20>h?(n[0]*Math.pow(10,n[1])).toFixed(h):0,n[1]=0)}p=(Math.abs(n[1]?n[0]:b)+Math.pow(10,-Math.max(h,m)-
|
||||
1)).toFixed(h);m=String(r(p));var x=3<m.length?m.length%3:0;a=z(a,g.decimalPoint);d=z(d,g.thousandsSep);b=(0>b?"-":"")+(x?m.substr(0,x)+d:"");b=0>+n[1]&&!G?"0":b+m.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+d);h&&(b+=a+p.slice(-h));n[1]&&0!==+b&&(b+="e"+n[1]);return b}var B=b.defaultOptions,v=b.defaultTime,t=e.getNestedProperty,F=e.isNumber,z=e.pick,r=e.pInt;return{dateFormat:function(b,h,a){return v.dateFormat(b,h,a)},format:function(b,h,a){var d="{",g=!1,m=/f$/,n=/\.([0-9])/,G=B.lang,p=a&&a.time||
|
||||
v;a=a&&a.numberFormatter||K;for(var x=[];b;){var C=b.indexOf(d);if(-1===C)break;var u=b.slice(0,C);if(g){u=u.split(":");d=t(u.shift()||"",h);if(u.length&&"number"===typeof d)if(u=u.join(":"),m.test(u)){var l=parseInt((u.match(n)||["","-1"])[1],10);null!==d&&(d=a(d,l,G.decimalPoint,-1<u.indexOf(",")?G.thousandsSep:""))}else d=p.dateFormat(u,d);x.push(d)}else x.push(u);b=b.slice(C+1);d=(g=!g)?"}":"{"}x.push(b);return x.join("")},numberFormat:K}});I(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],
|
||||
function(b){var e=b.clamp,y=b.pick,B=b.stableSort,v;(function(b){function t(b,r,p){var h=b,a=h.reducedLen||r,d=function(a,d){return(d.rank||0)-(a.rank||0)},g=function(a,d){return a.target-d.target},m,n=!0,G=[],J=0;for(m=b.length;m--;)J+=b[m].size;if(J>a){B(b,d);for(J=m=0;J<=a;)J+=b[m].size,m++;G=b.splice(m-1,b.length)}B(b,g);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});n;){for(m=b.length;m--;)a=b[m],d=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/
|
||||
2,a.pos=e(d-a.size*a.align,0,r-a.size);m=b.length;for(n=!1;m--;)0<m&&b[m-1].pos+b[m-1].size>b[m].pos&&(b[m-1].size+=b[m].size,b[m-1].targets=b[m-1].targets.concat(b[m].targets),b[m-1].align=.5,b[m-1].pos+b[m-1].size>r&&(b[m-1].pos=r-b[m-1].size),b.splice(m,1),n=!0)}h.push.apply(h,G);m=0;b.some(function(a){var d=0;return(a.targets||[]).some(function(){h[m].pos=a.pos+d;if("undefined"!==typeof p&&Math.abs(h[m].pos-h[m].target)>p)return h.slice(0,m+1).forEach(function(a){return delete a.pos}),h.reducedLen=
|
||||
(h.reducedLen||r)-.1*r,h.reducedLen>.1*r&&t(h,r,p),!0;d+=h[m].size;m++;return!1})});B(h,g);return h}b.distribute=t})(v||(v={}));return v});I(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=b.animate,t=b.animObject,K=b.stop,z=y.deg2rad,r=y.doc,p=y.svg,h=y.SVG_NS,a=y.win,d=B.addEvent,g=B.attr,m=B.createElement,n=B.css,G=B.defined,J=B.erase,x=B.extend,C=B.fireEvent,u=B.isArray,
|
||||
l=B.isFunction,A=B.isString,f=B.merge,w=B.objectEach,k=B.pick,D=B.pInt,c=B.syncTimeout,q=B.uniqueKey;b=function(){function E(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=h;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}E.prototype._defaultGetter=function(c){c=k(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};E.prototype._defaultSetter=
|
||||
function(c,a,f){f.setAttribute(a,c)};E.prototype.add=function(c){var a=this.renderer,f=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&a.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var k=this.zIndexSetter();k||(c?c.element:a.box).appendChild(f);if(this.onAdd)this.onAdd();return this};E.prototype.addClass=function(c,a){var f=a?"":this.attr("class")||"";c=(c||"").split(/ /g).reduce(function(c,a){-1===
|
||||
f.indexOf(a)&&c.push(a);return c},f?[f]:[]).join(" ");c!==f&&this.attr("class",c);return this};E.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};E.prototype.align=function(c,a,f){var q={},d=this.renderer,l=d.alignedObjects,H,g,w;if(c){if(this.alignOptions=c,this.alignByTranslate=a,!f||A(f))this.alignTo=H=f||"renderer",J(l,this),l.push(this),f=void 0}else c=this.alignOptions,a=this.alignByTranslate,H=this.alignTo;f=k(f,d[H],"scrollablePlotBox"===H?
|
||||
d.plotBox:void 0,d);H=c.align;var D=c.verticalAlign;d=(f.x||0)+(c.x||0);l=(f.y||0)+(c.y||0);"right"===H?g=1:"center"===H&&(g=2);g&&(d+=(f.width-(c.width||0))/g);q[a?"translateX":"x"]=Math.round(d);"bottom"===D?w=1:"middle"===D&&(w=2);w&&(l+=(f.height-(c.height||0))/w);q[a?"translateY":"y"]=Math.round(l);this[this.placed?"animate":"attr"](q);this.placed=!0;this.alignAttr=q;return this};E.prototype.alignSetter=function(c){var a={left:"start",center:"middle",right:"end"};a[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",
|
||||
a[c]))};E.prototype.animate=function(a,f,q){var d=this,l=t(k(f,this.renderer.globalAnimation,!0));f=l.defer;k(r.hidden,r.msHidden,r.webkitHidden,!1)&&(l.duration=0);0!==l.duration?(q&&(l.complete=q),c(function(){d.element&&v(d,a,l)},f)):(this.attr(a,void 0,q||l.complete),w(a,function(c,a){l.step&&l.step.call(this,c,{prop:a,pos:1,elem:this})},this));return this};E.prototype.applyTextOutline=function(c){var a=this.element;-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(a.style.fill)));
|
||||
var f=c.split(" ");c=f[f.length-1];if((f=f[0])&&"none"!==f&&y.svg){this.fakeTS=!0;this.ySetter=this.xSetter;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(c,a,f){return 2*Number(a)+f});this.removeTextOutline();var k=r.createElementNS(h,"tspan");g(k,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":f,"stroke-linejoin":"round"});c=a.querySelector("textPath")||a;[].forEach.call(c.childNodes,function(c){var a=c.cloneNode(!0);a.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(c){return a.removeAttribute(c)});
|
||||
k.appendChild(a)});var q=0;[].forEach.call(c.querySelectorAll("text tspan"),function(c){q+=Number(c.getAttribute("dy"))});f=r.createElementNS(h,"tspan");f.textContent="\u200b";g(f,{x:Number(a.getAttribute("x")),dy:-q});k.appendChild(f);c.insertBefore(k,c.firstChild)}};E.prototype.attr=function(c,a,f,k){var q=this.element,d=this.symbolCustomAttribs,l,g=this,H,D;if("string"===typeof c&&"undefined"!==typeof a){var m=c;c={};c[m]=a}"string"===typeof c?g=(this[c+"Getter"]||this._defaultGetter).call(this,
|
||||
c,q):(w(c,function(a,f){H=!1;k||K(this,f);this.symbolName&&-1!==d.indexOf(f)&&(l||(this.symbolAttr(c),l=!0),H=!0);!this.rotation||"x"!==f&&"y"!==f||(this.doTransform=!0);H||(D=this[f+"Setter"]||this._defaultSetter,D.call(this,a,f,q),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f)&&this.updateShadows(f,a,D))},this),this.afterSetters());f&&f.call(this);return g};E.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+
|
||||
")":"none")};E.prototype.crisp=function(c,a){a=a||c.strokeWidth||0;var f=Math.round(a)%2/2;c.x=Math.floor(c.x||this.x||0)+f;c.y=Math.floor(c.y||this.y||0)+f;c.width=Math.floor((c.width||this.width||0)-2*f);c.height=Math.floor((c.height||this.height||0)-2*f);G(c.strokeWidth)&&(c.strokeWidth=a);return c};E.prototype.complexColor=function(c,a,k){var d=this.renderer,l,g,H,D,m,n,E,h,b,A,x=[],p;C(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?g="radialGradient":c.linearGradient&&
|
||||
(g="linearGradient");if(g){H=c[g];m=d.gradients;n=c.stops;b=k.radialReference;u(H)&&(c[g]=H={x1:H[0],y1:H[1],x2:H[2],y2:H[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===g&&b&&!G(H.gradientUnits)&&(D=H,H=f(H,d.getRadialAttr(b,D),{gradientUnits:"userSpaceOnUse"}));w(H,function(c,a){"id"!==a&&x.push(a,c)});w(n,function(c){x.push(c)});x=x.join(",");if(m[x])A=m[x].attr("id");else{H.id=A=q();var P=m[x]=d.createElement(g).attr(H).add(d.defs);P.radAttr=D;P.stops=[];n.forEach(function(c){0===c[1].indexOf("rgba")?
|
||||
(l=e.parse(c[1]),E=l.get("rgb"),h=l.get("a")):(E=c[1],h=1);c=d.createElement("stop").attr({offset:c[0],"stop-color":E,"stop-opacity":h}).add(P);P.stops.push(c)})}p="url("+d.url+"#"+A+")";k.setAttribute(a,p);k.gradient=x;c.toString=function(){return p}}})};E.prototype.css=function(c){var a=this.styles,k={},q=this.element,d=!a;c.color&&(c.fill=c.color);a&&w(c,function(c,f){a&&a[f]!==c&&(k[f]=c,d=!0)});if(d){a&&(c=x(a,k));if(null===c.width||"auto"===c.width)delete this.textWidth;else if("text"===q.nodeName.toLowerCase()&&
|
||||
c.width)var l=this.textWidth=D(c.width);this.styles=c;l&&!p&&this.renderer.forExport&&delete c.width;var g=f(c);q.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return g&&delete g[c]});n(q,g);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};E.prototype.dashstyleSetter=function(c){var a=this["stroke-width"];"inherit"===a&&(a=1);if(c=c&&c.toLowerCase()){var f=c.replace("shortdashdotdot",
|
||||
"3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=f.length;c--;)f[c]=""+D(f[c])*k(a,NaN);c=f.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};E.prototype.destroy=function(){var c=this,a=c.element||{},f=c.renderer,k=a.ownerSVGElement,q=f.isSVG&&"SPAN"===a.nodeName&&c.parentGroup||void 0;a.onclick=a.onmouseout=
|
||||
a.onmouseover=a.onmousemove=a.point=null;K(c);if(c.clipPath&&k){var d=c.clipPath;[].forEach.call(k.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(d.element.id)&&c.removeAttribute("clip-path")});c.clipPath=d.destroy()}if(c.stops){for(k=0;k<c.stops.length;k++)c.stops[k].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(a);for(f.styledMode||c.destroyShadows();q&&q.div&&0===q.div.childNodes.length;)a=q.parentGroup,c.safeRemoveChild(q.div),delete q.div,
|
||||
q=a;c.alignTo&&J(f.alignedObjects,c);w(c,function(a,f){c[f]&&c[f].parentGroup===c&&c[f].destroy&&c[f].destroy();delete c[f]})};E.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};E.prototype.dSetter=function(c,a,f){u(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,a,f){return a&&a.join?(f?c+" ":"")+a.join(" "):(a||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");
|
||||
this[a]!==c&&(f.setAttribute(a,c),this[a]=c)};E.prototype.fadeOut=function(c){var a=this;a.animate({opacity:0},{duration:k(c,150),complete:function(){a.hide()}})};E.prototype.fillSetter=function(c,a,f){"string"===typeof c?f.setAttribute(a,c):c&&this.complexColor(c,a,f)};E.prototype.getBBox=function(c,a){var f=this.alignValue,q=this.element,d=this.renderer,g=this.styles,D=this.textStr,w=d.cache,m=d.cacheKeys,H=q.namespaceURI===this.SVG_NS;a=k(a,this.rotation,0);var h=d.styledMode?q&&E.prototype.getStyle.call(q,
|
||||
"font-size"):g&&g.fontSize,u;if(G(D)){var b=D.toString();-1===b.indexOf("<")&&(b=b.replace(/[0-9]/g,"0"));b+=["",a,h,this.textWidth,f,g&&g.textOverflow,g&&g.fontWeight].join()}b&&!c&&(u=w[b]);if(!u){if(H||d.forExport){try{var A=this.fakeTS&&function(c){var a=q.querySelector(".highcharts-text-outline");a&&n(a,{display:c})};l(A)&&A("none");u=q.getBBox?x({},q.getBBox()):{width:q.offsetWidth,height:q.offsetHeight,x:0,y:0};l(A)&&A("")}catch(T){""}if(!u||0>u.width)u={x:0,y:0,width:0,height:0}}else u=this.htmlGetBBox();
|
||||
if(d.isSVG&&(d=u.width,c=u.height,H&&(u.height=c={"11px,17":14,"13px,20":16}[""+(h||"")+",".concat(Math.round(c))]||c),a)){H=Number(q.getAttribute("y")||0)-u.y;f={right:1,center:.5}[f||0]||0;g=a*z;h=(a-90)*z;var C=d*Math.cos(g);a=d*Math.sin(g);A=Math.cos(h);g=Math.sin(h);d=u.x+f*(d-C)+H*A;h=d+C;A=h-c*A;C=A-C;H=u.y+H-f*a+H*g;f=H+a;c=f-c*g;a=c-a;u.x=Math.min(d,h,A,C);u.y=Math.min(H,f,c,a);u.width=Math.max(d,h,A,C)-u.x;u.height=Math.max(H,f,c,a)-u.y}if(b&&(""===D||0<u.height)){for(;250<m.length;)delete w[m.shift()];
|
||||
w[b]||m.push(b);w[b]=u}}return u};E.prototype.getStyle=function(c){return a.getComputedStyle(this.element||this,"").getPropertyValue(c)};E.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};E.prototype.hide=function(){return this.attr({visibility:"hidden"})};E.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};E.prototype.init=function(c,a){this.element="span"===a?m(a):r.createElementNS(this.SVG_NS,a);this.renderer=c;C(this,"afterInit")};E.prototype.invert=
|
||||
function(c){this.inverted=c;this.updateTransform();return this};E.prototype.on=function(c,a){var f=this.onEvents;if(f[c])f[c]();f[c]=d(this.element,c,a);return this};E.prototype.opacitySetter=function(c,a,f){this.opacity=c=Number(Number(c).toFixed(3));f.setAttribute(a,c)};E.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(A(c)?new RegExp("(^| )".concat(c,"( |$)")):c," ").replace(/ +/g," ").trim())};E.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");
|
||||
c&&this.safeRemoveChild(c)};E.prototype.safeRemoveChild=function(c){var a=c.parentNode;a&&a.removeChild(c)};E.prototype.setRadialReference=function(c){var a=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;a&&a.radAttr&&a.animate(this.renderer.getRadialAttr(c,a.radAttr));return this};E.prototype.setTextPath=function(c,a){var k=this;a=f(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},a);var l=this.renderer.url,g=this.text||
|
||||
this,D=g.textPath,w=a.attributes,m=a.enabled;c=c||D&&D.path;D&&D.undo();c&&m?(a=d(g,"afterModifyTree",function(a){if(c&&m){var f=c.attr("id");f||c.attr("id",f=q());var d={x:0,y:0};G(w.dx)&&(d.dx=w.dx,delete w.dx);G(w.dy)&&(d.dy=w.dy,delete w.dy);g.attr(d);k.attr({transform:""});k.box&&(k.box=k.box.destroy());d=a.nodes.slice(0);a.nodes.length=0;a.nodes[0]={tagName:"textPath",attributes:x(w,{"text-anchor":w.textAnchor,href:""+l+"#".concat(f)}),children:d}}}),g.textPath={path:c,undo:a}):(g.attr({dx:0,
|
||||
dy:0}),delete g.textPath);this.added&&(g.textCache="",this.renderer.buildText(g));return this};E.prototype.shadow=function(c,a,f){var k=[],q=this.element,d=this.oldShadowOptions,l={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},D=!1,m;!0===c?m=l:"object"===typeof c&&(m=x(l,c));m&&(m&&d&&w(m,function(c,a){c!==d[a]&&(D=!0)}),D&&this.destroyShadows(),this.oldShadowOptions=m);if(!m)this.destroyShadows();else if(!this.shadows){var n=m.opacity/m.width;
|
||||
var h=this.parentInverted?"translate(".concat(m.offsetY,", ").concat(m.offsetX,")"):"translate(".concat(m.offsetX,", ").concat(m.offsetY,")");for(l=1;l<=m.width;l++){var E=q.cloneNode(!1);var u=2*m.width+1-2*l;g(E,{stroke:c.color||"#000000","stroke-opacity":n*l,"stroke-width":u,transform:h,fill:"none"});E.setAttribute("class",(E.getAttribute("class")||"")+" highcharts-shadow");f&&(g(E,"height",Math.max(g(E,"height")-u,0)),E.cutHeight=u);a?a.element.appendChild(E):q.parentNode&&q.parentNode.insertBefore(E,
|
||||
q);k.push(E)}this.shadows=k}return this};E.prototype.show=function(c){void 0===c&&(c=!0);return this.attr({visibility:c?"inherit":"visible"})};E.prototype.strokeSetter=function(c,a,f){this[a]=c;this.stroke&&this["stroke-width"]?(E.prototype.fillSetter.call(this,this.stroke,"stroke",f),f.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===a&&0===c&&this.hasStroke?(f.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(f.setAttribute("stroke-width",
|
||||
this["stroke-width"]),this.hasStroke=!0)};E.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),a=0;if(c.indexOf("px")===c.length-2)a=D(c);else if(""!==c){var f=r.createElementNS(h,"rect");g(f,{width:c,"stroke-width":0});this.element.parentNode.appendChild(f);a=f.getBBox().width;f.parentNode.removeChild(f)}return a};E.prototype.symbolAttr=function(c){var a=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(f){a[f]=
|
||||
k(c[f],a[f])});a.attr({d:a.renderer.symbols[a.symbolName](a.x,a.y,a.width,a.height,a)})};E.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};E.prototype.titleSetter=function(c){var a=this.element,f=a.getElementsByTagName("title")[0]||r.createElementNS(this.SVG_NS,"title");a.insertBefore?a.insertBefore(f,a.firstChild):a.appendChild(f);f.textContent=String(k(c,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,
|
||||
">")};E.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};E.prototype.translate=function(c,a){return this.attr({translateX:c,translateY:a})};E.prototype.updateShadows=function(c,a,f){var k=this.shadows;if(k)for(var q=k.length;q--;)f.call(k[q],"height"===c?Math.max(a-(k[q].cutHeight||0),0):"d"===c?this.d:a,c,k[q])};E.prototype.updateTransform=function(){var c=this.scaleX,a=this.scaleY,f=this.inverted,q=this.rotation,d=this.matrix,l=this.element,g=this.translateX||
|
||||
0,m=this.translateY||0;f&&(g+=this.width,m+=this.height);g=["translate("+g+","+m+")"];G(d)&&g.push("matrix("+d.join(",")+")");f?g.push("rotate(90) scale(-1,1)"):q&&g.push("rotate("+q+" "+k(this.rotationOriginX,l.getAttribute("x"),0)+" "+k(this.rotationOriginY,l.getAttribute("y")||0)+")");(G(c)||G(a))&&g.push("scale("+k(c,1)+" "+k(a,1)+")");g.length&&!(this.text||this).textPath&&l.setAttribute("transform",g.join(" "))};E.prototype.visibilitySetter=function(c,a,f){"inherit"===c?f.removeAttribute(a):
|
||||
this[a]!==c&&f.setAttribute(a,c);this[a]=c};E.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};E.prototype.zIndexSetter=function(c,a){var f=this.renderer,k=this.parentGroup,q=(k||f).element||f.box,d=this.element;f=q===f.box;var l=!1;var g=this.added;var m;G(c)?(d.setAttribute("data-z-index",c),c=+c,this[a]===c&&(g=!1)):G(this[a])&&d.removeAttribute("data-z-index");this[a]=c;if(g){(c=this.zIndex)&&k&&(k.handleZ=!0);a=
|
||||
q.childNodes;for(m=a.length-1;0<=m&&!l;m--){k=a[m];g=k.getAttribute("data-z-index");var w=!G(g);if(k!==d)if(0>c&&w&&!f&&!m)q.insertBefore(d,a[m]),l=!0;else if(D(g)<=c||w&&(!G(c)||0<=c))q.insertBefore(d,a[m+1]||null),l=!0}l||(q.insertBefore(d,a[f?3:0]||null),l=!0)}return l};return E}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=
|
||||
b.prototype.scaleXSetter=b.prototype.scaleYSetter=b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,a){this[a]=c;this.doTransform=!0};"";return b});I(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(b){var e;(function(e){e.rendererTypes={};var K;e.getRendererType=function(b){void 0===b&&(b=K);return e.rendererTypes[b]||e.rendererTypes[K]};e.registerRendererType=function(v,t,F){e.rendererTypes[v]=t;if(!K||F)K=v,b.Renderer=t}})(e||
|
||||
(e={}));return e});I(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e){var K=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var d in g)g.hasOwnProperty(d)&&(a[d]=g[d])};return b(h,a)};return function(h,a){function d(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),B=e.defined,
|
||||
v=e.extend,t=e.isNumber,F=e.merge,z=e.pick,r=e.removeEvent;return function(p){function h(a,d,g,m,n,b,J,x,C,u){var l=p.call(this)||this;l.paddingLeftSetter=l.paddingSetter;l.paddingRightSetter=l.paddingSetter;l.init(a,"g");l.textStr=d;l.x=g;l.y=m;l.anchorX=b;l.anchorY=J;l.baseline=C;l.className=u;l.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label");u&&l.addClass("highcharts-"+u);l.text=a.text(void 0,0,0,x).attr({zIndex:1});var A;"string"===typeof n&&((A=/^url\((.*?)\)$/.test(n))||l.renderer.symbols[n])&&
|
||||
(l.symbolKey=n);l.bBox=h.emptyBBox;l.padding=3;l.baselineOffset=0;l.needsBox=a.styledMode||A;l.deferredAttr={};l.alignFactor=0;return l}K(h,p);h.prototype.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==this.alignFactor&&(this.alignFactor=a,this.bBox&&t(this.xSetting)&&this.attr({x:this.xSetting}))};h.prototype.anchorXSetter=function(a,d){this.anchorX=a;this.boxAttr(d,Math.round(a)-this.getCrispAdjust()-this.xSetting)};h.prototype.anchorYSetter=function(a,d){this.anchorY=a;this.boxAttr(d,
|
||||
a-this.ySetting)};h.prototype.boxAttr=function(a,d){this.box?this.box.attr(a,d):this.deferredAttr[a]=d};h.prototype.css=function(a){if(a){var d={};a=F(a);h.textProps.forEach(function(g){"undefined"!==typeof a[g]&&(d[g]=a[g],delete a[g])});this.text.css(d);var g="width"in d;"fontSize"in d||"fontWeight"in d?this.updateTextPadding():g&&this.updateBoxSize()}return b.prototype.css.call(this,a)};h.prototype.destroy=function(){r(this.element,"mouseenter");r(this.element,"mouseleave");this.text&&this.text.destroy();
|
||||
this.box&&(this.box=this.box.destroy());b.prototype.destroy.call(this)};h.prototype.fillSetter=function(a,d){a&&(this.needsBox=!0);this.fill=a;this.boxAttr(d,a)};h.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var a=this.padding,d=z(this.paddingLeft,a);return{width:this.width,height:this.height,x:this.bBox.x-d,y:this.bBox.y-a}};h.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?
|
||||
parseInt(this["stroke-width"],10):0)%2/2};h.prototype.heightSetter=function(a){this.heightSetting=a};h.prototype.onAdd=function(){var a=this.textStr;this.text.add(this);this.attr({text:B(a)?a:"",x:this.x,y:this.y});this.box&&B(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};h.prototype.paddingSetter=function(a,d){t(a)?a!==this[d]&&(this[d]=a,this.updateTextPadding()):this[d]=void 0};h.prototype.rSetter=function(a,d){this.boxAttr(d,a)};h.prototype.shadow=function(a){a&&!this.renderer.styledMode&&
|
||||
(this.updateBoxSize(),this.box&&this.box.shadow(a));return this};h.prototype.strokeSetter=function(a,d){this.stroke=a;this.boxAttr(d,a)};h.prototype["stroke-widthSetter"]=function(a,d){a&&(this.needsBox=!0);this["stroke-width"]=a;this.boxAttr(d,a)};h.prototype["text-alignSetter"]=function(a){this.textAlign=a};h.prototype.textSetter=function(a){"undefined"!==typeof a&&this.text.attr({text:a});this.updateTextPadding()};h.prototype.updateBoxSize=function(){var a=this.text,d=a.element.style,g={},m=this.padding,
|
||||
n=this.bBox=t(this.widthSetting)&&t(this.heightSetting)&&!this.textAlign||!B(a.textStr)?h.emptyBBox:a.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||n.height||0)+2*m;d=this.renderer.fontMetrics(d&&d.fontSize,a);this.baselineOffset=m+Math.min((this.text.firstLineMetrics||d).b,n.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2);this.needsBox&&!a.textPath&&(this.box||(a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),
|
||||
a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(),g.x=a,g.y=(this.baseline?-this.baselineOffset:0)+a,g.width=Math.round(this.width),g.height=Math.round(this.height),this.box.attr(v(g,this.deferredAttr)),this.deferredAttr={})};h.prototype.updateTextPadding=function(){var a=this.text;if(!a.textPath){this.updateBoxSize();var d=this.baseline?0:this.baselineOffset,g=z(this.paddingLeft,this.padding);
|
||||
B(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(g+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(g!==a.x||d!==a.y)a.attr("x",g),a.hasBoxWidthChanged&&(this.bBox=a.getBBox(!0)),"undefined"!==typeof d&&a.attr("y",d);a.x=g;a.y=d}};h.prototype.widthSetter=function(a){this.widthSetting=t(a)?a:void 0};h.prototype.getPaddedWidth=function(){var a=this.padding,d=z(this.paddingLeft,a);a=z(this.paddingRight,a);return(this.widthSetting||this.bBox.width||
|
||||
0)+d+a};h.prototype.xSetter=function(a){this.x=a;this.alignFactor&&(a-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(a);this.attr("translateX",this.xSetting)};h.prototype.ySetter=function(a){this.ySetting=this.y=Math.round(a);this.attr("translateY",this.ySetting)};h.emptyBBox={width:0,height:0,x:0,y:0};h.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return h}(b)});
|
||||
I(e,"Core/Renderer/SVG/Symbols.js",[e["Core/Utilities.js"]],function(b){function e(b,e,p,h,a){var d=[];if(a){var g=a.start||0,m=F(a.r,p);p=F(a.r,h||p);var n=(a.end||0)-.001;h=a.innerR;var G=F(a.open,.001>Math.abs((a.end||0)-g-2*Math.PI)),J=Math.cos(g),x=Math.sin(g),C=Math.cos(n),u=Math.sin(n);g=F(a.longArc,.001>n-g-Math.PI?0:1);d.push(["M",b+m*J,e+p*x],["A",m,p,0,g,F(a.clockwise,1),b+m*C,e+p*u]);v(h)&&d.push(G?["M",b+h*C,e+h*u]:["L",b+h*C,e+h*u],["A",h,h,0,g,v(a.clockwise)?1-a.clockwise:0,b+h*J,e+
|
||||
h*x]);G||d.push(["Z"])}return d}function y(b,e,p,h,a){return a&&a.r?B(b,e,p,h,a):[["M",b,e],["L",b+p,e],["L",b+p,e+h],["L",b,e+h],["Z"]]}function B(b,e,p,h,a){a=a&&a.r||0;return[["M",b+a,e],["L",b+p-a,e],["C",b+p,e,b+p,e,b+p,e+a],["L",b+p,e+h-a],["C",b+p,e+h,b+p,e+h,b+p-a,e+h],["L",b+a,e+h],["C",b,e+h,b,e+h,b,e+h-a],["L",b,e+a],["C",b,e,b,e,b+a,e]]}var v=b.defined,t=b.isNumber,F=b.pick;return{arc:e,callout:function(b,e,p,h,a){var d=Math.min(a&&a.r||0,p,h),g=d+6,m=a&&a.anchorX;a=a&&a.anchorY||0;var n=
|
||||
B(b,e,p,h,{r:d});if(!t(m))return n;b+m>=p?a>e+g&&a<e+h-g?n.splice(3,1,["L",b+p,a-6],["L",b+p+6,a],["L",b+p,a+6],["L",b+p,e+h-d]):n.splice(3,1,["L",b+p,h/2],["L",m,a],["L",b+p,h/2],["L",b+p,e+h-d]):0>=b+m?a>e+g&&a<e+h-g?n.splice(7,1,["L",b,a+6],["L",b-6,a],["L",b,a-6],["L",b,e+d]):n.splice(7,1,["L",b,h/2],["L",m,a],["L",b,h/2],["L",b,e+d]):a&&a>h&&m>b+g&&m<b+p-g?n.splice(5,1,["L",m+6,e+h],["L",m,e+h+6],["L",m-6,e+h],["L",b+d,e+h]):a&&0>a&&m>b+g&&m<b+p-g&&n.splice(1,1,["L",m-6,e],["L",m,e-6],["L",m+
|
||||
6,e],["L",p-d,e]);return n},circle:function(b,r,p,h){return e(b+p/2,r+h/2,p/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,e,p,h){return[["M",b+p/2,e],["L",b+p,e+h/2],["L",b+p/2,e+h],["L",b,e+h/2],["Z"]]},rect:y,roundedRect:B,square:y,triangle:function(b,e,p,h){return[["M",b+p/2,e],["L",b+p,e+h],["L",b,e+h],["Z"]]},"triangle-down":function(b,e,p,h){return[["M",b,e],["L",b+p,e],["L",b+p/2,e+h],["Z"]]}}});I(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],
|
||||
e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y){var K=e.doc,v=e.SVG_NS,t=e.win,F=y.attr,z=y.extend,r=y.fireEvent,p=y.isString,h=y.objectEach,a=y.pick;return function(){function d(a){var d=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=d&&d.lineHeight;this.textOutline=d&&d.textOutline;this.ellipsis=!(!d||"ellipsis"!==d.textOverflow);this.noWrap=!(!d||"nowrap"!==d.whiteSpace);this.fontSize=d&&d.fontSize}d.prototype.buildSVG=function(){var d=
|
||||
this.svgElement,m=d.element,n=d.renderer,h=a(d.textStr,"").toString(),e=-1!==h.indexOf("<"),x=m.childNodes;n=this.width&&!d.added&&n.box;var C=/<br.*?>/g,u=[h,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(u!==d.textCache){d.textCache=u;delete d.actualWidth;for(u=x.length;u--;)m.removeChild(x[u]);e||this.ellipsis||this.width||d.textPath||-1!==h.indexOf(" ")&&(!this.noWrap||C.test(h))?""!==h&&(n&&n.appendChild(m),h=new b(h),this.modifyTree(h.nodes),
|
||||
h.addToDOM(m),this.modifyDOM(),this.ellipsis&&-1!==(m.textContent||"").indexOf("\u2026")&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),n&&n.removeChild(m)):m.appendChild(K.createTextNode(this.unescapeEntities(h)));p(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var a=this,d=this.svgElement,b=F(d.element,"x");d.firstLineMetrics=void 0;for(var h;h=d.element.firstChild;)if(/^[\s\u200B]*$/.test(h.textContent||" "))d.element.removeChild(h);
|
||||
else break;[].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"),function(g,l){g.nextSibling&&g.previousSibling&&(0===l&&1===g.previousSibling.nodeType&&(d.firstLineMetrics=d.renderer.fontMetrics(void 0,g.previousSibling)),F(g,{dy:a.getLineHeight(g.nextSibling),x:b}))});var e=this.width||0;if(e){var x=function(g,l){var m=g.textContent||"",f=m.replace(/([^\^])-/g,"$1- ").split(" "),w=!a.noWrap&&(1<f.length||1<d.element.childNodes.length),k=a.getLineHeight(l),D=0,c=d.actualWidth;if(a.ellipsis)m&&
|
||||
a.truncate(g,m,void 0,0,Math.max(0,e-parseInt(a.fontSize||12,10)),function(c,a){return c.substring(0,a)+"\u2026"});else if(w){m=[];for(w=[];l.firstChild&&l.firstChild!==g;)w.push(l.firstChild),l.removeChild(l.firstChild);for(;f.length;)f.length&&!a.noWrap&&0<D&&(m.push(g.textContent||""),g.textContent=f.join(" ").replace(/- /g,"-")),a.truncate(g,void 0,f,0===D?c||0:0,e,function(c,a){return f.slice(0,a).join(" ").replace(/- /g,"-")}),c=d.actualWidth,D++;w.forEach(function(c){l.insertBefore(c,g)});
|
||||
m.forEach(function(c){l.insertBefore(K.createTextNode(c),g);c=K.createElementNS(v,"tspan");c.textContent="\u200b";F(c,{dy:k,x:b});l.insertBefore(c,g)})}},C=function(a){[].slice.call(a.childNodes).forEach(function(l){l.nodeType===t.Node.TEXT_NODE?x(l,a):(-1!==l.className.baseVal.indexOf("highcharts-br")&&(d.actualWidth=0),C(l))})};C(d.element)}};d.prototype.getLineHeight=function(a){var d;a=a.nodeType===t.Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(d=a&&/(px|em)$/.test(a.style.fontSize)?
|
||||
a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(d,a||this.svgElement.element).h};d.prototype.modifyTree=function(a){var d=this,g=function(b,m){var h=b.attributes;h=void 0===h?{}:h;var n=b.children,u=b.style;u=void 0===u?{}:u;var l=b.tagName,A=d.renderer.styledMode;if("b"===l||"strong"===l)A?h["class"]="highcharts-strong":u.fontWeight="bold";else if("i"===l||"em"===l)A?h["class"]="highcharts-emphasized":
|
||||
u.fontStyle="italic";u&&u.color&&(u.fill=u.color);"br"===l?(h["class"]="highcharts-br",b.textContent="\u200b",(m=a[m+1])&&m.textContent&&(m.textContent=m.textContent.replace(/^ +/gm,""))):"a"===l&&n&&n.some(function(a){return"#text"===a.tagName})&&(b.children=[{children:n,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(b.tagName="tspan");z(b,{attributes:h,style:u});n&&n.filter(function(a){return"#text"!==a.tagName}).forEach(g)};a.forEach(g);r(this.svgElement,"afterModifyTree",{nodes:a})};d.prototype.truncate=
|
||||
function(a,d,b,h,e,x){var g=this.svgElement,m=g.renderer,l=g.rotation,n=[],f=b?1:0,w=(d||b||"").length,k=w,D,c=function(c,f){f=f||c;var k=a.parentNode;if(k&&"undefined"===typeof n[f])if(k.getSubStringLength)try{n[f]=h+k.getSubStringLength(0,b?f+1:f)}catch(L){""}else m.getSpanWidth&&(a.textContent=x(d||b,c),n[f]=h+m.getSpanWidth(g,a));return n[f]};g.rotation=0;var q=c(a.textContent.length);if(h+q>e){for(;f<=w;)k=Math.ceil((f+w)/2),b&&(D=x(b,k)),q=c(k,D&&D.length-1),f===w?f=w+1:q>e?w=k-1:f=k;0===w?
|
||||
a.textContent="":d&&w===d.length-1||(a.textContent=D||x(d||b,k))}b&&b.splice(0,k);g.actualWidth=q;g.rotation=l};d.prototype.unescapeEntities=function(a,d){h(this.renderer.escapes,function(g,b){d&&-1!==d.indexOf(g)||(a=a.toString().replace(new RegExp(g,"g"),b))});return a};return d}()});I(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],
|
||||
e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F,z,r){var p=y.charts,h=y.deg2rad,a=y.doc,d=y.isFirefox,g=y.isMS,m=y.isWebKit,n=y.noop,G=y.SVG_NS,J=y.symbolSizes,x=y.win,C=r.addEvent,u=r.attr,l=r.createElement,A=r.css,f=r.defined,w=r.destroyObjectProperties,k=r.extend,D=r.isArray,c=r.isNumber,q=r.isObject,E=r.isString,H=r.merge,Q=r.pick,L=r.pInt,K=r.uniqueKey,V;y=function(){function n(c,a,f,k,d,q,l){this.width=this.url=this.style=
|
||||
this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,a,f,k,d,q,l)}n.prototype.init=function(c,f,k,q,l,g,b){var w=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),D=w.element;b||w.css(this.getStyle(q));c.appendChild(D);u(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&u(D,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=D;this.boxWrapper=w;this.alignedObjects=
|
||||
[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 10.2.1"));this.defs=this.createElement("defs").add();this.allowHTML=g;this.forExport=l;this.styledMode=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(f,k,!1);var n;d&&c.getBoundingClientRect&&(f=function(){A(c,{left:0,top:0});n=c.getBoundingClientRect();A(c,{left:Math.ceil(n.left)-n.left+"px",top:Math.ceil(n.top)-n.top+"px"})},f(),this.unSubPixelFix=
|
||||
C(x,"resize",f))};n.prototype.definition=function(c){return(new b([c])).addToDOM(this.defs.element)};n.prototype.getReferenceURL=function(){if((d||m)&&a.getElementsByTagName("base").length){if(!f(V)){var c=K();c=(new b([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(c,")"),fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(a.body);
|
||||
A(c,{position:"fixed",top:0,left:0,zIndex:9E5});var k=a.elementFromPoint(6,6);V="hitme"===(k&&k.id);a.body.removeChild(c)}if(V)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};n.prototype.getStyle=function(c){return this.style=k({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};n.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};
|
||||
n.prototype.destroy=function(){var c=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();w(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};n.prototype.createElement=function(c){var a=new this.Element;a.init(this,c);return a};n.prototype.getRadialAttr=function(c,a){return{cx:c[0]-c[2]/2+(a.cx||0)*c[2],cy:c[1]-c[2]/2+(a.cy||0)*c[2],r:(a.r||0)*c[2]}};n.prototype.buildText=function(c){(new z(c)).buildSVG()};
|
||||
n.prototype.getContrast=function(c){c=e.parse(c).rgba.map(function(c){c/=255;return.03928>=c?c/12.92:Math.pow((c+.055)/1.055,2.4)});c=.2126*c[0]+.7152*c[1]+.0722*c[2];return 1.05/(c+.05)>(c+.05)/.05?"#FFFFFF":"#000000"};n.prototype.button=function(c,a,f,d,l,w,D,n,m,h){void 0===l&&(l={});var E=this.label(c,a,f,m,void 0,void 0,h,void 0,"button"),u=this.styledMode;c=l.states||{};var A=0;l=H(l);delete l.states;var P=H({color:"#333333",cursor:"pointer",fontWeight:"normal"},l.style);delete l.style;var e=
|
||||
b.filterUserAttributes(l);E.attr(H({padding:8,r:2},e));if(!u){e=H({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},e);w=H(e,{fill:"#e6e6e6"},b.filterUserAttributes(w||c.hover||{}));var x=w.style;delete w.style;D=H(e,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(D||c.select||{}));var G=D.style;delete D.style;n=H(e,{style:{color:"#cccccc"}},b.filterUserAttributes(n||c.disabled||{}));var R=n.style;delete n.style}C(E.element,g?"mouseover":"mouseenter",function(){3!==
|
||||
A&&E.setState(1)});C(E.element,g?"mouseout":"mouseleave",function(){3!==A&&E.setState(A)});E.setState=function(c){1!==c&&(E.state=A=c);E.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][c||0]);u||(E.attr([e,w,D,n][c||0]),c=[P,x,G,R][c||0],q(c)&&E.css(c))};u||E.attr(e).css(k({cursor:"default"},P));return E.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==A&&d.call(E,c)})};n.prototype.crispLine=
|
||||
function(c,a,k){void 0===k&&(k="round");var d=c[0],q=c[1];f(d[1])&&d[1]===q[1]&&(d[1]=q[1]=Math[k](d[1])-a%2/2);f(d[2])&&d[2]===q[2]&&(d[2]=q[2]=Math[k](d[2])+a%2/2);return c};n.prototype.path=function(c){var a=this.styledMode?{}:{fill:"none"};D(c)?a.d=c:q(c)&&k(a,c);return this.createElement("path").attr(a)};n.prototype.circle=function(c,a,f){c=q(c)?c:"undefined"===typeof c?{}:{x:c,y:a,r:f};a=this.createElement("circle");a.xSetter=a.ySetter=function(c,a,f){f.setAttribute("c"+a,c)};return a.attr(c)};
|
||||
n.prototype.arc=function(c,a,f,k,d,l){q(c)?(k=c,a=k.y,f=k.r,c=k.x):k={innerR:k,start:d,end:l};c=this.symbol("arc",c,a,f,f,k);c.r=f;return c};n.prototype.rect=function(c,a,f,k,d,l){d=q(c)?c.r:d;var g=this.createElement("rect");c=q(c)?c:"undefined"===typeof c?{}:{x:c,y:a,width:Math.max(f,0),height:Math.max(k,0)};this.styledMode||("undefined"!==typeof l&&(c["stroke-width"]=l,c=g.crisp(c)),c.fill="none");d&&(c.r=d);g.rSetter=function(c,a,f){g.r=c;u(f,{rx:c,ry:c})};g.rGetter=function(){return g.r||0};
|
||||
return g.attr(c)};n.prototype.setSize=function(c,a,f){this.width=c;this.height=a;this.boxWrapper.animate({width:c,height:a},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Q(f,!0)?void 0:0});this.alignElements()};n.prototype.g=function(c){var a=this.createElement("g");return c?a.attr({"class":"highcharts-"+c}):a};n.prototype.image=function(a,f,k,d,q,l){var g={preserveAspectRatio:"none"},b=function(c,a){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink",
|
||||
"href",a):c.setAttribute("hc-svg-href",a)};c(f)&&(g.x=f);c(k)&&(g.y=k);c(d)&&(g.width=d);c(q)&&(g.height=q);var w=this.createElement("image").attr(g);f=function(c){b(w.element,a);l.call(w,c)};l?(b(w.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),k=new x.Image,C(k,"load",f),k.src=a,k.complete&&f({})):b(w.element,a);return w};n.prototype.symbol=function(c,d,q,g,w,b){var D=this,n=/^url\((.*?)\)$/,m=n.test(c),h=!m&&(this.symbols[c]?c:"circle"),E=h&&this.symbols[h],
|
||||
u;if(E){"number"===typeof d&&(u=E.call(this.symbols,Math.round(d||0),Math.round(q||0),g||0,w||0,b));var P=this.path(u);D.styledMode||P.attr("fill","none");k(P,{symbolName:h||void 0,x:d,y:q,width:g,height:w});b&&k(P,b)}else if(m){var e=c.match(n)[1];var H=P=this.image(e);H.imgwidth=Q(J[e]&&J[e].width,b&&b.width);H.imgheight=Q(J[e]&&J[e].height,b&&b.height);var x=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(c){H[c+"Setter"]=function(c,a){var k=this["img"+
|
||||
a];this[a]=c;f(k)&&(b&&"within"===b.backgroundSize&&this.width&&this.height&&(k=Math.round(k*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(a,k),this.alignByTranslate||(c=((this[a]||0)-k)/2,this.attr("width"===a?{translateX:c}:{translateY:c})))}});f(d)&&H.attr({x:d,y:q});H.isImg=!0;f(H.imgwidth)&&f(H.imgheight)?x(H):(H.attr({width:0,height:0}),l("img",{onload:function(){var c=p[D.chartIndex];0===this.width&&(A(this,{position:"absolute",top:"-999em"}),
|
||||
a.body.appendChild(this));J[e]={width:this.width,height:this.height};H.imgwidth=this.width;H.imgheight=this.height;H.element&&x(H);this.parentNode&&this.parentNode.removeChild(this);D.imgCount--;if(!D.imgCount&&c&&!c.hasLoaded)c.onload()},src:e}),this.imgCount++)}return P};n.prototype.clipRect=function(c,a,f,k){var d=K()+"-",q=this.createElement("clipPath").attr({id:d}).add(this.defs);c=this.rect(c,a,f,k,0).add(q);c.id=d;c.clipPath=q;c.count=0;return c};n.prototype.text=function(c,a,k,d){var q={};
|
||||
if(d&&(this.allowHTML||!this.forExport))return this.html(c,a,k);q.x=Math.round(a||0);k&&(q.y=Math.round(k));f(c)&&(q.text=c);c=this.createElement("text").attr(q);if(!d||this.forExport&&!this.allowHTML)c.xSetter=function(c,a,f){for(var k=f.getElementsByTagName("tspan"),d=f.getAttribute(a),q=0,l;q<k.length;q++)l=k[q],l.getAttribute(a)===d&&l.setAttribute(a,c);f.setAttribute(a,c)};return c};n.prototype.fontMetrics=function(c,a){c=!this.styledMode&&/px/.test(c)||!x.getComputedStyle?c||a&&a.style&&a.style.fontSize||
|
||||
this.style&&this.style.fontSize:a&&v.prototype.getStyle.call(a,"font-size");c=/px/.test(c)?L(c):12;a=24>c?c+3:Math.round(1.2*c);return{h:a,b:Math.round(.8*a),f:c}};n.prototype.rotCorr=function(c,a,f){var k=c;a&&f&&(k=Math.max(k*Math.cos(a*h),4));return{x:-c/3*Math.sin(a*h),y:k}};n.prototype.pathToSegments=function(a){for(var f=[],k=[],d={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},q=0;q<a.length;q++)E(k[0])&&c(a[q])&&k.length===d[k[0].toUpperCase()]&&a.splice(q,0,k[0].replace("M","L").replace("m","l")),
|
||||
"string"===typeof a[q]&&(k.length&&f.push(k.slice(0)),k.length=0),k.push(a[q]);f.push(k.slice(0));return f};n.prototype.label=function(c,a,f,k,d,q,l,g,b){return new t(this,c,a,f,k,d,q,l,g,b)};n.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return n}();k(y.prototype,{Element:v,SVG_NS:G,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:F,draw:n});B.registerRendererType("svg",y,!0);"";return y});I(e,"Core/Renderer/HTML/HTMLElement.js",
|
||||
[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e,y){var K=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var g in d)d.hasOwnProperty(g)&&(a[g]=d[g])};return a(d,g)};return function(d,g){function b(){this.constructor=d}a(d,g);d.prototype=null===g?Object.create(g):(b.prototype=g.prototype,new b)}}(),v=b.isFirefox,t=b.isMS,F=b.isWebKit,z=b.win,
|
||||
r=y.css,p=y.defined,h=y.extend,a=y.pick,d=y.pInt;return function(g){function b(){return null!==g&&g.apply(this,arguments)||this}K(b,g);b.compose=function(a){if(-1===b.composedClasses.indexOf(a)){b.composedClasses.push(a);var d=b.prototype,g=a.prototype;g.getSpanCorrection=d.getSpanCorrection;g.htmlCss=d.htmlCss;g.htmlGetBBox=d.htmlGetBBox;g.htmlUpdateTransform=d.htmlUpdateTransform;g.setSpanRotation=d.setSpanRotation}return a};b.prototype.getSpanCorrection=function(a,d,g){this.xCorr=-a*g;this.yCorr=
|
||||
-d};b.prototype.htmlCss=function(d){var g="SPAN"===this.element.tagName&&d&&"width"in d,b=a(g&&d.width,void 0);if(g){delete d.width;this.textWidth=b;var n=!0}d&&"ellipsis"===d.textOverflow&&(d.whiteSpace="nowrap",d.overflow="hidden");this.styles=h(this.styles,d);r(this.element,d);n&&this.htmlUpdateTransform();return this};b.prototype.htmlGetBBox=function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};b.prototype.htmlUpdateTransform=function(){if(this.added){var a=
|
||||
this.renderer,g=this.element,b=this.translateX||0,h=this.translateY||0,m=this.x||0,u=this.y||0,l=this.textAlign||"left",A={left:0,center:.5,right:1}[l],f=this.styles;f=f&&f.whiteSpace;r(g,{marginLeft:b,marginTop:h});!a.styledMode&&this.shadows&&this.shadows.forEach(function(c){r(c,{marginLeft:b+1,marginTop:h+1})});this.inverted&&[].forEach.call(g.childNodes,function(c){a.invertChild(c,g)});if("SPAN"===g.tagName){var w=this.rotation,k=this.textWidth&&d(this.textWidth),D=[w,l,g.innerHTML,this.textWidth,
|
||||
this.textAlign].join(),c=void 0;c=!1;if(k!==this.oldTextWidth){if(this.textPxLength)var q=this.textPxLength;else r(g,{width:"",whiteSpace:f||"nowrap"}),q=g.offsetWidth;(k>this.oldTextWidth||q>k)&&(/[ \-]/.test(g.textContent||g.innerText)||"ellipsis"===g.style.textOverflow)&&(r(g,{width:q>k||w?k+"px":"auto",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=k,c=!0)}this.hasBoxWidthChanged=c;D!==this.cTT&&(c=a.fontMetrics(g.style.fontSize,g).b,!p(w)||w===(this.oldRotation||0)&&l===this.oldAlign||
|
||||
this.setSpanRotation(w,A,c),this.getSpanCorrection(!p(w)&&this.textPxLength||g.offsetWidth,c,A,w,l));r(g,{left:m+(this.xCorr||0)+"px",top:u+(this.yCorr||0)+"px"});this.cTT=D;this.oldRotation=w;this.oldAlign=l}}else this.alignOnAdd=!0};b.prototype.setSpanRotation=function(a,d,g){var b={},h=t&&!/Edge/.test(z.navigator.userAgent)?"-ms-transform":F?"-webkit-transform":v?"MozTransform":z.opera?"-o-transform":void 0;h&&(b[h]=b.transform="rotate("+a+"deg)",b[h+(v?"Origin":"-origin")]=b.transformOrigin=100*
|
||||
d+"% "+g+"px",r(this.element,b))};b.composedClasses=[];return b}(e)});I(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var d in g)g.hasOwnProperty(d)&&(a[d]=g[d])};return b(h,a)};return function(h,
|
||||
a){function d(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),t=B.attr,K=B.createElement,z=B.extend,r=B.pick;return function(p){function h(){return null!==p&&p.apply(this,arguments)||this}v(h,p);h.compose=function(a){-1===h.composedClasses.indexOf(a)&&(h.composedClasses.push(a),a.prototype.html=h.prototype.html);return a};h.prototype.html=function(a,d,g){var h=this.createElement("span"),n=h.element,p=h.renderer,J=p.isSVG,x=function(a,d){["opacity",
|
||||
"visibility"].forEach(function(l){a[l+"Setter"]=function(g,f,b){var k=a.div?a.div.style:d;e.prototype[l+"Setter"].call(this,g,f,b);k&&(k[f]=g)}});a.addedSetters=!0};h.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,b.setElementHTML(this.element,r(a,"")),this.textStr=a,h.doTransform=!0)};J&&x(h,h.element.style);h.xSetter=h.ySetter=h.alignSetter=h.rotationSetter=function(a,d){"align"===d?h.alignValue=h.textAlign=a:h[d]=a;h.doTransform=!0};h.afterSetters=function(){this.doTransform&&
|
||||
(this.htmlUpdateTransform(),this.doTransform=!1)};h.attr({text:a,x:Math.round(d),y:Math.round(g)}).css({position:"absolute"});p.styledMode||h.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});n.style.whiteSpace="nowrap";h.css=h.htmlCss;J&&(h.add=function(a){var d=p.box.parentNode,g=[];if(this.parentGroup=a){var b=a.div;if(!b){for(;a;)g.push(a),a=a.parentGroup;g.reverse().forEach(function(a){function f(f,k){a[k]=f;"translateX"===k?c.left=f+"px":c.top=f+"px";a.doTransform=!0}var k=
|
||||
t(a.element,"class"),l=a.styles||{};b=a.div=a.div||K("div",k?{className:k}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,cursor:l.cursor,pointerEvents:l.pointerEvents,visibility:a.visibility},b||d);var c=b.style;z(a,{classSetter:function(c){return function(a){this.element.setAttribute("class",a);c.className=a}}(b),on:function(){g[0].div&&h.on.apply({element:g[0].div,onEvents:a.onEvents},arguments);return a},translateXSetter:f,
|
||||
translateYSetter:f});a.addedSetters||x(a)})}}else b=d;b.appendChild(n);h.added=!0;h.alignOnAdd&&h.htmlUpdateTransform();return h});return h};h.composedClasses=[];return h}(y)});I(e,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},
|
||||
week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,
|
||||
reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};b.defaultYAxisOptions=
|
||||
{reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};
|
||||
b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||(b={}));return b});I(e,"Core/Foundation.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,y=b.isFunction,B=b.objectEach,v=b.removeEvent,t;(function(b){b.registerEventOptions=function(b,r){b.eventOptions=b.eventOptions||{};B(r.events,function(p,h){b.eventOptions[h]!==
|
||||
p&&(b.eventOptions[h]&&(v(b,h,b.eventOptions[h]),delete b.eventOptions[h]),y(p)&&(b.eventOptions[h]=p,e(b,h,p)))})}})(t||(t={}));return t});I(e,"Core/Axis/Tick.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y){var K=e.deg2rad,v=y.clamp,t=y.correctFloat,F=y.defined,z=y.destroyObjectProperties,r=y.extend,p=y.fireEvent,h=y.isNumber,a=y.merge,d=y.objectEach,g=y.pick;e=function(){function m(a,d,g,b,h){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=d;this.type=
|
||||
g||"";this.parameters=h||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;p(this,"init");g||b||this.addLabel()}m.prototype.addLabel=function(){var a=this,d=a.axis,m=d.options,e=d.chart,C=d.categories,u=d.logarithmic,l=d.names,A=a.pos,f=g(a.options&&a.options.labels,m.labels),w=d.tickPositions,k=A===w[0],D=A===w[w.length-1],c=(!f.step||1===f.step)&&1===d.tickInterval;w=w.info;var q=a.label,E;C=this.parameters.category||(C?g(C[A],l[A],A):A);u&&h(C)&&(C=t(u.lin2log(C)));
|
||||
if(d.dateTime)if(w){var H=e.time.resolveDTLFormat(m.dateTimeLabelFormats[!m.grid&&w.higherRanks[A]||w.unitName]);var Q=H.main}else h(C)&&(Q=d.dateTime.getXDateFormat(C,m.dateTimeLabelFormats||{}));a.isFirst=k;a.isLast=D;var L={axis:d,chart:e,dateTimeLabelFormat:Q,isFirst:k,isLast:D,pos:A,tick:a,tickPositionInfo:w,value:C};p(this,"labelFormat",L);var v=function(c){return f.formatter?f.formatter.call(c,c):f.format?(c.text=d.defaultLabelFormatter.call(c),b.format(f.format,c,e)):d.defaultLabelFormatter.call(c,
|
||||
c)};m=v.call(L,L);var z=H&&H.list;a.shortenLabel=z?function(){for(E=0;E<z.length;E++)if(r(L,{dateTimeLabelFormat:z[E]}),q.attr({text:v.call(L,L)}),q.getBBox().width<d.getSlotWidth(a)-2*f.padding)return;q.attr({text:""})}:void 0;c&&d._addedPlotLB&&a.moveLabel(m,f);F(q)||a.movedLabel?q&&q.textStr!==m&&!c&&(!q.textWidth||f.style.width||q.styles.width||q.css({width:null}),q.attr({text:m}),q.textPxLength=q.getBBox().width):(a.label=q=a.createLabel({x:0,y:0},m,f),a.rotation=0)};m.prototype.createLabel=
|
||||
function(d,g,b){var h=this.axis,m=h.chart;if(d=F(g)&&b.enabled?m.renderer.text(g,d.x,d.y,b.useHTML).add(h.labelGroup):null)m.styledMode||d.css(a(b.style)),d.textPxLength=d.getBBox().width;return d};m.prototype.destroy=function(){z(this,this.axis)};m.prototype.getPosition=function(a,d,g,b){var h=this.axis,m=h.chart,l=b&&m.oldChartHeight||m.chartHeight;a={x:a?t(h.translate(d+g,void 0,void 0,b)+h.transB):h.left+h.offset+(h.opposite?(b&&m.oldChartWidth||m.chartWidth)-h.right-h.left:0),y:a?l-h.bottom+
|
||||
h.offset-(h.opposite?h.height:0):t(l-h.translate(d+g,void 0,void 0,b)-h.transB)};a.y=v(a.y,-1E5,1E5);p(this,"afterGetPosition",{pos:a});return a};m.prototype.getLabelPosition=function(a,d,g,b,h,m,l,A){var f=this.axis,w=f.transA,k=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,D=f.staggerLines,c=f.tickRotCorr||{x:0,y:0},q=b||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?.5:1),E={};g=0===f.side?g.rotation?-8:-g.getBBox().height:2===f.side?c.y+8:Math.cos(g.rotation*K)*
|
||||
(c.y-g.getBBox(!1,0).height/2);F(h.y)&&(g=0===f.side&&f.horiz?h.y+g:h.y);a=a+h.x+q+c.x-(m&&b?m*w*(k?-1:1):0);d=d+g-(m&&!b?m*w*(k?1:-1):0);D&&(b=l/(A||1)%D,f.opposite&&(b=D-b-1),d+=f.labelOffset/D*b);E.x=a;E.y=Math.round(d);p(this,"afterGetLabelPosition",{pos:E,tickmarkOffset:m,index:l});return E};m.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};m.prototype.getMarkPath=function(a,d,g,b,h,m){return m.crispLine([["M",a,d],["L",a+(h?0:-g),
|
||||
d+(h?g:0)]],b)};m.prototype.handleOverflow=function(a){var d=this.axis,b=d.options.labels,h=a.x,m=d.chart.chartWidth,n=d.chart.spacing,l=g(d.labelLeft,Math.min(d.pos,n[3]));n=g(d.labelRight,Math.max(d.isRadial?0:d.pos+d.len,m-n[1]));var A=this.label,f=this.rotation,w={left:0,center:.5,right:1}[d.labelAlign||A.attr("align")],k=A.getBBox().width,D=d.getSlotWidth(this),c={},q=D,E=1,e;if(f||"justify"!==b.overflow)0>f&&h-w*k<l?e=Math.round(h/Math.cos(f*K)-l):0<f&&h+w*k>n&&(e=Math.round((m-h)/Math.cos(f*
|
||||
K)));else if(m=h+(1-w)*k,h-w*k<l?q=a.x+q*(1-w)-l:m>n&&(q=n-a.x+q*w,E=-1),q=Math.min(D,q),q<D&&"center"===d.labelAlign&&(a.x+=E*(D-q-w*(D-Math.min(k,q)))),k>q||d.autoRotation&&(A.styles||{}).width)e=q;e&&(this.shortenLabel?this.shortenLabel():(c.width=Math.floor(e)+"px",(b.style||{}).textOverflow||(c.textOverflow="ellipsis"),A.css(c)))};m.prototype.moveLabel=function(a,g){var b=this,h=b.label,m=b.axis,n=m.reversed,l=!1;h&&h.textStr===a?(b.movedLabel=h,l=!0,delete b.label):d(m.ticks,function(f){l||
|
||||
f.isNew||f===b||!f.label||f.label.textStr!==a||(b.movedLabel=f.label,l=!0,f.labelPos=b.movedLabel.xy,delete f.label)});if(!l&&(b.labelPos||h)){var A=b.labelPos||h.xy;h=m.horiz?n?0:m.width+m.left:A.x;m=m.horiz?A.y:n?m.width+m.left:0;b.movedLabel=b.createLabel({x:h,y:m},a,g);b.movedLabel&&b.movedLabel.attr({opacity:0})}};m.prototype.render=function(a,d,b){var h=this.axis,m=h.horiz,n=this.pos,l=g(this.tickmarkOffset,h.tickmarkOffset);n=this.getPosition(m,n,l,d);l=n.x;var A=n.y;h=m&&l===h.pos+h.len||
|
||||
!m&&A===h.pos?-1:1;m=g(b,this.label&&this.label.newOpacity,1);b=g(b,1);this.isActive=!0;this.renderGridLine(d,b,h);this.renderMark(n,b,h);this.renderLabel(n,d,m,a);this.isNew=!1;p(this,"afterRender")};m.prototype.renderGridLine=function(a,d,b){var h=this.axis,m=h.options,n={},l=this.pos,A=this.type,f=g(this.tickmarkOffset,h.tickmarkOffset),w=h.chart.renderer,k=this.gridLine,D=m.gridLineWidth,c=m.gridLineColor,q=m.gridLineDashStyle;"minor"===this.type&&(D=m.minorGridLineWidth,c=m.minorGridLineColor,
|
||||
q=m.minorGridLineDashStyle);k||(h.chart.styledMode||(n.stroke=c,n["stroke-width"]=D||0,n.dashstyle=q),A||(n.zIndex=1),a&&(d=0),this.gridLine=k=w.path().attr(n).addClass("highcharts-"+(A?A+"-":"")+"grid-line").add(h.gridGroup));if(k&&(b=h.getPlotLinePath({value:l+f,lineWidth:k.strokeWidth()*b,force:"pass",old:a})))k[a||this.isNew?"attr":"animate"]({d:b,opacity:d})};m.prototype.renderMark=function(a,d,b){var h=this.axis,m=h.options,n=h.chart.renderer,l=this.type,A=h.tickSize(l?l+"Tick":"tick"),f=a.x;
|
||||
a=a.y;var w=g(m["minor"!==l?"tickWidth":"minorTickWidth"],!l&&h.isXAxis?1:0);m=m["minor"!==l?"tickColor":"minorTickColor"];var k=this.mark,D=!k;A&&(h.opposite&&(A[0]=-A[0]),k||(this.mark=k=n.path().addClass("highcharts-"+(l?l+"-":"")+"tick").add(h.axisGroup),h.chart.styledMode||k.attr({stroke:m,"stroke-width":w})),k[D?"attr":"animate"]({d:this.getMarkPath(f,a,A[0],k.strokeWidth()*b,h.horiz,n),opacity:d}))};m.prototype.renderLabel=function(a,d,b,m){var n=this.axis,u=n.horiz,l=n.options,A=this.label,
|
||||
f=l.labels,w=f.step;n=g(this.tickmarkOffset,n.tickmarkOffset);var k=a.x;a=a.y;var D=!0;A&&h(k)&&(A.xy=a=this.getLabelPosition(k,a,A,u,f,n,m,w),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?D=!1:!u||f.step||f.rotation||d||0===b||this.handleOverflow(a),w&&m%w&&(D=!1),D&&h(a.y)?(a.opacity=b,A[this.isNewLabel?"attr":"animate"](a).show(!0),this.isNewLabel=!1):(A.hide(),this.isNewLabel=!0))};m.prototype.replaceMovedLabel=function(){var a=this.label,d=this.axis,
|
||||
g=d.reversed;if(a&&!this.isNew){var b=d.horiz?g?d.left:d.width+d.left:a.xy.x;g=d.horiz?a.xy.y:g?d.width+d.top:d.top;a.animate({x:b,y:g,opacity:0},void 0,a.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return m}();"";return e});I(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/DefaultOptions.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],
|
||||
function(b,e,y,B,v,t,F,z){var r=b.animObject,p=B.defaultOptions,h=v.registerEventOptions,a=t.deg2rad,d=z.arrayMax,g=z.arrayMin,m=z.clamp,n=z.correctFloat,G=z.defined,J=z.destroyObjectProperties,x=z.erase,C=z.error,u=z.extend,l=z.fireEvent,A=z.isArray,f=z.isNumber,w=z.isString,k=z.merge,D=z.normalizeTickInterval,c=z.objectEach,q=z.pick,E=z.relativeLength,H=z.removeEvent,Q=z.splat,L=z.syncTimeout,K=function(c,a){return D(a,void 0,void 0,q(c.options.allowDecimals,.5>a||void 0!==c.tickAmount),!!c.tickAmount)};
|
||||
b=function(){function b(c,a){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=
|
||||
this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(c,a)}b.prototype.init=function(c,a){var d=a.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!d:d;this.isXAxis=d;this.coll=this.coll||(d?"xAxis":"yAxis");l(this,"init",{userOptions:a});this.opposite=q(a.opposite,
|
||||
this.opposite);this.side=q(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var k=this.options,b=k.labels,g=k.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=q(k.reversed,this.reversed);this.visible=k.visible;this.zoomEnabled=k.zoomEnabled;this.hasNames="category"===g||!0===k.categories;this.categories=k.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;
|
||||
this.isLinked=G(k.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=k.minRange||k.maxZoom;this.range=k.range;this.offset=k.offset||0;this.min=this.max=null;a=q(k.crosshair,Q(c.options.tooltip.crosshairs)[d?0:1]);this.crosshair=!0===a?{}:a;-1===c.axes.indexOf(this)&&(d?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),c[this.coll].push(this));this.series=this.series||[];c.inverted&&!this.isZAxis&&
|
||||
d&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=f(b.rotation)?b.rotation:void 0;h(this,k);l(this,"afterInit")};b.prototype.setOptions=function(c){this.options=k(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],k(p[this.coll],c));l(this,"afterSetOptions",{userOptions:c})};b.prototype.defaultLabelFormatter=function(c){var a=this.axis;c=this.chart.numberFormatter;
|
||||
var d=f(this.value)?this.value:NaN,k=a.chart.time,b=this.dateTimeLabelFormat,q=p.lang,g=q.numericSymbols;q=q.numericSymbolMagnitude||1E3;var l=a.logarithmic?Math.abs(d):a.tickInterval,h=g&&g.length;if(a.categories)var w="".concat(this.value);else if(b)w=k.dateFormat(b,d);else if(h&&1E3<=l)for(;h--&&"undefined"===typeof w;)a=Math.pow(q,h+1),l>=a&&0===10*d%a&&null!==g[h]&&0!==d&&(w=c(d/a,-1)+g[h]);"undefined"===typeof w&&(w=1E4<=Math.abs(d)?c(d,-1):c(d,-1,void 0,""));return w};b.prototype.getSeriesExtremes=
|
||||
function(){var c=this,a=c.chart,d;l(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(k){if(k.visible||!a.options.chart.ignoreHiddenSeries){var b=k.options,g=b.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=g&&(g=null);if(c.isXAxis){if(b=k.xData,b.length){b=c.logarithmic?b.filter(c.validatePositiveValue):b;d=k.getXExtremes(b);var l=d.min;var h=d.max;
|
||||
f(l)||l instanceof Date||(b=b.filter(f),d=k.getXExtremes(b),l=d.min,h=d.max);b.length&&(c.dataMin=Math.min(q(c.dataMin,l),l),c.dataMax=Math.max(q(c.dataMax,h),h))}}else if(k=k.applyExtremes(),f(k.dataMin)&&(l=k.dataMin,c.dataMin=Math.min(q(c.dataMin,l),l)),f(k.dataMax)&&(h=k.dataMax,c.dataMax=Math.max(q(c.dataMax,h),h)),G(g)&&(c.threshold=g),!b.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});l(this,"afterGetSeriesExtremes")};b.prototype.translate=function(c,a,d,k,b,q){var g=this.linkedParent||
|
||||
this,l=k&&g.old?g.old.min:g.min;if(!f(l))return NaN;var h=g.minPixelPadding;b=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&b)&&g.lin2val;var w=1,D=0;k=k&&g.old?g.old.transA:g.transA;k||(k=g.transA);d&&(w*=-1,D=g.len);g.reversed&&(w*=-1,D-=w*(g.sector||g.len));a?(q=(c*w+D-h)/k+l,b&&(q=g.lin2val(q))):(b&&(c=g.val2lin(c)),c=w*(c-l)*k,q=(g.isRadial?c:n(c))+D+w*h+(f(q)?k*q:0));return q};b.prototype.toPixels=function(c,a){return this.translate(c,!1,!this.horiz,void 0,!0)+(a?0:this.pos)};
|
||||
b.prototype.toValue=function(c,a){return this.translate(c-(a?0:this.pos),!0,!this.horiz,void 0,!0)};b.prototype.getPlotLinePath=function(c){function a(c,a,f){if("pass"!==u&&c<a||c>f)u?c=m(c,a,f):C=!0;return c}var d=this,k=d.chart,b=d.left,g=d.top,h=c.old,w=c.value,D=c.lineWidth,E=h&&k.oldChartHeight||k.chartHeight,n=h&&k.oldChartWidth||k.chartWidth,A=d.transB,e=c.translatedValue,u=c.force,H,P,p,x,C;c={value:w,lineWidth:D,old:h,force:u,acrossPanes:c.acrossPanes,translatedValue:e};l(this,"getPlotLinePath",
|
||||
c,function(c){e=q(e,d.translate(w,void 0,void 0,h));e=m(e,-1E5,1E5);H=p=Math.round(e+A);P=x=Math.round(E-e-A);f(e)?d.horiz?(P=g,x=E-d.bottom,H=p=a(H,b,b+d.width)):(H=b,p=n-d.right,P=x=a(P,g,g+d.height)):(C=!0,u=!1);c.path=C&&!u?null:k.renderer.crispLine([["M",H,P],["L",p,x]],D||1)});return c.path};b.prototype.getLinearTickPositions=function(c,a,f){var d=n(Math.floor(a/c)*c);f=n(Math.ceil(f/c)*c);var k=[],b;n(d+c)===d&&(b=20);if(this.single)return[a];for(a=d;a<=f;){k.push(a);a=n(a+c,b);if(a===q)break;
|
||||
var q=a}return k};b.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?q(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};b.prototype.getMinorTickPositions=function(){var c=this.options,a=this.tickPositions,f=this.minorTickInterval,d=this.pointRangePadding||0,k=this.min-d;d=this.max+d;var b=d-k,q=[];if(b&&b/f<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(c,a,d){a&&q.push.apply(q,g.getLogTickPositions(f,d[a-1],d[a],
|
||||
!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())q=q.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(f),k,d,c.startOfWeek));else for(c=k+(a[0]-k)%f;c<=d&&c!==q[0];c+=f)q.push(c)}0!==q.length&&this.trimTicks(q);return q};b.prototype.adjustForMinRange=function(){var c=this.options,a=this.logarithmic,f=this.min,k=this.max,b=0,l,h,w,D;this.isXAxis&&"undefined"===typeof this.minRange&&!a&&(G(c.min)||G(c.max)||G(c.floor)||G(c.ceiling)?this.minRange=null:(this.series.forEach(function(c){w=
|
||||
c.xData;D=c.xIncrement?1:w.length-1;if(1<w.length)for(l=D;0<l;l--)if(h=w[l]-w[l-1],!b||h<b)b=h}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(k-f<this.minRange){var m=this.dataMax-this.dataMin>=this.minRange;var E=this.minRange;var n=(E-k+f)/2;n=[f-n,q(c.min,f-n)];m&&(n[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f=d(n);k=[f+E,q(c.max,f+E)];m&&(k[2]=a?a.log2lin(this.dataMax):this.dataMax);k=g(k);k-f<E&&(n[0]=k-E,n[1]=q(c.min,k-E),f=d(n))}this.min=f;this.max=
|
||||
k};b.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(a){var f=a.closestPointRange,d=a.visible||!a.chart.options.chart.ignoreHiddenSeries;!a.noSharedTooltip&&G(f)&&d&&(c=G(c)?Math.min(c,f):f)});return c};b.prototype.nameToX=function(c){var a=A(this.options.categories),f=a?this.categories:this.names,d=c.options.x;c.series.requireSorting=!1;G(d)||(d=this.options.uniqueNames&&f?a?f.indexOf(c.name):q(f.keys[c.name],-1):c.series.autoIncrement());if(-1===d){if(!a&&
|
||||
f)var k=f.length}else k=d;"undefined"!==typeof k?(this.names[k]=c.name,this.names.keys[c.name]=k):c.x&&(k=c.x);return k};b.prototype.updateNames=function(){var c=this,a=this.names;0<a.length&&(Object.keys(a.keys).forEach(function(c){delete a.keys[c]}),a.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)c.max=Math.max(c.max,a.xData.length-1),a.processData(),a.generatePoints();a.data.forEach(function(f,d){if(f&&f.options&&"undefined"!==
|
||||
typeof f.name){var k=c.nameToX(f);"undefined"!==typeof k&&k!==f.x&&(f.x=k,a.xData[d]=k)}})}))};b.prototype.setAxisTranslation=function(){var c=this,a=c.max-c.min,f=c.linkedParent,d=!!c.categories,k=c.isXAxis,b=c.axisPointRange||0,g=0,h=0,D=c.transA;if(k||d||b){var m=c.getClosest();f?(g=f.minPointOffset,h=f.pointRangePadding):c.series.forEach(function(a){var f=d?1:k?q(a.options.pointRange,m,0):c.axisPointRange||0,l=a.options.pointPlacement;b=Math.max(b,f);if(!c.single||d)a=a.is("xrange")?!k:k,g=Math.max(g,
|
||||
a&&w(l)?0:f/2),h=Math.max(h,a&&"on"===l?0:f)});f=c.ordinal&&c.ordinal.slope&&m?c.ordinal.slope/m:1;c.minPointOffset=g*=f;c.pointRangePadding=h*=f;c.pointRange=Math.min(b,c.single&&d?1:a);k&&(c.closestPointRange=m)}c.translationSlope=c.transA=D=c.staticScale||c.len/(a+h||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=D*g;l(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=function(c){var a=this.chart,d=this.logarithmic,
|
||||
k=this.options,b=this.isXAxis,g=this.isLinked,h=k.tickPixelInterval,w=this.categories,D=this.softThreshold,m=k.maxPadding,E=k.minPadding,e=f(k.tickInterval)&&0<=k.tickInterval?k.tickInterval:void 0,A=f(this.threshold)?this.threshold:null;this.dateTime||w||g||this.getTickAmount();var u=q(this.userMin,k.min);var H=q(this.userMax,k.max);if(g){this.linkedParent=a[this.coll][k.linkedTo];var p=this.linkedParent.getExtremes();this.min=q(p.min,p.dataMin);this.max=q(p.max,p.dataMax);k.type!==this.linkedParent.options.type&&
|
||||
C(11,1,a)}else{if(D&&G(A))if(this.dataMin>=A)p=A,E=0;else if(this.dataMax<=A){var x=A;m=0}this.min=q(u,p,this.dataMin);this.max=q(H,x,this.dataMax)}d&&(this.positiveValuesOnly&&!c&&0>=Math.min(this.min,q(this.dataMin,this.min))&&C(10,1,a),this.min=n(d.log2lin(this.min),16),this.max=n(d.log2lin(this.max),16));this.range&&G(this.max)&&(this.userMin=this.min=u=Math.max(this.dataMin,this.minFromRange()),this.userMax=H=this.max,this.range=null);l(this,"foundExtremes");this.beforePadding&&this.beforePadding();
|
||||
this.adjustForMinRange();!(w||this.axisPointRange||this.stacking&&this.stacking.usePercentage||g)&&G(this.min)&&G(this.max)&&(a=this.max-this.min)&&(!G(u)&&E&&(this.min-=a*E),!G(H)&&m&&(this.max+=a*m));f(this.userMin)||(f(k.softMin)&&k.softMin<this.min&&(this.min=u=k.softMin),f(k.floor)&&(this.min=Math.max(this.min,k.floor)));f(this.userMax)||(f(k.softMax)&&k.softMax>this.max&&(this.max=H=k.softMax),f(k.ceiling)&&(this.max=Math.min(this.max,k.ceiling)));D&&G(this.dataMin)&&(A=A||0,!G(u)&&this.min<
|
||||
A&&this.dataMin>=A?this.min=this.options.minRange?Math.min(A,this.max-this.minRange):A:!G(H)&&this.max>A&&this.dataMax<=A&&(this.max=this.options.minRange?Math.max(A,this.min+this.minRange):A));f(this.min)&&f(this.max)&&!this.chart.polar&&this.min>this.max&&(G(this.options.min)?this.max=this.min:G(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:g&&this.linkedParent&&!e&&h===this.linkedParent.options.tickPixelInterval?
|
||||
e=this.linkedParent.tickInterval:q(e,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,w?1:(this.max-this.min)*h/Math.max(this.len,h));if(b&&!c){var P=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(P)});l(this,"postProcessData",{hasExtemesChanged:P})}this.setAxisTranslation();l(this,"initialAxisTranslation");this.pointRange&&!e&&(this.tickInterval=Math.max(this.pointRange,
|
||||
this.tickInterval));c=q(k.minTickInterval,this.dateTime&&!this.series.some(function(c){return c.noSharedTooltip})?this.closestPointRange:0);!e&&this.tickInterval<c&&(this.tickInterval=c);this.dateTime||this.logarithmic||e||(this.tickInterval=K(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};b.prototype.setTickPositions=function(){var c=this.options,a=c.tickPositions,f=this.getMinorTickInterval(),k=this.hasVerticalPanning(),d="colorAxis"===this.coll,
|
||||
b=(d||!k)&&c.startOnTick;k=(d||!k)&&c.endOnTick;d=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===f&&this.tickInterval?this.tickInterval/5:f;this.single=this.min===this.max&&G(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=f=a&&a.slice();if(!f){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,
|
||||
200)))if(this.dateTime)f=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)f=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var q=c=this.tickInterval;q<=2*c;)if(f=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&f.length>this.tickAmount)this.tickInterval=K(this,q*=1.1);else break;
|
||||
else f=[this.min,this.max],C(19,!1,this.chart);f.length>this.len&&(f=[f[0],f.pop()],f[0]===f[1]&&(f.length=1));this.tickPositions=f;d&&(d=d.apply(this,[this.min,this.max]))&&(this.tickPositions=f=d)}this.paddedTicks=f.slice(0);this.trimTicks(f,b,k);this.isLinked||(this.single&&2>f.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),a||d||this.adjustTickAmount());l(this,"afterSetTickPositions")};b.prototype.trimTicks=
|
||||
function(c,a,f){var k=c[0],d=c[c.length-1],b=!this.isOrdinal&&this.minPointOffset||0;l(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==k)this.min=k;else for(;this.min-b>c[0];)c.shift();if(f)this.max=d;else for(;this.max+b<c[c.length-1];)c.pop();0===c.length&&G(k)&&!this.options.tickPositions&&c.push((d+k)/2)}};b.prototype.alignToOthers=function(){var c=this,a=[this],k=c.options,d="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,b=[],q;c.thresholdAlignment=void 0;if((!1!==this.chart.options.chart.alignTicks&&
|
||||
k.alignTicks||d)&&!1!==k.startOnTick&&!1!==k.endOnTick&&!c.logarithmic){var g=function(c){var a=c.options;return[c.horiz?a.left:a.top,a.width,a.height,a.pane].join()},l=g(this);this.chart[this.coll].forEach(function(f){var k=f.series;k.length&&k.some(function(c){return c.visible})&&f!==c&&g(f)===l&&(q=!0,a.push(f))})}if(q&&d){a.forEach(function(a){a=a.getThresholdAlignment(c);f(a)&&b.push(a)});var h=1<b.length?b.reduce(function(c,a){return c+a},0)/b.length:void 0;a.forEach(function(c){c.thresholdAlignment=
|
||||
h})}return q};b.prototype.getThresholdAlignment=function(c){(!f(this.dataMin)||this!==c&&this.series.some(function(c){return c.isDirty||c.isDirtyData}))&&this.getSeriesExtremes();if(f(this.threshold))return c=m((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(c=1-c),c};b.prototype.getTickAmount=function(){var c=this.options,a=c.tickPixelInterval,f=c.tickAmount;!G(c.tickInterval)&&!f&&this.len<a&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&
|
||||
c.endOnTick&&(f=2);!f&&this.alignToOthers()&&(f=Math.ceil(this.len/a)+1);4>f&&(this.finalTickAmt=f,f=5);this.tickAmount=f};b.prototype.adjustTickAmount=function(){var c=this,a=c.finalTickAmt,k=c.max,d=c.min,b=c.options,g=c.tickPositions,l=c.tickAmount,h=c.thresholdAlignment,w=g&&g.length,D=q(c.threshold,c.softThreshold?0:null);var m=c.tickInterval;if(f(h)){var E=.5>h?Math.ceil(h*(l-1)):Math.floor(h*(l-1));b.reversed&&(E=l-1-E)}if(c.hasData()&&f(d)&&f(k)){h=function(){c.transA*=(w-1)/(l-1);c.min=b.startOnTick?
|
||||
g[0]:Math.min(d,g[0]);c.max=b.endOnTick?g[g.length-1]:Math.max(k,g[g.length-1])};if(f(E)&&f(c.threshold)){for(;g[E]!==D||g.length!==l||g[0]>d||g[g.length-1]<k;){g.length=0;for(g.push(c.threshold);g.length<l;)void 0===g[E]||g[E]>c.threshold?g.unshift(n(g[0]-m)):g.push(n(g[g.length-1]+m));if(m>8*c.tickInterval)break;m*=2}h()}else if(w<l){for(;g.length<l;)g.length%2||d===D?g.push(n(g[g.length-1]+m)):g.unshift(n(g[0]-m));h()}if(G(a)){for(m=D=g.length;m--;)(3===a&&1===m%2||2>=a&&0<m&&m<D-1)&&g.splice(m,
|
||||
1);c.finalTickAmt=void 0}}};b.prototype.setScale=function(){var c=!1,a=!1;this.series.forEach(function(f){c=c||f.isDirtyData||f.isDirty;a=a||f.xAxis&&f.xAxis.isDirty||!1});this.setAxisSize();var f=this.len!==(this.old&&this.old.len);f||c||a||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||
|
||||
(this.isDirty=f||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);l(this,"afterSetScale")};b.prototype.setExtremes=function(c,a,f,k,d){var b=this,g=b.chart;f=q(f,!0);b.series.forEach(function(c){delete c.kdTree});d=u(d,{min:c,max:a});l(b,"setExtremes",d,function(){b.userMin=c;b.userMax=a;b.eventArgs=d;f&&g.redraw(k)})};b.prototype.zoom=function(c,a){var f=this,k=this.dataMin,d=
|
||||
this.dataMax,b=this.options,g=Math.min(k,q(b.min,k)),h=Math.max(d,q(b.max,d));c={newMin:c,newMax:a};l(this,"zoom",c,function(c){var a=c.newMin,b=c.newMax;if(a!==f.min||b!==f.max)f.allowZoomOutside||(G(k)&&(a<g&&(a=g),a>h&&(a=h)),G(d)&&(b<g&&(b=g),b>h&&(b=h))),f.displayBtn="undefined"!==typeof a||"undefined"!==typeof b,f.setExtremes(a,b,!1,void 0,{trigger:"zoom"});c.zoomed=!0});return c.zoomed};b.prototype.setAxisSize=function(){var c=this.chart,a=this.options,f=a.offsets||[0,0,0,0],k=this.horiz,d=
|
||||
this.width=Math.round(E(q(a.width,c.plotWidth-f[3]+f[1]),c.plotWidth)),b=this.height=Math.round(E(q(a.height,c.plotHeight-f[0]+f[2]),c.plotHeight)),g=this.top=Math.round(E(q(a.top,c.plotTop+f[0]),c.plotHeight,c.plotTop));a=this.left=Math.round(E(q(a.left,c.plotLeft+f[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-b-g;this.right=c.chartWidth-d-a;this.len=Math.max(k?d:b,0);this.pos=k?a:g};b.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?n(c.lin2log(this.min)):this.min,
|
||||
max:c?n(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(c){var a=this.logarithmic,f=a?a.lin2log(this.min):this.min;a=a?a.lin2log(this.max):this.max;null===c||-Infinity===c?c=f:Infinity===c?c=a:f>c?c=f:a<c&&(c=a);return this.translate(c,0,1,0,1)};b.prototype.autoLabelAlign=function(c){var a=(q(c,0)-90*this.side+720)%360;c={align:"center"};l(this,"autoLabelAlign",c,function(c){15<a&&165>a?c.align="right":
|
||||
195<a&&345>a&&(c.align="left")});return c.align};b.prototype.tickSize=function(c){var a=this.options,f=q(a["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),k=a["tick"===c?"tickLength":"minorTickLength"];if(f&&k){"inside"===a[c+"Position"]&&(k=-k);var d=[k,f]}c={tickSize:d};l(this,"afterTickSize",c);return c.tickSize};b.prototype.labelMetrics=function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,
|
||||
this.ticks[c]&&this.ticks[c].label)};b.prototype.unsquish=function(){var c=this.options.labels,k=this.horiz,d=this.tickInterval,b=this.len/(((this.categories?1:0)+this.max-this.min)/d),g=c.rotation,l=this.labelMetrics(),h=Math.max(this.max-this.min,0),w=function(c){var a=c/(b||1);a=1<a?Math.ceil(a):1;a*d>h&&Infinity!==c&&Infinity!==b&&h&&(a=Math.ceil(h/d));return n(a*d)},D=d,m,E,A=Number.MAX_VALUE;if(k){if(!c.staggerLines&&!c.step)if(f(g))var e=[g];else b<c.autoRotationLimit&&(e=c.autoRotation);e&&
|
||||
e.forEach(function(c){if(c===g||c&&-90<=c&&90>=c){E=w(Math.abs(l.h/Math.sin(a*c)));var f=E+Math.abs(c/360);f<A&&(A=f,m=c,D=E)}})}else c.step||(D=w(l.h));this.autoRotation=e;this.labelRotation=q(m,f(g)?g:0);return D};b.prototype.getSlotWidth=function(c){var a=this.chart,k=this.horiz,d=this.options.labels,b=Math.max(this.tickPositions.length-(this.categories?0:1),1),g=a.margin[3];if(c&&f(c.slotWidth))return c.slotWidth;if(k&&2>d.step)return d.rotation?0:(this.staggerLines||1)*this.len/b;if(!k){c=d.style.width;
|
||||
if(void 0!==c)return parseInt(String(c),10);if(g)return g-a.spacing[3]}return.33*a.chartWidth};b.prototype.renderUnsquish=function(){var c=this.chart,a=c.renderer,f=this.tickPositions,k=this.ticks,d=this.options.labels,b=d.style,g=this.horiz,q=this.getSlotWidth(),l=Math.max(1,Math.round(q-2*d.padding)),h={},D=this.labelMetrics(),m=b.textOverflow,E=0;w(d.rotation)||(h.rotation=d.rotation||0);f.forEach(function(c){c=k[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>E&&(E=c.label.textPxLength)});
|
||||
this.maxLabelLength=E;if(this.autoRotation)E>l&&E>D.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(q){var n=l;if(!m){var A="clip";for(l=f.length;!g&&l--;){var e=f[l];if(e=k[e].label)e.styles&&"ellipsis"===e.styles.textOverflow?e.css({textOverflow:"clip"}):e.textPxLength>q&&e.css({width:q+"px"}),e.getBBox().height>this.len/f.length-(D.h-D.f)&&(e.specificTextOverflow="ellipsis")}}}h.rotation&&(n=E>.5*c.chartHeight?.33*c.chartHeight:E,m||(A="ellipsis"));if(this.labelAlign=d.align||this.autoLabelAlign(this.labelRotation))h.align=
|
||||
this.labelAlign;f.forEach(function(c){var a=(c=k[c])&&c.label,f=b.width,d={};a&&(a.attr(h),c.shortenLabel?c.shortenLabel():n&&!f&&"nowrap"!==b.whiteSpace&&(n<a.textPxLength||"SPAN"===a.element.tagName)?(d.width=n+"px",m||(d.textOverflow=a.specificTextOverflow||A),a.css(d)):a.styles&&a.styles.width&&!d.width&&!f&&a.css({width:null}),delete a.specificTextOverflow,c.rotation=h.rotation)},this);this.tickRotCorr=a.rotCorr(D.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||
|
||||
this.options.showEmpty&&G(this.min)&&G(this.max)};b.prototype.addTitle=function(c){var a=this.chart.renderer,f=this.horiz,d=this.opposite,b=this.options.title,g=this.chart.styledMode,q;this.axisTitle||((q=b.textAlign)||(q=(f?{low:"left",middle:"center",high:"right"}:{low:d?"right":"left",middle:"center",high:d?"left":"right"})[b.align]),this.axisTitle=a.text(b.text||"",0,0,b.useHTML).attr({zIndex:7,rotation:b.rotation,align:q}).addClass("highcharts-axis-title"),g||this.axisTitle.css(k(b.style)),this.axisTitle.add(this.axisGroup),
|
||||
this.axisTitle.isNew=!0);g||b.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};b.prototype.generateTick=function(c){var a=this.ticks;a[c]?a[c].addLabel():a[c]=new F(this,c)};b.prototype.getOffset=function(){var a=this,f=this,d=f.chart,k=f.horiz,b=f.options,g=f.side,h=f.ticks,w=f.tickPositions,D=f.coll,m=f.axisParent,E=d.renderer,n=d.inverted&&!f.isZAxis?[1,0,3,2][g]:g,e=f.hasData(),A=b.title,u=b.labels,H=d.axisOffset;d=d.clipOffset;var p=[-1,
|
||||
1,1,-1][g],x=b.className,C,r=0,J=0,Q=0;f.showAxis=C=e||b.showEmpty;f.staggerLines=f.horiz&&u.staggerLines||void 0;if(!f.axisGroup){var L=function(c,f,d){return E.g(c).attr({zIndex:d}).addClass("highcharts-".concat(D.toLowerCase()).concat(f," ")+(a.isRadial?"highcharts-radial-axis".concat(f," "):"")+(x||"")).add(m)};f.gridGroup=L("grid","-grid",b.gridZIndex);f.axisGroup=L("axis","",b.zIndex);f.labelGroup=L("axis-labels","-labels",u.zIndex)}e||f.isLinked?(w.forEach(function(c){f.generateTick(c)}),f.renderUnsquish(),
|
||||
f.reserveSpaceDefault=0===g||2===g||{1:"left",3:"right"}[g]===f.labelAlign,q(u.reserveSpace,"center"===f.labelAlign?!0:null,f.reserveSpaceDefault)&&w.forEach(function(c){Q=Math.max(h[c].getLabelSize(),Q)}),f.staggerLines&&(Q*=f.staggerLines),f.labelOffset=Q*(f.opposite?-1:1)):c(h,function(c,a){c.destroy();delete h[a]});if(A&&A.text&&!1!==A.enabled&&(f.addTitle(C),C&&!1!==A.reserveSpace)){f.titleOffset=r=f.axisTitle.getBBox()[k?"height":"width"];var t=A.offset;J=G(t)?0:q(A.margin,k?5:10)}f.renderLine();
|
||||
f.offset=p*q(b.offset,H[g]?H[g]+(b.margin||0):0);f.tickRotCorr=f.tickRotCorr||{x:0,y:0};A=0===g?-f.labelMetrics().h:2===g?f.tickRotCorr.y:0;e=Math.abs(Q)+J;Q&&(e=e-A+p*(k?q(u.y,f.tickRotCorr.y+8*p):u.x));f.axisTitleMargin=q(t,e);f.getMaxLabelDimensions&&(f.maxLabelDimensions=f.getMaxLabelDimensions(h,w));"colorAxis"!==D&&(k=this.tickSize("tick"),H[g]=Math.max(H[g],(f.axisTitleMargin||0)+r+p*f.offset,e,w&&w.length&&k?k[0]+p*f.offset:0),b=!f.axisLine||b.offset?0:2*Math.floor(f.axisLine.strokeWidth()/
|
||||
2),d[n]=Math.max(d[n],b));l(this,"afterGetOffset")};b.prototype.getLinePath=function(c){var a=this.chart,f=this.opposite,d=this.offset,k=this.horiz,b=this.left+(f?this.width:0)+d;d=a.chartHeight-this.bottom-(f?this.height:0)+d;f&&(c*=-1);return a.renderer.crispLine([["M",k?this.left:b,k?d:this.top],["L",k?a.chartWidth-this.right:b,k?d:a.chartHeight-this.bottom]],c)};b.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),
|
||||
this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var c=this.horiz,a=this.left,f=this.top,d=this.len,k=this.options.title,b=c?a:f,g=this.opposite,q=this.offset,h=k.x,w=k.y,D=this.axisTitle,m=this.chart.renderer.fontMetrics(k.style.fontSize,D);D=D?Math.max(D.getBBox(!1,0).height-m.h-1,0):0;d={low:b+(c?0:d),middle:b+d/2,high:b+(c?d:0)}[k.align];a=(c?f+this.height:a)+(c?1:-1)*(g?-1:1)*(this.axisTitleMargin||
|
||||
0)+[-D,D,m.f,-D][this.side];c={x:c?d+h:a+(g?this.width:0)+q+h,y:c?a+w-(g?this.height:0)+q:d+w};l(this,"afterGetTitlePosition",{titlePosition:c});return c};b.prototype.renderMinorTick=function(c,a){var f=this.minorTicks;f[c]||(f[c]=new F(this,c,"minor"));a&&f[c].isNew&&f[c].render(null,!0);f[c].render(null,!1,1)};b.prototype.renderTick=function(c,a,f){var d=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)d[c]||(d[c]=new F(this,c)),f&&d[c].isNew&&d[c].render(a,
|
||||
!0,-1),d[c].render(a)};b.prototype.render=function(){var a=this,d=a.chart,k=a.logarithmic,b=a.options,g=a.isLinked,q=a.tickPositions,h=a.axisTitle,w=a.ticks,D=a.minorTicks,m=a.alternateBands,E=b.stackLabels,n=b.alternateGridColor,e=a.tickmarkOffset,A=a.axisLine,u=a.showAxis,H=r(d.renderer.globalAnimation),p,x;a.labelEdge.length=0;a.overlap=!1;[w,D,m].forEach(function(a){c(a,function(c){c.isActive=!1})});if(a.hasData()||g){var C=a.chart.hasRendered&&a.old&&f(a.old.min);a.minorTickInterval&&!a.categories&&
|
||||
a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c,C)});q.length&&(q.forEach(function(c,f){a.renderTick(c,f,C)}),e&&(0===a.min||a.single)&&(w[-1]||(w[-1]=new F(a,-1,null,!0)),w[-1].render(-1)));n&&q.forEach(function(c,f){x="undefined"!==typeof q[f+1]?q[f+1]+e:a.max-e;0===f%2&&c<a.max&&x<=a.max+(d.polar?-e:e)&&(m[c]||(m[c]=new t.PlotLineOrBand(a)),p=c+e,m[c].options={from:k?k.lin2log(p):p,to:k?k.lin2log(x):x,color:n,className:"highcharts-alternate-grid"},m[c].render(),m[c].isActive=
|
||||
!0)});a._addedPlotLB||(a._addedPlotLB=!0,(b.plotLines||[]).concat(b.plotBands||[]).forEach(function(c){a.addPlotBandOrLine(c)}))}[w,D,m].forEach(function(a){var f=[],k=H.duration;c(a,function(c,a){c.isActive||(c.render(a,!1,0),c.isActive=!1,f.push(a))});L(function(){for(var c=f.length;c--;)a[f[c]]&&!a[f[c]].isActive&&(a[f[c]].destroy(),delete a[f[c]])},a!==m&&d.hasRendered&&k?k:0)});A&&(A[A.isPlaced?"animate":"attr"]({d:this.getLinePath(A.strokeWidth())}),A.isPlaced=!0,A[u?"show":"hide"](u));h&&u&&
|
||||
(b=a.getTitlePosition(),h[h.isNew?"attr":"animate"](b),h.isNew=!1);E&&E.enabled&&a.stacking&&a.stacking.renderStackTotals();a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin};a.isDirty=!1;l(this,"afterRender")};b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=
|
||||
function(a){var f=this,d=f.plotLinesAndBands,k=this.eventOptions;l(this,"destroy",{keepEvents:a});a||H(f);[f.ticks,f.minorTicks,f.alternateBands].forEach(function(c){J(c)});if(d)for(a=d.length;a--;)d[a].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){f[c]&&(f[c]=f[c].destroy())});for(var b in f.plotLinesAndBandsGroups)f.plotLinesAndBandsGroups[b]=f.plotLinesAndBandsGroups[b].destroy();c(f,function(c,a){-1===f.getKeepProps().indexOf(a)&&
|
||||
delete f[a]});this.eventOptions=k};b.prototype.drawCrosshair=function(c,a){var f=this.crosshair,d=q(f&&f.snap,!0),k=this.chart,b,g=this.cross;l(this,"drawCrosshair",{e:c,point:a});c||(c=this.cross&&this.cross.e);if(f&&!1!==(G(a)||!d)){d?G(a)&&(b=q("colorAxis"!==this.coll?a.crosshairPos:null,this.isXAxis?a.plotX:this.len-a.plotY)):b=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(G(b)){var h={value:a&&(this.isXAxis?a.x:q(a.stackY,a.y)),translatedValue:b};k.polar&&u(h,{isCrosshair:!0,
|
||||
chartX:c&&c.chartX,chartY:c&&c.chartY,point:a});h=this.getPlotLinePath(h)||null}if(!G(h)){this.hideCrosshair();return}d=this.categories&&!this.isRadial;g||(this.cross=g=k.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(d?"category ":"thin ")+(f.className||"")).attr({zIndex:q(f.zIndex,2)}).add(),k.styledMode||(g.attr({stroke:f.color||(d?y.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":q(f.width,1)}).css({"pointer-events":"none"}),f.dashStyle&&g.attr({dashstyle:f.dashStyle})));
|
||||
g.show().attr({d:h});d&&!f.width&&g.attr({"stroke-width":this.transA});this.cross.e=c}else this.hideCrosshair();l(this,"afterDrawCrosshair",{e:c,point:a})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();l(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};b.prototype.validatePositiveValue=function(c){return f(c)&&0<c};b.prototype.update=function(c,a){var f=this.chart;c=k(this.userOptions,
|
||||
c);this.destroy(!0);this.init(f,c);f.isDirtyBox=!0;q(a,!0)&&f.redraw()};b.prototype.remove=function(c){for(var a=this.chart,f=this.coll,d=this.series,k=d.length;k--;)d[k]&&d[k].remove(!1);x(a.axes,this);x(a[f],this);a[f].forEach(function(c,a){c.options.index=c.userOptions.index=a});this.destroy();a.isDirtyBox=!0;q(c,!0)&&a.redraw()};b.prototype.setTitle=function(c,a){this.update({title:c},a)};b.prototype.setCategories=function(c,a){this.update({categories:c},a)};b.defaultOptions=e.defaultXAxisOptions;
|
||||
b.keepProps="extKey hcEvents names series userMax userMin".split(" ");return b}();"";return b});I(e,"Core/Axis/DateTimeAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,y=b.getMagnitude,B=b.normalizeTickInterval,v=b.timeUnits,t;(function(b){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function r(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var p=[];b.compose=function(a){-1===p.indexOf(a)&&(p.push(a),
|
||||
a.keepProps.push("dateTime"),a.prototype.getTimeTicks=t,e(a,"init",r));return a};var h=function(){function a(a){this.axis=a}a.prototype.normalizeTimeTickInterval=function(a,b){var d=b||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];b=d[d.length-1];var g=v[b[0]],h=b[1],e;for(e=0;e<d.length&&!(b=d[e],g=v[b[0]],h=b[1],d[e+1]&&a<=(g*h[h.length-1]+v[d[e+
|
||||
1][0]])/2);e++);g===v.year&&a<5*g&&(h=[1,2,5]);a=B(a/g,h,"year"===b[0]?Math.max(y(a/g),1):1);return{unitRange:g,count:a,unitName:b[0]}};a.prototype.getXDateFormat=function(a,b){var d=this.axis,g=d.chart.time;return d.closestPointRange?g.getDateFormat(d.closestPointRange,a,d.options.startOfWeek,b)||g.resolveDTLFormat(b.year).main:g.resolveDTLFormat(b.day).main};return a}();b.Additions=h})(t||(t={}));return t});I(e,"Core/Axis/LogarithmicAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,
|
||||
y=b.normalizeTickInterval,B=b.pick,v;(function(b){function t(b){var a=this.logarithmic;"logarithmic"!==b.userOptions.type?this.logarithmic=void 0:a||(this.logarithmic=new p(this))}function v(){var b=this.logarithmic;b&&(this.lin2val=function(a){return b.lin2log(a)},this.val2lin=function(a){return b.log2lin(a)})}var r=[];b.compose=function(b){-1===r.indexOf(b)&&(r.push(b),b.keepProps.push("logarithmic"),e(b,"init",t),e(b,"afterInit",v));return b};var p=function(){function b(a){this.axis=a}b.prototype.getLogTickPositions=
|
||||
function(a,d,b,h){var g=this.axis,m=g.len,e=g.options,p=[];h||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),p=g.getLinearTickPositions(a,d,b);else if(.08<=a){var C=Math.floor(d),u,l=e=void 0;for(m=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];C<b+1&&!l;C++){var A=m.length;for(u=0;u<A&&!l;u++){var f=this.log2lin(this.lin2log(C)*m[u]);f>d&&(!h||e<=b)&&"undefined"!==typeof e&&p.push(e);e>b&&(l=!0);e=f}}}else d=this.lin2log(d),b=this.lin2log(b),a=h?g.getMinorTickInterval():e.tickInterval,
|
||||
a=B("auto"===a?null:a,this.minorAutoInterval,e.tickPixelInterval/(h?5:1)*(b-d)/((h?m/g.tickPositions.length:m)||1)),a=y(a),p=g.getLinearTickPositions(a,d,b).map(this.log2lin),h||(this.minorAutoInterval=a/5);h||(g.tickInterval=a);return p};b.prototype.lin2log=function(a){return Math.pow(10,a)};b.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return b}();b.Additions=p})(v||(v={}));return v});I(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Utilities.js"]],function(b){var e=
|
||||
b.erase,y=b.extend,B=b.isNumber,v;(function(b){var t=[],v;b.compose=function(b,h){v||(v=b);-1===t.indexOf(h)&&(t.push(h),y(h.prototype,r.prototype));return h};var r=function(){function b(){}b.prototype.getPlotBandPath=function(b,a,d){void 0===d&&(d=this.options);var g=this.getPlotLinePath({value:a,force:!0,acrossPanes:d.acrossPanes}),h=[],e=this.horiz;a=!B(this.min)||!B(this.max)||b<this.min&&a<this.min||b>this.max&&a>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:d.acrossPanes});d=
|
||||
1;if(b&&g){if(a){var p=b.toString()===g.toString();d=0}for(a=0;a<b.length;a+=2){var r=b[a],x=b[a+1],C=g[a],u=g[a+1];"M"!==r[0]&&"L"!==r[0]||"M"!==x[0]&&"L"!==x[0]||"M"!==C[0]&&"L"!==C[0]||"M"!==u[0]&&"L"!==u[0]||(e&&C[1]===r[1]?(C[1]+=d,u[1]+=d):e||C[2]!==r[2]||(C[2]+=d,u[2]+=d),h.push(["M",r[1],r[2]],["L",x[1],x[2]],["L",u[1],u[2]],["L",C[1],C[2]],["Z"]));h.isFlat=p}}return h};b.prototype.addPlotBand=function(b){return this.addPlotBandOrLine(b,"plotBands")};b.prototype.addPlotLine=function(b){return this.addPlotBandOrLine(b,
|
||||
"plotLines")};b.prototype.addPlotBandOrLine=function(b,a){var d=this,g=this.userOptions,h=new v(this,b);this.visible&&(h=h.render());if(h){this._addedPlotLB||(this._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||[]).forEach(function(a){d.addPlotBandOrLine(a)}));if(a){var e=g[a]||[];e.push(b);g[a]=e}this.plotLinesAndBands.push(h)}return h};b.prototype.removePlotBandOrLine=function(b){var a=this.plotLinesAndBands,d=this.options,g=this.userOptions;if(a){for(var h=a.length;h--;)a[h].id===b&&a[h].destroy();
|
||||
[d.plotLines||[],g.plotLines||[],d.plotBands||[],g.plotBands||[]].forEach(function(a){for(h=a.length;h--;)(a[h]||{}).id===b&&e(a,a[h])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(v||(v={}));return v});I(e,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[e["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],e["Core/Utilities.js"]],function(b,e){var y=e.arrayMax,B=e.arrayMin,v=e.defined,t=e.destroyObjectProperties,
|
||||
F=e.erase,z=e.fireEvent,r=e.merge,p=e.objectEach,h=e.pick;e=function(){function a(a,b){this.axis=a;b&&(this.options=b,this.id=b.id)}a.compose=function(d){return b.compose(a,d)};a.prototype.render=function(){z(this,"render");var a=this,b=a.axis,m=b.horiz,e=b.logarithmic,G=a.options,J=G.color,x=h(G.zIndex,0),C=G.events,u={},l=b.chart.renderer,A=G.label,f=a.label,w=G.to,k=G.from,D=G.value,c=a.svgElem,q=[],E=v(k)&&v(w);q=v(D);var H=!c,Q={"class":"highcharts-plot-"+(E?"band ":"line ")+(G.className||"")},
|
||||
L=E?"bands":"lines";e&&(k=e.log2lin(k),w=e.log2lin(w),D=e.log2lin(D));b.chart.styledMode||(q?(Q.stroke=J||"#999999",Q["stroke-width"]=h(G.width,1),G.dashStyle&&(Q.dashstyle=G.dashStyle)):E&&(Q.fill=J||"#e6ebf5",G.borderWidth&&(Q.stroke=G.borderColor,Q["stroke-width"]=G.borderWidth)));u.zIndex=x;L+="-"+x;(e=b.plotLinesAndBandsGroups[L])||(b.plotLinesAndBandsGroups[L]=e=l.g("plot-"+L).attr(u).add());H&&(a.svgElem=c=l.path().attr(Q).add(e));if(q)q=b.getPlotLinePath({value:D,lineWidth:c.strokeWidth(),
|
||||
acrossPanes:G.acrossPanes});else if(E)q=b.getPlotBandPath(k,w,G);else return;!a.eventsAdded&&C&&(p(C,function(f,d){c.on(d,function(c){C[d].apply(a,[c])})}),a.eventsAdded=!0);(H||!c.d)&&q&&q.length?c.attr({d:q}):c&&(q?(c.show(),c.animate({d:q})):c.d&&(c.hide(),f&&(a.label=f=f.destroy())));A&&(v(A.text)||v(A.formatter))&&q&&q.length&&0<b.width&&0<b.height&&!q.isFlat?(A=r({align:m&&E&&"center",x:m?!E&&4:10,verticalAlign:!m&&E&&"middle",y:m?E?16:10:E?6:-4,rotation:m&&!E&&90},A),this.renderLabel(A,q,E,
|
||||
x)):f&&f.hide();return a};a.prototype.renderLabel=function(a,b,h,e){var d=this.axis,g=d.chart.renderer,m=this.label;m||(this.label=m=g.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(h?"band":"line")+"-label "+(a.className||""),zIndex:e}).add(),d.chart.styledMode||m.css(r({textOverflow:"ellipsis"},a.style)));e=b.xBounds||[b[0][1],b[1][1],h?b[2][1]:b[0][1]];b=b.yBounds||[b[0][2],b[1][2],h?b[2][2]:b[0][2]];h=B(e);g=B(b);m.align(a,
|
||||
!1,{x:h,y:g,width:y(e)-h,height:y(b)-g});m.alignValue&&"left"!==m.alignValue||m.css({width:(90===m.rotation?d.height-(m.alignAttr.y-d.top):d.width-(m.alignAttr.x-d.left))+"px"});m.show(!0)};a.prototype.getLabelText=function(a){return v(a.formatter)?a.formatter.call(this):a.text};a.prototype.destroy=function(){F(this.axis.plotLinesAndBands,this);delete this.axis;t(this)};return a}();"";"";return e});I(e,"Core/Tooltip.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],
|
||||
e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v){var t=b.format,F=e.doc,z=y.distribute,r=v.addEvent,p=v.clamp,h=v.css,a=v.defined,d=v.discardElement,g=v.extend,m=v.fireEvent,n=v.isArray,G=v.isNumber,J=v.isString,x=v.merge,C=v.pick,u=v.splat,l=v.syncTimeout;b=function(){function b(a,d){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,d)}
|
||||
b.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};b.prototype.bodyFormatter=
|
||||
function(a){return a.map(function(a){var f=a.series.tooltipOptions;return(f[(a.point.formatPrefix||"point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,f[(a.point.formatPrefix||"point")+"Format"]||"")})};b.prototype.cleanSplit=function(a){this.chart.series.forEach(function(f){var d=f&&f.tt;d&&(!d.isActive||a?f.tt=d.destroy():d.isActive=!1)})};b.prototype.defaultFormatter=function(a){var f=this.points||u(this);var d=[a.tooltipFooterHeaderFormatter(f[0])];d=d.concat(a.bodyFormatter(f));d.push(a.tooltipFooterHeaderFormatter(f[0],
|
||||
!0));return d};b.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),d(this.container));v.clearTimeout(this.hideTimer);v.clearTimeout(this.tooltipTimeout)};b.prototype.getAnchor=function(a,d){var f=this.chart,b=f.pointer,c=f.inverted,g=f.plotTop,l=f.plotLeft,h,w,m=0,e=0;a=u(a);this.followPointer&&d?("undefined"===typeof d.chartX&&(d=b.normalize(d)),b=[d.chartX-
|
||||
l,d.chartY-g]):a[0].tooltipPos?b=a[0].tooltipPos:(a.forEach(function(a){h=a.series.yAxis;w=a.series.xAxis;m+=a.plotX||0;e+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;w&&h&&(c?(m+=g+f.plotHeight-w.len-w.pos,e+=l+f.plotWidth-h.len-h.pos):(m+=w.pos-l,e+=h.pos-g))}),m/=a.length,e/=a.length,b=[c?f.plotWidth-e:m,c?f.plotHeight-m:e],this.shared&&1<a.length&&d&&(c?b[0]=d.chartX-l:b[1]=d.chartY-g));return b.map(Math.round)};b.prototype.getLabel=function(){var f=this,d=this.chart.styledMode,k=this.options,
|
||||
b=this.split&&this.allowShared,c="tooltip"+(a(k.className)?" "+k.className:""),g=k.style.pointerEvents||(!this.followPointer&&k.stickOnContact?"auto":"none"),l=function(){f.inContact=!0},m=function(c){var a=f.chart.hoverSeries;f.inContact=f.shouldStickOnContact()&&f.chart.pointer.inClass(c.relatedTarget,"highcharts-tooltip");if(!f.inContact&&a&&a.onMouseOut)a.onMouseOut()},n,A=this.chart.renderer;if(f.label){var u=!f.label.hasClass("highcharts-label");(b&&!u||!b&&u)&&f.destroy()}if(!this.label){if(this.outside){u=
|
||||
this.chart.options.chart.style;var p=B.getRendererType();this.container=n=e.doc.createElement("div");n.className="highcharts-tooltip-container";h(n,{position:"absolute",top:"1px",pointerEvents:g,zIndex:Math.max(this.options.style.zIndex||0,(u&&u.zIndex||0)+3)});r(n,"mouseenter",l);r(n,"mouseleave",m);e.doc.body.appendChild(n);this.renderer=A=new p(n,0,0,u,void 0,void 0,A.styledMode)}b?this.label=A.g(c):(this.label=A.label("",0,0,k.shape,void 0,void 0,k.useHTML,void 0,c).attr({padding:k.padding,r:k.borderRadius}),
|
||||
d||this.label.attr({fill:k.backgroundColor,"stroke-width":k.borderWidth}).css(k.style).css({pointerEvents:g}).shadow(k.shadow));d&&k.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(f.outside&&!f.split){var x=this.label,C=x.xSetter,G=x.ySetter;x.xSetter=function(c){C.call(x,f.distance);n.style.left=c+"px"};x.ySetter=function(c){G.call(x,f.distance);n.style.top=c+"px"}}this.label.on("mouseenter",l).on("mouseleave",m).attr({zIndex:8}).add()}return this.label};
|
||||
b.prototype.getPosition=function(a,d,k){var f=this.chart,c=this.distance,b={},g=f.inverted&&k.h||0,l=this.outside,h=l?F.documentElement.clientWidth-2*c:f.chartWidth,w=l?Math.max(F.body.scrollHeight,F.documentElement.scrollHeight,F.body.offsetHeight,F.documentElement.offsetHeight,F.documentElement.clientHeight):f.chartHeight,m=f.pointer.getChartPosition(),e=function(b){var g="x"===b;return[b,g?h:w,g?a:d].concat(l?[g?a*m.scaleX:d*m.scaleY,g?m.left-c+(k.plotX+f.plotLeft)*m.scaleX:m.top-c+(k.plotY+f.plotTop)*
|
||||
m.scaleY,0,g?h:w]:[g?a:d,g?k.plotX+f.plotLeft:k.plotY+f.plotTop,g?f.plotLeft:f.plotTop,g?f.plotLeft+f.plotWidth:f.plotTop+f.plotHeight])},n=e("y"),u=e("x"),A;e=!!k.negative;!f.polar&&f.hoverSeries&&f.hoverSeries.yAxis&&f.hoverSeries.yAxis.reversed&&(e=!e);var p=!this.followPointer&&C(k.ttBelow,!f.inverted===e),x=function(a,f,d,k,q,h,w){var D=l?"y"===a?c*m.scaleY:c*m.scaleX:c,e=(d-k)/2,E=k<q-c,n=q+c+k<f,u=q-D-d+e;q=q+D-e;if(p&&n)b[a]=q;else if(!p&&E)b[a]=u;else if(E)b[a]=Math.min(w-k,0>u-g?u:u-g);
|
||||
else if(n)b[a]=Math.max(h,q+g+d>f?q:q+g);else return!1},r=function(a,f,d,k,g){var q;g<c||g>f-c?q=!1:b[a]=g<d/2?1:g>f-k/2?f-k-2:g-d/2;return q},G=function(c){var a=n;n=u;u=a;A=c},J=function(){!1!==x.apply(0,n)?!1!==r.apply(0,u)||A||(G(!0),J()):A?b.x=b.y=0:(G(!0),J())};(f.inverted||1<this.len)&&G();J();return b};b.prototype.hide=function(a){var f=this;v.clearTimeout(this.hideTimer);a=C(a,this.options.hideDelay);this.isHidden||(this.hideTimer=l(function(){f.getLabel().fadeOut(a?void 0:a);f.isHidden=
|
||||
!0},a))};b.prototype.init=function(a,d){this.chart=a;this.options=d;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=d.split&&!a.inverted&&!a.polar;this.shared=d.shared||this.split;this.outside=C(d.outside,!(!a.scrollablePixelsX&&!a.scrollablePixelsY))};b.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};b.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};b.prototype.move=function(a,d,
|
||||
k,b){var c=this,f=c.now,l=!1!==c.options.animation&&!c.isHidden&&(1<Math.abs(a-f.x)||1<Math.abs(d-f.y)),h=c.followPointer||1<c.len;g(f,{x:l?(2*f.x+a)/3:a,y:l?(f.y+d)/2:d,anchorX:h?void 0:l?(2*f.anchorX+k)/3:k,anchorY:h?void 0:l?(f.anchorY+b)/2:b});c.getLabel().attr(f);c.drawTracker();l&&(v.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){c&&c.move(a,d,k,b)},32))};b.prototype.refresh=function(a,d){var f=this.chart,b=this.options,c=u(a),g=c[0],l=[],h=b.formatter||this.defaultFormatter,
|
||||
w=this.shared,e=f.styledMode,A={};if(b.enabled&&g.series){v.clearTimeout(this.hideTimer);this.allowShared=!(!n(a)&&a.series&&a.series.noSharedTooltip);this.followPointer=!this.split&&g.series.tooltipOptions.followPointer;a=this.getAnchor(a,d);var p=a[0],x=a[1];w&&this.allowShared?(f.pointer.applyInactiveState(c),c.forEach(function(c){c.setState("hover");l.push(c.getLabelConfig())}),A={x:g.category,y:g.y},A.points=l):A=g.getLabelConfig();this.len=l.length;h=h.call(A,this);w=g.series;this.distance=
|
||||
C(w.tooltipOptions.distance,16);if(!1===h)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(h,c);else{var r=p,G=x;d&&f.pointer.isDirectTouch&&(r=d.chartX-f.plotLeft,G=d.chartY-f.plotTop);if(f.polar||!1===w.options.clip||c.some(function(c){return c.series.shouldShowTooltip(r,G)}))d=this.getLabel(),b.style.width&&!e||d.css({width:this.chart.spacingBox.width+"px"}),d.attr({text:h&&h.join?h.join(""):h}),d.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+C(g.colorIndex,
|
||||
w.colorIndex)),e||d.attr({stroke:b.borderColor||g.color||w.color||"#666666"}),this.updatePosition({plotX:p,plotY:x,negative:g.negative,ttBelow:g.ttBelow,h:a[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}m(this,"refresh")}};b.prototype.renderSplit=function(a,d){function f(c,a,f,d,k){void 0===k&&(k=!0);f?(a=K?0:I,c=p(c-d/2,O.left,O.right-d-(b.outside?N:0))):(a-=aa,c=k?c-d-t:c+t,c=p(c,k?c:O.left,O.right));return{x:c,y:a}}var b=this,c=
|
||||
b.chart,q=b.chart,l=q.chartWidth,h=q.chartHeight,m=q.plotHeight,w=q.plotLeft,e=q.plotTop,n=q.pointer,u=q.scrollablePixelsY;u=void 0===u?0:u;var A=q.scrollablePixelsX,x=q.scrollingContainer;x=void 0===x?{scrollLeft:0,scrollTop:0}:x;var r=x.scrollLeft;x=x.scrollTop;var G=q.styledMode,t=b.distance,R=b.options,v=b.options.positioner,O=b.outside&&"number"!==typeof A?F.documentElement.getBoundingClientRect():{left:r,right:r+l,top:x,bottom:x+h},y=b.getLabel(),B=this.renderer||c.renderer,K=!(!c.xAxis[0]||
|
||||
!c.xAxis[0].opposite);c=n.getChartPosition();var N=c.left;c=c.top;var aa=e+x,ca=0,I=m-u;J(a)&&(a=[!1,a]);a=a.slice(0,d.length+1).reduce(function(c,a,k){if(!1!==a&&""!==a){k=d[k-1]||{isHeader:!0,plotX:d[0].plotX,plotY:m,series:{}};var g=k.isHeader,q=g?b:k.series;a=a.toString();var l=q.tt,h=k.isHeader;var D=k.series;var E="highcharts-color-"+C(k.colorIndex,D.colorIndex,"none");l||(l={padding:R.padding,r:R.borderRadius},G||(l.fill=R.backgroundColor,l["stroke-width"]=R.borderWidth),l=B.label("",0,0,R[h?
|
||||
"headerShape":"shape"],void 0,void 0,R.useHTML).addClass((h?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+E).attr(l).add(y));l.isActive=!0;l.attr({text:a});G||l.css(R.style).shadow(R.shadow).attr({stroke:R.borderColor||k.color||D.color||"#333333"});q=q.tt=l;h=q.getBBox();a=h.width+q.strokeWidth();g&&(ca=h.height,I+=ca,K&&(aa-=ca));D=k.plotX;D=void 0===D?0:D;E=k.plotY;E=void 0===E?0:E;l=k.series;if(k.isHeader){D=w+D;var u=e+m/2}else{var n=l.xAxis,A=l.yAxis;D=n.pos+p(D,-t,n.len+t);l.shouldShowTooltip(0,
|
||||
A.pos-e+E,{ignoreX:!0})&&(u=A.pos+E)}D=p(D,O.left-t,O.right+t);"number"===typeof u?(h=h.height+1,E=v?v.call(b,a,h,k):f(D,u,g,a),c.push({align:v?0:void 0,anchorX:D,anchorY:u,boxWidth:a,point:k,rank:C(E.rank,g?1:0),size:h,target:E.y,tt:q,x:E.x})):q.isActive=!1}return c},[]);!v&&a.some(function(c){var a=(b.outside?N:0)+c.anchorX;return a<O.left&&a+c.boxWidth<O.right?!0:a<N-O.left+c.boxWidth&&O.right-a>a})&&(a=a.map(function(c){var a=f(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return g(c,{target:a.y,
|
||||
x:a.x})}));b.cleanSplit();z(a,I);var Z=N,da=N;a.forEach(function(c){var a=c.x,f=c.boxWidth;c=c.isHeader;c||(b.outside&&N+a<Z&&(Z=N+a),!c&&b.outside&&Z+f>da&&(da=N+a))});a.forEach(function(c){var a=c.x,f=c.anchorX,d=c.pos,k=c.point.isHeader;d={visibility:"undefined"===typeof d?"hidden":"inherit",x:a,y:d+aa,anchorX:f,anchorY:c.anchorY};if(b.outside&&a<f){var g=N-Z;0<g&&(k||(d.x=a+g,d.anchorX=f+g),k&&(d.x=(da-Z)/2,d.anchorX=f+g))}c.tt.attr(d)});a=b.container;u=b.renderer;b.outside&&a&&u&&(q=y.getBBox(),
|
||||
u.setSize(q.width+q.x,q.height+q.y,!1),a.style.left=Z+"px",a.style.top=c+"px")};b.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var a=this.chart,d=this.label,b=this.shared?a.hoverPoints:a.hoverPoint;if(d&&b){var g={x:0,y:0,width:0,height:0};b=this.getAnchor(b);var c=d.getBBox();b[0]+=a.plotLeft-d.translateX;b[1]+=a.plotTop-d.translateY;g.x=Math.min(0,b[0]);g.y=Math.min(0,b[1]);g.width=0>b[0]?Math.max(Math.abs(b[0]),c.width-
|
||||
b[0]):Math.max(Math.abs(b[0]),c.width);g.height=0>b[1]?Math.max(Math.abs(b[1]),c.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),c.height);this.tracker?this.tracker.attr(g):(this.tracker=d.renderer.rect(g).addClass("highcharts-tracker").add(d),a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};b.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};
|
||||
b.prototype.tooltipFooterHeaderFormatter=function(a,d){var f=a.series,b=f.tooltipOptions,c=f.xAxis,g=c&&c.dateTime;c={isFooter:d,labelConfig:a};var l=b.xDateFormat,h=b[d?"footerFormat":"headerFormat"];m(this,"headerFormatter",c,function(c){g&&!l&&G(a.key)&&(l=g.getXDateFormat(a.key,b.dateTimeLabelFormats));g&&l&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(c){h=h.replace("{point."+c+"}","{point."+c+":"+l+"}")});f.chart.styledMode&&(h=this.styledModeFormat(h));c.text=t(h,{point:a,series:f},
|
||||
this.chart)});return c.text};b.prototype.update=function(a){this.destroy();x(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,x(!0,this.options,a))};b.prototype.updatePosition=function(a){var f=this.chart,d=this.options,b=f.pointer,c=this.getLabel();b=b.getChartPosition();var g=(d.positioner||this.getPosition).call(this,c.width,c.height,a),l=a.plotX+f.plotLeft;a=a.plotY+f.plotTop;if(this.outside){d=d.borderWidth+2*this.distance;this.renderer.setSize(c.width+d,c.height+d,!1);if(1!==
|
||||
b.scaleX||1!==b.scaleY)h(this.container,{transform:"scale(".concat(b.scaleX,", ").concat(b.scaleY,")")}),l*=b.scaleX,a*=b.scaleY;l+=b.left-g.x;a+=b.top-g.y}this.move(Math.round(g.x),Math.round(g.y||0),l,a)};return b}();"";return b});I(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/DefaultOptions.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(b,e,y,B,v){var t=e.animObject,F=y.defaultOptions,z=B.format,r=v.addEvent,p=v.defined,
|
||||
h=v.erase,a=v.extend,d=v.fireEvent,g=v.getNestedProperty,m=v.isArray,n=v.isFunction,G=v.isNumber,J=v.isObject,x=v.merge,C=v.objectEach,u=v.pick,l=v.syncTimeout,A=v.removeEvent,f=v.uniqueKey;e=function(){function e(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.shapeArgs=this.series=void 0;this.visible=!0;this.x=void 0}e.prototype.animateBeforeDestroy=function(){var f=this,
|
||||
d={x:f.startXPos,opacity:0},c=f.getGraphicalProps();c.singular.forEach(function(c){f[c]=f[c].animate("dataLabel"===c?{x:f[c].startXPos,y:f[c].startYPos,opacity:0}:d)});c.plural.forEach(function(c){f[c].forEach(function(c){c.element&&c.animate(a({x:f.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};e.prototype.applyOptions=function(f,d){var c=this.series,b=c.options.pointValKey||c.pointValKey;f=e.prototype.optionsToObject.call(this,f);a(this,f);this.options=this.options?a(this.options,
|
||||
f):f;f.group&&delete this.group;f.dataLabels&&delete this.dataLabels;b&&(this.y=e.prototype.getNestedProperty.call(this,b));this.formatPrefix=(this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!G(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof d&&c.xAxis&&c.xAxis.hasNames&&(this.x=c.xAxis.nameToX(this));"undefined"===typeof this.x&&c?this.x="undefined"===typeof d?c.autoIncrement():d:G(f.x)&&c.options.relativeXValue&&(this.x=c.autoIncrement(f.x));
|
||||
return this};e.prototype.destroy=function(){function a(){if(f.graphic||f.dataLabel||f.dataLabels)A(f),f.destroyElements();for(e in f)f[e]=null}var f=this,c=f.series,d=c.chart;c=c.options.dataSorting;var b=d.hoverPoints,g=t(f.series.chart.renderer.globalAnimation),e;f.legendItem&&d.legend.destroyItem(f);b&&(f.setState(),h(b,f),b.length||(d.hoverPoints=null));if(f===d.hoverPoint)f.onMouseOut();c&&c.enabled?(this.animateBeforeDestroy(),l(a,g.duration)):a();d.pointCount--};e.prototype.destroyElements=
|
||||
function(a){var f=this;a=f.getGraphicalProps(a);a.singular.forEach(function(c){f[c]=f[c].destroy()});a.plural.forEach(function(c){f[c].forEach(function(c){c.element&&c.destroy()});delete f[c]})};e.prototype.firePointEvent=function(a,f,c){var b=this,k=this.series.options;(k.point.events[a]||b.options&&b.options.events&&b.options.events[a])&&b.importEvents();"click"===a&&k.allowPointSelect&&(c=function(c){b.select&&b.select(null,c.ctrlKey||c.metaKey||c.shiftKey)});d(b,a,f,c)};e.prototype.getClassName=
|
||||
function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};e.prototype.getGraphicalProps=function(a){var f=this,c=[],d={singular:[],plural:[]},b;a=a||{graphic:1,dataLabel:1};
|
||||
a.graphic&&c.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&c.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(b=c.length;b--;){var k=c[b];f[k]&&d.singular.push(k)}["dataLabel","connector"].forEach(function(c){var b=c+"s";a[c]&&f[b]&&d.plural.push(b)});return d};e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||
|
||||
this.stackTotal}};e.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?g(a,this.options):this[a]};e.prototype.getZone=function(){var a=this.series,f=a.zones;a=a.zoneAxis||"y";var c,d=0;for(c=f[d];this[a]>=c.value;)c=f[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==
|
||||
this.shapeType};e.prototype.init=function(a,b,c){this.series=a;this.applyOptions(b,c);this.id=p(this.id)?this.id:f();this.resolveColor();a.chart.pointCount++;d(this,"afterInit");return this};e.prototype.optionsToObject=function(a){var f=this.series,c=f.options.keys,d=c||f.pointArrayMap||["y"],b=d.length,k={},g=0,l=0;if(G(a)||null===a)k[d[0]]=a;else if(m(a))for(!c&&a.length>b&&(f=typeof a[0],"string"===f?k.name=a[0]:"number"===f&&(k.x=a[0]),g++);l<b;)c&&"undefined"===typeof a[g]||(0<d[l].indexOf(".")?
|
||||
e.prototype.setNestedProperty(k,a[g],d[l]):k[d[l]]=a[g]),g++,l++;else"object"===typeof a&&(k=a,a.dataLabels&&(f._hasPointLabels=!0),a.marker&&(f._hasPointMarkers=!0));return k};e.prototype.resolveColor=function(){var a=this.series,f=a.chart.styledMode;var c=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!f){c=a.options.colors||a.chart.options.colors;var d=c[a.colorCounter];c=c.length}f=a.colorCounter;a.colorCounter++;a.colorCounter===c&&(a.colorCounter=0)}else f||
|
||||
(d=a.color),f=a.colorIndex;this.colorIndex=u(this.options.colorIndex,f);this.color=u(this.options.color,d)};e.prototype.setNestedProperty=function(a,f,c){c.split(".").reduce(function(c,a,d,b){c[a]=b.length-1===d?f:J(c[a],!0)?c[a]:{};return c[a]},a);return a};e.prototype.tooltipFormatter=function(a){var f=this.series,c=f.tooltipOptions,d=u(c.valueDecimals,""),b=c.valuePrefix||"",k=c.valueSuffix||"";f.chart.styledMode&&(a=f.chart.tooltip.styledModeFormat(a));(f.pointArrayMap||["y"]).forEach(function(c){c=
|
||||
"{point."+c;if(b||k)a=a.replace(RegExp(c+"}","g"),b+c+"}"+k);a=a.replace(RegExp(c+"}","g"),c+":,."+d+"f}")});return z(a,{point:this,series:this.series},f.chart)};e.prototype.update=function(a,f,c,d){function b(){k.applyOptions(a);var d=l&&k.hasDummyGraphic;d=null===k.y?!d:d;l&&d&&(k.graphic=l.destroy(),delete k.hasDummyGraphic);J(a,!0)&&(l&&l.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(k.graphic=l.destroy()),a&&a.dataLabels&&k.dataLabel&&(k.dataLabel=k.dataLabel.destroy()),k.connector&&
|
||||
(k.connector=k.connector.destroy()));e=k.index;g.updateParallelArrays(k,e);q.data[e]=J(q.data[e],!0)||J(a,!0)?k.options:u(a,q.data[e]);g.isDirty=g.isDirtyData=!0;!g.fixedBox&&g.hasCartesianSeries&&(h.isDirtyBox=!0);"point"===q.legendType&&(h.isDirtyLegend=!0);f&&h.redraw(c)}var k=this,g=k.series,l=k.graphic,h=g.chart,q=g.options,e;f=u(f,!0);!1===d?b():k.firePointEvent("update",{options:a},b)};e.prototype.remove=function(a,f){this.series.removePoint(this.series.data.indexOf(this),a,f)};e.prototype.select=
|
||||
function(a,f){var c=this,d=c.series,b=d.chart;this.selectedStaging=a=u(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:f},function(){c.selected=c.options.selected=a;d.options.data[d.data.indexOf(c)]=c.options;c.setState(a&&"select");f||b.getSelectedPoints().forEach(function(a){var f=a.series;a.selected&&a!==c&&(a.selected=a.options.selected=!1,f.options.data[f.data.indexOf(a)]=a.options,a.setState(b.hoverPoints&&f.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});
|
||||
delete this.selectedStaging};e.prototype.onMouseOver=function(a){var f=this.series.chart,c=f.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,f.inverted);c.runPointActions(a,this)};e.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null};e.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,f=x(a.series.options.point,
|
||||
a.options).events;a.events=f;C(f,function(c,f){n(c)&&r(a,f,c)});this.hasImportedEvents=!0}};e.prototype.setState=function(f,g){var c=this.series,k=this.state,l=c.options.states[f||"normal"]||{},h=F.plotOptions[c.type].marker&&c.options.marker,e=h&&!1===h.enabled,m=h&&h.states&&h.states[f||"normal"]||{},w=!1===m.enabled,n=this.marker||{},A=c.chart,D=h&&c.markerAttribs,p=c.halo,x,C=c.stateMarkerGraphic;f=f||"";if(!(f===this.state&&!g||this.selected&&"select"!==f||!1===l.enabled||f&&(w||e&&!1===m.enabled)||
|
||||
f&&n.states&&n.states[f]&&!1===n.states[f].enabled)){this.state=f;D&&(x=c.markerAttribs(this,f));if(this.graphic&&!this.hasDummyGraphic){k&&this.graphic.removeClass("highcharts-point-"+k);f&&this.graphic.addClass("highcharts-point-"+f);if(!A.styledMode){var r=c.pointAttribs(this,f);var R=u(A.options.chart.animation,l.animation);c.options.inactiveOtherPoints&&G(r.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:r.opacity},R)}),this.connector&&this.connector.animate({opacity:r.opacity},
|
||||
R));this.graphic.animate(r,R)}x&&this.graphic.animate(x,u(A.options.chart.animation,m.animation,h.animation));C&&C.hide()}else{if(f&&m){k=n.symbol||c.symbol;C&&C.currentSymbol!==k&&(C=C.destroy());if(x)if(C)C[g?"animate":"attr"]({x:x.x,y:x.y});else k&&(c.stateMarkerGraphic=C=A.renderer.symbol(k,x.x,x.y,x.width,x.height).add(c.markerGroup),C.currentSymbol=k);!A.styledMode&&C&&"inactive"!==this.state&&C.attr(c.pointAttribs(this,f))}C&&(C[f&&this.isInside?"show":"hide"](),C.element.point=this,C.addClass(this.getClassName(),
|
||||
!0))}l=l.halo;x=(C=this.graphic||C)&&C.visibility||"inherit";l&&l.size&&C&&"hidden"!==x&&!this.isCluster?(p||(c.halo=p=A.renderer.path().add(C.parentGroup)),p.show()[g?"animate":"attr"]({d:this.haloPath(l.size)}),p.attr({"class":"highcharts-halo highcharts-color-"+u(this.colorIndex,c.colorIndex)+(this.className?" "+this.className:""),visibility:x,zIndex:-1}),p.point=this,A.styledMode||p.attr(a({fill:this.color||c.color,"fill-opacity":l.opacity},b.filterUserAttributes(l.attributes||{})))):p&&p.point&&
|
||||
p.point.haloPath&&p.animate({d:p.point.haloPath(0)},null,p.hide);d(this,"afterSetState",{state:f})}};e.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)};return e}();"";return e});I(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=b.parse,t=e.charts,F=e.noop,z=B.addEvent,r=B.attr,p=B.css,h=B.defined,a=B.extend,d=B.find,g=B.fireEvent,m=
|
||||
B.isNumber,n=B.isObject,G=B.objectEach,J=B.offset,x=B.pick,C=B.splat;b=function(){function b(a,b){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=!1;this.options=b;this.init(a,b)}b.prototype.applyInactiveState=function(a){var b=[],f;(a||[]).forEach(function(a){f=a.series;b.push(f);f.linkedParent&&b.push(f.linkedParent);f.linkedSeries&&(b=b.concat(f.linkedSeries));f.navigatorSeries&&b.push(f.navigatorSeries)});this.chart.series.forEach(function(a){-1===
|
||||
b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});this.eventsToUnbind=[];e.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);G(a,function(b,f){a[f]=void 0})};b.prototype.drag=function(a){var b=this.chart,
|
||||
f=b.options.chart,d=this.zoomHor,k=this.zoomVert,g=b.plotLeft,c=b.plotTop,l=b.plotWidth,h=b.plotHeight,e=this.mouseDownX||0,m=this.mouseDownY||0,u=n(f.panning)?f.panning&&f.panning.enabled:f.panning,p=f.panKey&&a[f.panKey+"Key"],x=a.chartX,C=a.chartY,r=this.selectionMarker;if(!r||!r.touch)if(x<g?x=g:x>g+l&&(x=g+l),C<c?C=c:C>c+h&&(C=c+h),this.hasDragged=Math.sqrt(Math.pow(e-x,2)+Math.pow(m-C,2)),10<this.hasDragged){var G=b.isInsidePlot(e-g,m-c,{visiblePlotOnly:!0});!b.hasCartesianSeries&&!b.mapView||
|
||||
!this.zoomX&&!this.zoomY||!G||p||r||(this.selectionMarker=r=b.renderer.rect(g,c,d?1:l,k?1:h,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||r.attr({fill:f.selectionMarkerFill||v("#335cad").setOpacity(.25).get()}));r&&d&&(d=x-e,r.attr({width:Math.abs(d),x:(0<d?0:d)+e}));r&&k&&(d=C-m,r.attr({height:Math.abs(d),y:(0<d?0:d)+m}));G&&!r&&u&&b.pan(a,f.panning)}};b.prototype.dragStart=function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=
|
||||
a.chartX;b.mouseDownY=this.mouseDownY=a.chartY};b.prototype.drop=function(b){var d=this,f=this.chart,l=this.hasPinched;if(this.selectionMarker){var k=this.selectionMarker,e=k.attr?k.attr("x"):k.x,c=k.attr?k.attr("y"):k.y,q=k.attr?k.attr("width"):k.width,n=k.attr?k.attr("height"):k.height,u={originalEvent:b,xAxis:[],yAxis:[],x:e,y:c,width:q,height:n},x=!!f.mapView;if(this.hasDragged||l)f.axes.forEach(function(a){if(a.zoomEnabled&&h(a.min)&&(l||d[{xAxis:"zoomX",yAxis:"zoomY"}[a.coll]])&&m(e)&&m(c)){var f=
|
||||
a.horiz,k="touchend"===b.type?a.minPixelPadding:0,g=a.toValue((f?e:c)+k);f=a.toValue((f?e+q:c+n)-k);u[a.coll].push({axis:a,min:Math.min(g,f),max:Math.max(g,f)});x=!0}}),x&&g(f,"selection",u,function(c){f.zoom(a(c,l?{animation:!1}:null))});m(f.index)&&(this.selectionMarker=this.selectionMarker.destroy());l&&this.scaleGroups()}f&&m(f.index)&&(p(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=
|
||||
function(a,b,f){var d=this.chart,k=d.hoverPoint;d=d.tooltip;if(k&&d&&d.isStickyOnContact())return k;var g;a.forEach(function(a){var c=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(f,c);if((c=n(a,!0)&&a.series)&&!(c=!n(g,!0))){c=g.distX-a.distX;var d=g.dist-a.dist,k=(a.series.group&&a.series.group.zIndex)-(g.series.group&&g.series.group.zIndex);c=0<(0!==c&&b?c:0!==d?d:0!==k?k:g.series.index>a.series.index?-1:1)}c&&(g=a)});return g};b.prototype.getChartCoordinatesFromPoint=
|
||||
function(a,b){var f=a.series,d=f.xAxis;f=f.yAxis;var g=a.shapeArgs;if(d&&f){var l=x(a.clientX,a.plotX),c=a.plotY||0;a.isNode&&g&&m(g.x)&&m(g.y)&&(l=g.x,c=g.y);return b?{chartX:f.len+f.pos-c,chartY:d.len+d.pos-l}:{chartX:l+d.pos,chartY:c+f.pos}}if(g&&g.x&&g.y)return{chartX:g.x,chartY:g.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,b=J(a);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var f=a.offsetWidth;a=a.offsetHeight;
|
||||
2<f&&2<a&&(this.chartPosition.scaleX=b.width/f,this.chartPosition.scaleY=b.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var b={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(f){b[f.isXAxis?"xAxis":"yAxis"].push({axis:f,value:f.toValue(a[f.horiz?"chartX":"chartY"])})});return b};b.prototype.getHoverData=function(a,b,f,h,k,e){var c=[];h=!(!h||!a);var l=function(a){return a.visible&&!(!k&&a.directTouch)&&x(a.options.enableMouseTracking,!0)},m={chartX:e?e.chartX:void 0,
|
||||
chartY:e?e.chartY:void 0,shared:k};g(this,"beforeGetHoverData",m);var w=b&&!b.stickyTracking?[b]:f.filter(function(a){return a.stickyTracking&&(m.filter||l)(a)});var u=h||!e?a:this.findNearestKDPoint(w,k,e);b=u&&u.series;u&&(k&&!b.noSharedTooltip?(w=f.filter(function(a){return m.filter?m.filter(a):l(a)&&!a.noSharedTooltip}),w.forEach(function(a){var f=d(a.points,function(a){return a.x===u.x&&!a.isNull});n(f)&&(a.boosted&&a.boost&&(f=a.boost.getPoint(f)),c.push(f))})):c.push(u));m={hoverPoint:u};g(this,
|
||||
"afterGetHoverData",m);return{hoverPoint:m.hoverPoint,hoverSeries:b,hoverPoints:c}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b};b.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var b=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()};b.prototype.inClass=
|
||||
function(a,b){for(var f;a;){if(f=r(a,"class")){if(-1!==f.indexOf(b))return!0;if(-1!==f.indexOf("highcharts-container"))return!1}a=a.parentElement}};b.prototype.init=function(a,b){this.options=b;this.chart=a;this.runChartClick=!(!b.chart.events||!b.chart.events.click);this.pinchDown=[];this.lastValidTouch={};y&&(a.tooltip=new y(a,b.tooltip),this.followTouchMove=x(b.tooltip.followTouchMove,!0));this.setDOMEvents()};b.prototype.normalize=function(b,d){var f=b.touches,g=f?f.length?f.item(0):x(f.changedTouches,
|
||||
b.changedTouches)[0]:b;d||(d=this.getChartPosition());f=g.pageX-d.left;g=g.pageY-d.top;f/=d.scaleX;g/=d.scaleY;return a(b,{chartX:Math.round(f),chartY:Math.round(g)})};b.prototype.onContainerClick=function(b){var d=this.chart,f=d.hoverPoint;b=this.normalize(b);var h=d.plotLeft,k=d.plotTop;d.cancelClick||(f&&this.inClass(b.target,"highcharts-tracker")?(g(f.series,"click",a(b,{point:f})),d.hoverPoint&&f.firePointEvent("click",b)):(a(b,this.getCoordinates(b)),d.isInsidePlot(b.chartX-h,b.chartY-k,{visiblePlotOnly:!0})&&
|
||||
g(d,"click",b)))};b.prototype.onContainerMouseDown=function(a){var b=1===((a.buttons||a.button)&1);a=this.normalize(a);if(e.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||b)this.zoomOption(a),b&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var d=t[x(b.hoverChartIndex,-1)],f=this.chart.tooltip;f&&f.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),
|
||||
d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),f&&!f.isHidden&&this.reset())};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};b.prototype.onContainerMouseMove=function(a){var b=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===b.mouseIsDown||this.touchSelect(a))&&this.drag(a);b.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-
|
||||
b.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var d=t[x(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};b.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};b.prototype.onDocumentMouseMove=
|
||||
function(a){var b=this.chart,f=this.chartPosition;a=this.normalize(a,f);var d=b.tooltip;!f||d&&d.isStickyOnContact()||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop,{visiblePlotOnly:!0})||this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var d=t[x(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.pinch=function(b){var d=this,f=d.chart,h=d.pinchDown,k=b.touches||[],l=k.length,c=d.lastValidTouch,q=d.hasZoom,e={},m=1===l&&(d.inClass(b.target,
|
||||
"highcharts-tracker")&&f.runTrackerClick||d.runChartClick),n={},u=d.selectionMarker;1<l?d.initiated=!0:1===l&&this.followTouchMove&&(d.initiated=!1);q&&d.initiated&&!m&&!1!==b.cancelable&&b.preventDefault();[].map.call(k,function(a){return d.normalize(a)});"touchstart"===b.type?([].forEach.call(k,function(a,c){h[c]={chartX:a.chartX,chartY:a.chartY}}),c.x=[h[0].chartX,h[1]&&h[1].chartX],c.y=[h[0].chartY,h[1]&&h[1].chartY],f.axes.forEach(function(a){if(a.zoomEnabled){var c=f.bounds[a.horiz?"h":"v"],
|
||||
b=a.minPixelPadding,d=a.toPixels(Math.min(x(a.options.min,a.dataMin),a.dataMin)),g=a.toPixels(Math.max(x(a.options.max,a.dataMax),a.dataMax)),k=Math.max(d,g);c.min=Math.min(a.pos,Math.min(d,g)-b);c.max=Math.max(a.pos+a.len,k+b)}}),d.res=!0):d.followTouchMove&&1===l?this.runPointActions(d.normalize(b)):h.length&&(g(f,"touchpan",{originalEvent:b},function(){u||(d.selectionMarker=u=a({destroy:F,touch:!0},f.plotBox));d.pinchTranslate(h,k,e,u,n,c);d.hasPinched=q;d.scaleGroups(e,n)}),d.res&&(d.res=!1,this.reset(!1,
|
||||
0)))};b.prototype.pinchTranslate=function(a,b,f,d,g,h){this.zoomHor&&this.pinchTranslateDirection(!0,a,b,f,d,g,h);this.zoomVert&&this.pinchTranslateDirection(!1,a,b,f,d,g,h)};b.prototype.pinchTranslateDirection=function(a,b,f,d,g,h,c,q){var k=this.chart,l=a?"x":"y",e=a?"X":"Y",m="chart"+e,n=a?"width":"height",w=k["plot"+(a?"Left":"Top")],u=k.inverted,D=k.bounds[a?"h":"v"],p=1===b.length,x=b[0][m],A=!p&&b[1][m];b=function(){"number"===typeof J&&20<Math.abs(x-A)&&(G=q||Math.abs(O-J)/Math.abs(x-A));
|
||||
r=(w-O)/G+x;C=k["plot"+(a?"Width":"Height")]/G};var C,r,G=q||1,O=f[0][m],J=!p&&f[1][m];b();f=r;if(f<D.min){f=D.min;var t=!0}else f+C>D.max&&(f=D.max-C,t=!0);t?(O-=.8*(O-c[l][0]),"number"===typeof J&&(J-=.8*(J-c[l][1])),b()):c[l]=[O,J];u||(h[l]=r-w,h[n]=C);h=u?1/G:G;g[n]=C;g[l]=f;d[u?a?"scaleY":"scaleX":"scale"+e]=G;d["translate"+e]=h*w+(O-h*x)};b.prototype.reset=function(a,b){var f=this.chart,d=f.hoverSeries,g=f.hoverPoint,h=f.hoverPoints,c=f.tooltip,q=c&&c.shared?h:g;a&&q&&C(q).forEach(function(c){c.series.isCartesian&&
|
||||
"undefined"===typeof c.plotX&&(a=!1)});if(a)c&&q&&C(q).length&&(c.refresh(q),c.shared&&h?h.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):g&&(g.setState(g.state,!0),f.axes.forEach(function(a){a.crosshair&&g.series[a.coll]===a&&a.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();h&&h.forEach(function(a){a.setState()});if(d)d.onMouseOut();c&&c.hide(b);
|
||||
this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());f.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=f.hoverPoints=f.hoverPoint=null}};b.prototype.runPointActions=function(a,g){var f=this.chart,h=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,k=h?h.shared:!1,l=g||f.hoverPoint,c=l&&l.series||f.hoverSeries;g=this.getHoverData(l,c,f.series,(!a||"touchmove"!==a.type)&&(!!g||c&&c.directTouch&&this.isDirectTouch),k,a);l=g.hoverPoint;c=g.hoverSeries;var q=g.hoverPoints;g=c&&
|
||||
c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var e=k&&c&&!c.noSharedTooltip;if(l&&(l!==f.hoverPoint||h&&h.isHidden)){(f.hoverPoints||[]).forEach(function(a){-1===q.indexOf(a)&&a.setState()});if(f.hoverSeries!==c)c.onMouseOver();this.applyInactiveState(q);(q||[]).forEach(function(a){a.setState("hover")});f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!l.series)return;f.hoverPoints=q;f.hoverPoint=l;l.firePointEvent("mouseOver",void 0,function(){h&&l&&h.refresh(e?q:l,a)})}else g&&
|
||||
h&&!h.isHidden&&(k=h.getAnchor([{}],a),f.isInsidePlot(k[0],k[1],{visiblePlotOnly:!0})&&h.updatePosition({plotX:k[0],plotY:k[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(f.container.ownerDocument,"mousemove",function(a){var c=t[b.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));f.axes.forEach(function(c){var b=x((c.crosshair||{}).snap,!0),g;b&&((g=f.hoverPoint)&&g.series[c.coll]===c||(g=d(q,function(a){return a.series&&a.series[c.coll]===
|
||||
c})));g||!b?c.drawCrosshair(a,g):c.hideCrosshair()})};b.prototype.scaleGroups=function(a,b){var f=this.chart;f.series.forEach(function(d){var g=a||d.getPlotBox();d.group&&(d.xAxis&&d.xAxis.zoomEnabled||f.mapView)&&(d.group.attr(g),d.markerGroup&&(d.markerGroup.attr(g),d.markerGroup.clip(b?f.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(g))});f.clipRect.attr(b||f.clipBox)};b.prototype.setDOMEvents=function(){var a=this,d=this.chart.container,f=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);
|
||||
d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(z(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(z(d,"mouseleave",this.onContainerMouseLeave.bind(this)));b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=z(f,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(z(g,"scroll",function(){delete a.chartPosition})),g=
|
||||
g.parentElement;e.hasTouch&&(this.eventsToUnbind.push(z(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=z(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,d=e.charts[x(b.hoverChartIndex,-1)];if(d&&d!==a)d.pointer.onContainerMouseLeave({relatedTarget:a.container});
|
||||
d&&d.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,b){var f=this.chart,d;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(d=f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop,{visiblePlotOnly:!0}))&&!f.openMenu){b&&this.runPointActions(a);if("touchmove"===a.type){b=this.pinchDown;var g=b[0]?4<=Math.sqrt(Math.pow(b[0].chartX-a.chartX,2)+Math.pow(b[0].chartY-a.chartY,2)):!1}x(g,!0)&&this.pinch(a)}else b&&this.reset();else 2===a.touches.length&&this.pinch(a)};
|
||||
b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zooming.singleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var b=this.chart,f=b.options.chart;b=b.inverted;var d=f.zooming.type||"";/touch/.test(a.type)&&(d=x(f.zooming.pinchType,d));this.zoomX=a=/x/.test(d);this.zoomY=f=/y/.test(d);this.zoomHor=a&&!b||f&&b;this.zoomVert=f&&!b||a&&b;this.hasZoom=a||f};return b}();"";return b});I(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],
|
||||
function(b,e,y){function B(){var a=[];a.item=function(a){return this[a]};d(m,function(b){a.push({pageX:b.pageX,pageY:b.pageY,target:b.target})});return a}function v(a,b,d,g){var h=F[e.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!h||(h=h.pointer,g(a),h[b]({type:d,target:a.currentTarget,preventDefault:r,touches:B()}))}var t=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
|
||||
b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),F=b.charts,z=b.doc,r=b.noop,p=b.win,h=y.addEvent,a=y.css,d=y.objectEach,g=y.removeEvent,m={},n=!!p.PointerEvent;return function(d){function e(){return null!==d&&d.apply(this,arguments)||this}t(e,d);e.isRequired=function(){return!(b.hasTouch||!p.PointerEvent&&!p.MSPointerEvent)};e.prototype.batchMSEvents=
|
||||
function(a){a(this.chart.container,n?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,n?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(z,n?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};e.prototype.destroy=function(){this.batchMSEvents(g);d.prototype.destroy.call(this)};e.prototype.init=function(b,g){d.prototype.init.call(this,b,g);this.hasZoom&&a(b.container,{"-ms-touch-action":"none","touch-action":"none"})};e.prototype.onContainerPointerDown=
|
||||
function(a){v(a,"onContainerTouchStart","touchstart",function(a){m[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};e.prototype.onContainerPointerMove=function(a){v(a,"onContainerTouchMove","touchmove",function(a){m[a.pointerId]={pageX:a.pageX,pageY:a.pageY};m[a.pointerId].target||(m[a.pointerId].target=a.currentTarget)})};e.prototype.onDocumentPointerUp=function(a){v(a,"onDocumentTouchEnd","touchend",function(a){delete m[a.pointerId]})};e.prototype.setDOMEvents=function(){d.prototype.setDOMEvents.call(this);
|
||||
(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)};return e}(e)});I(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t){var F=b.animObject,z=b.setAnimation,r=e.format;b=y.isFirefox;var p=y.marginNames;y=y.win;var h=v.distribute,a=t.addEvent,d=t.createElement,g=t.css,m=t.defined,n=t.discardElement,G=t.find,J=t.fireEvent,
|
||||
x=t.isNumber,C=t.merge,u=t.pick,l=t.relativeLength,A=t.stableSort,f=t.syncTimeout;v=t.wrap;t=function(){function b(a,b){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=
|
||||
void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,b)}b.prototype.init=function(b,f){this.chart=b;this.setOptions(f);f.enabled&&(this.render(),a(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=a(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(a){var b=u(a.padding,
|
||||
8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=C(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=u(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(a,b){var c=this.chart;this.setOptions(C(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=
|
||||
!0;u(b,!0)&&c.redraw();J(this,"afterUpdate")};b.prototype.colorizeItem=function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var c=this.options,f=a.legendItem,d=a.legendLine,g=a.legendSymbol,k=this.itemHiddenStyle.color;c=b?c.itemStyle.color:k;var h=b?a.color||k:k,e=a.options&&a.options.marker,l={fill:h};f&&f.css({fill:c,color:c});d&&d.attr({stroke:h});g&&(e&&g.isMarker&&(l=a.pointAttribs(),b||(l.stroke=l.fill=k)),g.attr(l))}J(this,"afterColorizeItem",
|
||||
{item:a,visible:b})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(a){var b=this,c=this.options,f=c.symbolPadding,d=!c.rtl,g=a._legendItemPos;c=g[0];g=g[1];var k=a.checkbox,h=a.legendGroup;h&&h.element&&(f={translateX:d?c:this.legendWidth-c-2*f-4,translateY:g},d=function(){J(b,"afterPositionItem",{item:a})},m(h.translateY)?h.animate(f,void 0,d):(h.attr(f),d()));k&&(k.x=c,k.y=g)};
|
||||
b.prototype.destroyItem=function(a){var b=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&(a[c]=a[c].destroy())});b&&n(a.checkbox)};b.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(b){["legendItem","legendGroup"].forEach(a,b)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};b.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,
|
||||
b=this.clipHeight||this.legendHeight,c=this.titleHeight;if(a){var f=a.translateY;this.allItems.forEach(function(d){var k=d.checkbox;if(k){var h=f+c+k.y+(this.scrollOffset||0)+3;g(k,{left:a.translateX+d.checkboxOffset+k.x-20+"px",top:h+"px",display:this.proximate||h>f-6&&h<f+b-6?"":"none"})}},this)}};b.prototype.renderTitle=function(){var a=this.options,b=this.padding,c=a.title,f=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,b-3,b-4,void 0,void 0,void 0,a.useHTML,void 0,"legend-title").attr({zIndex:1}),
|
||||
this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),f=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:f}));this.titleHeight=f};b.prototype.setText=function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?r(b.labelFormat,a,this.chart):b.labelFormatter.call(a)})};b.prototype.renderItem=function(a){var b=this.chart,c=b.renderer,f=this.options,d=this.symbolWidth,g=f.symbolPadding||
|
||||
0,k=this.itemStyle,h=this.itemHiddenStyle,e="horizontal"===f.layout?u(f.itemDistance,20):0,l=!f.rtl,m=!a.series,n=!m&&a.series.drawLegendSymbol?a.series:a,w=n.options,p=this.createCheckboxForItem&&w&&w.showCheckbox,x=f.useHTML,A=a.options.className,r=a.legendItem;w=d+g+e+(p?20:0);r||(a.legendGroup=c.g("legend-item").addClass("highcharts-"+n.type+"-series highcharts-color-"+a.colorIndex+(A?" "+A:"")+(m?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=r=c.text("",
|
||||
l?d+g:-g,this.baseline||0,x),b.styledMode||r.css(C(a.visible?k:h)),r.attr({align:l?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(b.styledMode?12:k.fontSize,r),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,r.attr("y",this.baseline),this.symbolHeight=f.symbolHeight||this.fontMetrics.f,f.squareSymbol&&(this.symbolWidth=u(f.symbolWidth,Math.max(this.symbolHeight,16)),w=this.symbolWidth+g+e+(p?20:0),l&&r.attr("x",this.symbolWidth+g))),n.drawLegendSymbol(this,
|
||||
a),this.setItemEvents&&this.setItemEvents(a,r,x));p&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!b.styledMode&&k.width||r.css({width:(f.itemWidth||this.widthOption||b.spacingBox.width)-w+"px"});this.setText(a);b=r.getBBox();c=this.fontMetrics&&this.fontMetrics.h||0;a.itemWidth=a.checkboxOffset=f.itemWidth||a.legendItemWidth||b.width+w;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=
|
||||
a.itemHeight=Math.round(a.legendItemHeight||(b.height>1.5*c?b.height:c))};b.prototype.layoutItem=function(a){var b=this.options,c=this.padding,f="horizontal"===b.layout,d=a.itemHeight,g=this.itemMarginBottom,k=this.itemMarginTop,h=f?u(b.itemDistance,20):0,e=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>e?this.maxItemWidth:a.itemWidth;f&&this.itemX-c+b>e&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=k+this.lastLineHeight+g),this.lastLineHeight=0);this.lastItemY=k+this.itemY+g;this.lastLineHeight=
|
||||
Math.max(d,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];f?this.itemX+=b:(this.itemY+=k+d+g,this.lastLineHeight=d);this.offsetWidth=this.widthOption||Math.max((f?this.itemX-c-(a.checkbox?0:h):b)+c,this.offsetWidth)};b.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(b){var c=b&&b.options;b&&u(c.showInLegend,m(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});J(this,"afterGetAllItems",{allItems:a});return a};b.prototype.getAlignment=
|
||||
function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};b.prototype.adjustMargins=function(a,b){var c=this.chart,f=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,k){g.test(d)&&!m(a[k])&&(c[p[k]]=Math.max(c[p[k]],c.legend[(k+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][k]*f[k%2?"x":"y"]+u(f.margin,12)+b[k]+(c.titleOffset[k]||0)))})};
|
||||
b.prototype.proximatePositions=function(){var a=this.chart,b=[],c="left"===this.options.align;this.allItems.forEach(function(f){var d;var g=c;if(f.yAxis){f.xAxis.options.reversed&&(g=!g);f.points&&(d=G(g?f.points:f.points.slice(0).reverse(),function(a){return x(a.plotY)}));g=this.itemMarginTop+f.legendItem.getBBox().height+this.itemMarginBottom;var k=f.yAxis.top-a.plotTop;f.visible?(d=d?d.plotY:f.yAxis.height,d+=k-.3*g):d=k+f.yAxis.height;b.push({target:d,size:g,item:f})}},this);h(b,a.plotHeight).forEach(function(c){c.item._legendItemPos&&
|
||||
c.pos&&(c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos)})};b.prototype.render=function(){var a=this.chart,b=a.renderer,c=this.options,f=this.padding,d=this.getAllItems(),g=this.group,h=this.box;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=l(c.width,a.spacingBox.width-f);var e=a.spacingBox.width-2*f-c.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(e/=2);this.maxLegendWidth=this.widthOption||e;g||(this.group=g=b.g("legend").addClass(c.className||
|
||||
"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(g),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();A(d,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});c.reversed&&d.reverse();this.allItems=d;this.display=e=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;d.forEach(this.renderItem,this);d.forEach(this.layoutItem,this);d=(this.widthOption||this.offsetWidth)+f;var m=this.lastItemY+
|
||||
this.lastLineHeight+this.titleHeight;m=this.handleOverflow(m);m+=f;h||(this.box=h=b.rect().addClass("highcharts-legend-box").attr({r:c.borderRadius}).add(g));a.styledMode||h.attr({stroke:c.borderColor,"stroke-width":c.borderWidth||0,fill:c.backgroundColor||"none"}).shadow(c.shadow);if(0<d&&0<m)h[h.placed?"animate":"attr"](h.crisp.call({},{x:0,y:0,width:d,height:m},h.strokeWidth()));g[e?"show":"hide"]();a.styledMode&&"none"===g.getStyle("display")&&(d=m=0);this.legendWidth=d;this.legendHeight=m;e&&
|
||||
this.align();this.proximate||this.positionItems();J(this,"afterRender")};b.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var b=this.chart,c=this.options,f=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<b.titleOffset[0]?f+=b.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<b.titleOffset[2]&&(f-=b.titleOffset[2]);f!==a.y&&(a=C(a,{y:f}));b.hasRendered||(this.group.placed=!1);this.group.align(C(c,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?
|
||||
"top":c.verticalAlign}),!0,a)};b.prototype.handleOverflow=function(a){var b=this,c=this.chart,f=c.renderer,d=this.options,g=d.y,h="top"===d.verticalAlign,k=this.padding,e=d.maxHeight,l=d.navigation,m=u(l.animation,!0),n=l.arrowSize||12,w=this.pages,p=this.allItems,x=function(a){"number"===typeof a?J.attr({height:a}):J&&(b.clipRect=J.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+k+"px,9999px,"+(k+a)+"px,0)":"auto")},A=function(a){b[a]=f.circle(0,0,1.3*
|
||||
n).translate(n/2,n/2).add(G);c.styledMode||b[a].attr("fill","rgba(0,0,0,0.0001)");return b[a]},C,r;g=c.spacingBox.height+(h?-g:g)-k;var G=this.nav,J=this.clipRect;"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(g/=2);e&&(g=Math.min(g,e));w.length=0;a&&0<g&&a>g&&!1!==l.enabled?(this.clipHeight=C=Math.max(g-20-this.titleHeight-k,0),this.currentPage=u(this.currentPage,1),this.fullHeight=a,p.forEach(function(a,c){var b=a._legendItemPos[1],f=Math.round(a.legendItem.getBBox().height),
|
||||
d=w.length;if(!d||b-w[d-1]>C&&(r||b)!==w[d-1])w.push(r||b),d++;a.pageIx=d-1;r&&(p[c-1].pageIx=d-1);c===p.length-1&&b+f-w[d-1]>C&&f<=C&&(w.push(b),a.pageIx=d);b!==r&&(r=b)}),J||(J=b.clipRect=f.clipRect(0,k,9999,0),b.contentGroup.clip(J)),x(C),G||(this.nav=G=f.g().attr({zIndex:1}).add(this.group),this.up=f.symbol("triangle",0,0,n,n).add(G),A("upTracker").on("click",function(){b.scroll(-1,m)}),this.pager=f.text("",15,10).addClass("highcharts-legend-navigation"),!c.styledMode&&l.style&&this.pager.css(l.style),
|
||||
this.pager.add(G),this.down=f.symbol("triangle-down",0,0,n,n).add(G),A("downTracker").on("click",function(){b.scroll(1,m)})),b.scroll(0),a=g):G&&(x(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};b.prototype.scroll=function(a,b){var c=this,d=this.chart,g=this.pages,h=g.length,k=this.clipHeight,e=this.options.navigation,l=this.pager,m=this.padding,n=this.currentPage+a;n>h&&(n=h);0<n&&("undefined"!==typeof b&&z(b,d),this.nav.attr({translateX:m,translateY:k+
|
||||
this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:n+"/"+h}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":n===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),d.styledMode||(this.up.attr({fill:1===n?e.inactiveColor:e.activeColor}),this.upTracker.css({cursor:1===n?"default":
|
||||
"pointer"}),this.down.attr({fill:n===h?e.inactiveColor:e.activeColor}),this.downTracker.css({cursor:n===h?"default":"pointer"})),this.scrollOffset=-g[n-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=n,this.positionCheckboxes(),a=F(u(b,d.renderer.globalAnimation,!0)),f(function(){J(c,"afterScroll",{currentPage:n})},a.duration))};b.prototype.setItemEvents=function(a,b,c){var f=this,d=f.chart.renderer.boxWrapper,g=a instanceof B,h="highcharts-legend-"+
|
||||
(g?"point":"series")+"-active",k=f.chart.styledMode,e=function(c){f.allItems.forEach(function(b){a!==b&&[b].concat(b.linkedSeries||[]).forEach(function(a){a.setState(c,!g)})})};(c?[b,a.legendSymbol]:[a.legendGroup]).forEach(function(c){if(c)c.on("mouseover",function(){a.visible&&e("inactive");a.setState("hover");a.visible&&d.addClass(h);k||b.css(f.options.itemHoverStyle)}).on("mouseout",function(){f.chart.styledMode||b.css(C(a.visible?f.itemStyle:f.itemHiddenStyle));e("");d.removeClass(h);a.setState()}).on("click",
|
||||
function(c){var b=function(){a.setVisible&&a.setVisible();e(a.visible?"inactive":"")};d.removeClass(h);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,b):J(a,"legendItemClick",c,b)})})};b.prototype.createCheckboxForItem=function(b){b.checkbox=d("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:b.selected,defaultChecked:b.selected},this.options.itemCheckboxStyle,this.chart.container);a(b.checkbox,"click",function(a){J(b.series||b,"checkboxClick",{checked:a.target.checked,
|
||||
item:b},function(){b.select()})})};return b}();(/Trident\/7\.0/.test(y.navigator&&y.navigator.userAgent)||b)&&v(t.prototype,"positionItem",function(a,b){var f=this,c=function(){b._legendItemPos&&a.call(f,b)};c();f.bubbleLegend||setTimeout(c)});"";return t});I(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/DefaultOptions.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=e.defaultOptions,t=B.extendClass,F=B.merge,z;(function(e){function p(b,a){var d=v.plotOptions||
|
||||
{},g=a.defaultOptions,h=a.prototype;h.type=b;h.pointClass||(h.pointClass=y);g&&(d[b]=g);e.seriesTypes[b]=a}e.seriesTypes=b.seriesTypes;e.registerSeriesType=p;e.seriesType=function(b,a,d,g,m){var h=v.plotOptions||{};a=a||"";h[b]=F(h[a],d);p(b,t(e.seriesTypes[a]||function(){},g));e.seriesTypes[b].prototype.type=b;m&&(e.seriesTypes[b].prototype.pointClass=t(y,m));return e.seriesTypes[b]}})(z||(z={}));return z});I(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],
|
||||
e["Core/FormatUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/Legend.js"],e["Core/MSPointer.js"],e["Core/DefaultOptions.js"],e["Core/Pointer.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"]],function(b,e,y,B,v,t,F,z,r,p,h,a,d,g,m){var n=b.animate,G=b.animObject,J=b.setAnimation,x=y.numberFormat,C=B.registerEventOptions,u=v.charts,l=
|
||||
v.doc,A=v.marginNames,f=v.svg,w=v.win,k=z.defaultOptions,D=z.defaultTime,c=h.seriesTypes,q=g.addEvent,E=g.attr,H=g.cleanRecursively,K=g.createElement,L=g.css,S=g.defined,V=g.discardElement,P=g.erase,M=g.error,ba=g.extend,ea=g.find,I=g.fireEvent,fa=g.getStyle,R=g.isArray,X=g.isNumber,O=g.isObject,U=g.isString,T=g.merge,Y=g.objectEach,N=g.pick,aa=g.pInt,ca=g.relativeLength,ia=g.removeEvent,Z=g.splat,da=g.syncTimeout,ja=g.uniqueKey;b=function(){function b(a,c,b){this.series=this.renderTo=this.renderer=
|
||||
this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(a,
|
||||
c,b)}b.chart=function(a,c,f){return new b(a,c,f)};b.prototype.getArgs=function(a,c,b){U(a)||a.nodeName?(this.renderTo=a,this.init(c,b)):this.init(a,c)};b.prototype.init=function(a,c){var b=a.plotOptions||{};I(this,"init",{args:arguments},function(){var f=T(k,a),g=f.chart;Y(f.plotOptions,function(a,c){O(a)&&(a.tooltip=b[c]&&T(b[c].tooltip)||void 0)});f.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=[];this.bounds={h:{},
|
||||
v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;var h=g.zooming=g.zooming||{};a.chart&&!a.chart.zooming&&(h.resetButton=g.resetZoomButton);h.key=N(h.key,g.zoomKey);h.pinchType=N(h.pinchType,g.pinchType);h.singleTouch=N(h.singleTouch,g.zoomBySingleTouch);h.type=N(h.type,g.zoomType);this.options=f;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new d(a.time):v.time;this.numberFormatter=g.numberFormatter||x;this.styledMode=g.styledMode;this.hasCartesianSeries=
|
||||
g.showAxes;this.index=u.length;u.push(this);v.chartCount++;C(this,g);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;I(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(a){var b=this.options.chart;b=a.type||b.type||b.defaultSeriesType;var f=c[b];f||M(17,!0,this,{missingModuleFor:b});b=new f;"function"===typeof b.init&&b.init(this,a);return b};b.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||
|
||||
!a.enabledDataSorting||a.setData(a.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};b.prototype.orderSeries=function(a){var c=this.series;a=a||0;for(var b=c.length;a<b;++a)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};b.prototype.isInsidePlot=function(a,c,b){void 0===b&&(b={});var f=this.inverted,d=this.plotBox,g=this.plotLeft,h=this.plotTop,
|
||||
k=this.scrollablePlotBox,e=0;var l=0;b.visiblePlotOnly&&this.scrollingContainer&&(l=this.scrollingContainer,e=l.scrollLeft,l=l.scrollTop);var m=b.series;d=b.visiblePlotOnly&&k||d;k=b.inverted?c:a;c=b.inverted?a:c;a={x:k,y:c,isInsidePlot:!0};if(!b.ignoreX){var q=m&&(f?m.yAxis:m.xAxis)||{pos:g,len:Infinity};k=b.paneCoordinates?q.pos+k:g+k;k>=Math.max(e+g,q.pos)&&k<=Math.min(e+g+d.width,q.pos+q.len)||(a.isInsidePlot=!1)}!b.ignoreY&&a.isInsidePlot&&(f=m&&(f?m.xAxis:m.yAxis)||{pos:h,len:Infinity},b=b.paneCoordinates?
|
||||
f.pos+c:h+c,b>=Math.max(l+h,f.pos)&&b<=Math.min(l+h+d.height,f.pos+f.len)||(a.isInsidePlot=!1));I(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){I(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],b=this.series,f=this.pointer,d=this.legend,g=this.userOptions.legend,h=this.renderer,k=h.isHidden(),e=[],l=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);J(this.hasRendered?a:!1,this);k&&this.temporaryDisplay();
|
||||
this.layOutTitles();for(a=b.length;a--;){var q=b[a];if(q.options.stacking||q.options.centerInCategory){var n=!0;if(q.isDirty){var u=!0;break}}}if(u)for(a=b.length;a--;)q=b[a],q.options.stacking&&(q.isDirty=!0);b.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),m=!0):g&&(g.labelFormatter||g.labelFormat)&&(m=!0));a.isDirtyData&&I(a,"updatedData")});m&&d&&d.options.enabled&&(d.render(),this.isDirtyLegend=!1);n&&this.getStacks();c.forEach(function(a){a.updateNames();
|
||||
a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(l=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,e.push(function(){I(a,"afterSetExtremes",ba(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(l||n)&&a.redraw()});l&&this.drawChartBox();I(this,"predraw");b.forEach(function(a){(l||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});f&&f.reset(!0);h.draw();I(this,"redraw");I(this,"render");k&&this.temporaryDisplay(!0);e.forEach(function(a){a.call()})};
|
||||
b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var b=this.series,f=ea(this.axes,c)||ea(this.series,c),d=0;!f&&d<b.length;d++)f=ea(b[d].points||[],c);return f};b.prototype.getAxes=function(){var a=this,c=this.options,b=c.xAxis=Z(c.xAxis||{});c=c.yAxis=Z(c.yAxis||{});I(this,"getAxes");b.forEach(function(a,c){a.index=c;a.isX=!0});c.forEach(function(a,c){a.index=c});b.concat(c).forEach(function(c){new e(a,c)});I(this,"afterGetAxes")};b.prototype.getSelectedPoints=
|
||||
function(){return this.series.reduce(function(a,c){c.getPointsCollection().forEach(function(c){N(c.selectedStaging,c.selected)&&a.push(c)});return a},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};b.prototype.setTitle=function(a,c,b){this.applyDescription("title",a);this.applyDescription("subtitle",c);this.applyDescription("caption",void 0);this.layOutTitles(b)};b.prototype.applyDescription=function(a,c){var b=this,f="title"===a?{color:"#333333",
|
||||
fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};f=this.options[a]=T(!this.styledMode&&{style:f},this.options[a],c);var d=this[a];d&&c&&(this[a]=d=d.destroy());f&&!d&&(d=this.renderer.text(f.text,0,0,f.useHTML).attr({align:f.align,"class":"highcharts-"+a,zIndex:f.zIndex||4}).add(),d.update=function(c){b[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},this.styledMode||d.css(f.style),this[a]=d)};b.prototype.layOutTitles=function(a){var c=[0,0,0],b=this.renderer,
|
||||
f=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var d=this[a],g=this.options[a],h=g.verticalAlign||"top";a="title"===a?"top"===h?-3:0:"top"===h?c[0]+2:0;var k;if(d){this.styledMode||(k=g.style&&g.style.fontSize);k=b.fontMetrics(k,d).b;d.css({width:(g.width||f.width+(g.widthAdjust||0))+"px"});var e=Math.round(d.getBBox(g.useHTML).height);d.align(ba({y:"bottom"===h?k:a+k,height:e},g),!1,"spacingBox");g.floating||("top"===h?c[0]=Math.ceil(c[0]+e):"bottom"===h&&(c[2]=Math.ceil(c[2]+
|
||||
e)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var d=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;I(this,"afterLayOutTitles");!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&N(a,!0)&&this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;
|
||||
var b=this.renderTo;S(c)||(this.containerWidth=fa(b,"width"));S(a)||(this.containerHeight=fa(b,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ca(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&(L(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(l.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){l.body.contains(c)||
|
||||
c.parentNode||(c.hcOrigDetached=!0,l.body.appendChild(c));if("none"===fa(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),L(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===l.body)break}};b.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};b.prototype.getContainer=function(){var c=
|
||||
this.options,b=c.chart,d=ja(),g,h=this.renderTo;h||(this.renderTo=h=b.renderTo);U(h)&&(this.renderTo=h=l.getElementById(h));h||M(13,!0,this);var k=aa(E(h,"data-highcharts-chart"));X(k)&&u[k]&&u[k].hasRendered&&u[k].destroy();E(h,"data-highcharts-chart",this.index);h.innerHTML=m.emptyHTML;b.skipClone||h.offsetWidth||this.temporaryDisplay();this.getChartSize();k=this.chartWidth;var e=this.chartHeight;L(h,{overflow:"hidden"});this.styledMode||(g=ba({position:"relative",overflow:"hidden",width:k+"px",
|
||||
height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=d=K("div",{id:d},g,h);this._cursor=d.style.cursor;this.renderer=new (b.renderer||!f?p.getRendererType(b.renderer):a)(d,k,e,void 0,b.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);J(void 0,this);this.setClassName(b.className);if(this.styledMode)for(var q in c.defs)this.renderer.definition(c.defs[q]);
|
||||
else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;I(this,"afterGetContainer")};b.prototype.getMargins=function(a){var c=this.spacing,b=this.margin,f=this.titleOffset;this.resetMargins();f[0]&&!S(b[0])&&(this.plotTop=Math.max(this.plotTop,f[0]+c[0]));f[2]&&!S(b[2])&&(this.marginBottom=Math.max(this.marginBottom,f[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(b,c);I(this,"getMargins");a||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var a=
|
||||
this,c=a.axisOffset=[0,0,0,0],b=a.colorAxis,f=a.margin,d=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?d(a.axes):b&&b.length&&d(b);A.forEach(function(b,d){S(f[d])||(a[b]+=c[d])});a.setChartSize()};b.prototype.reflow=function(a){var c=this,b=c.options.chart,f=c.renderTo,d=S(b.width)&&S(b.height),h=b.width||fa(f,"width");b=b.height||fa(f,"height");f=a?a.target:w;delete c.pointer.chartPosition;if(!d&&!c.isPrinting&&h&&b&&(f===w||f===l)){if(h!==c.containerWidth||b!==
|
||||
c.containerHeight)g.clearTimeout(c.reflowTimeout),c.reflowTimeout=da(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=h;c.containerHeight=b}};b.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=q(w,"resize",function(a){c.options&&c.reflow(a)}),q(this,"destroy",this.unbindReflow))};b.prototype.setSize=function(a,c,b){var f=this,d=f.renderer;f.isResizing+=1;J(b,f);b=
|
||||
d.globalAnimation;f.oldChartHeight=f.chartHeight;f.oldChartWidth=f.chartWidth;"undefined"!==typeof a&&(f.options.chart.width=a);"undefined"!==typeof c&&(f.options.chart.height=c);f.getChartSize();f.styledMode||(b?n:L)(f.container,{width:f.chartWidth+"px",height:f.chartHeight+"px"},b);f.setChartSize(!0);d.setSize(f.chartWidth,f.chartHeight,b);f.axes.forEach(function(a){a.isDirty=!0;a.setScale()});f.isDirtyLegend=!0;f.isDirtyBox=!0;f.layOutTitles();f.getMargins();f.redraw(b);f.oldChartHeight=null;I(f,
|
||||
"resize");da(function(){f&&I(f,"endResize",null,function(){--f.isResizing})},G(b).duration)};b.prototype.setChartSize=function(a){var c=this.inverted,b=this.renderer,f=this.chartWidth,d=this.chartHeight,g=this.options.chart,h=this.spacing,k=this.clipOffset,e,l,m,q;this.plotLeft=e=Math.round(this.plotLeft);this.plotTop=l=Math.round(this.plotTop);this.plotWidth=m=Math.max(0,Math.round(f-e-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(d-l-this.marginBottom));this.plotSizeX=c?q:m;this.plotSizeY=
|
||||
c?m:q;this.plotBorderWidth=g.plotBorderWidth||0;this.spacingBox=b.spacingBox={x:h[3],y:h[0],width:f-h[3]-h[1],height:d-h[0]-h[2]};this.plotBox=b.plotBox={x:e,y:l,width:m,height:q};c=2*Math.floor(this.plotBorderWidth/2);f=Math.ceil(Math.max(c,k[3])/2);d=Math.ceil(Math.max(c,k[0])/2);this.clipBox={x:f,y:d,width:Math.floor(this.plotSizeX-Math.max(c,k[1])/2-f),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,k[2])/2-d))};a||(this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()}),
|
||||
b.alignElements());I(this,"afterSetChartSize",{skipAxes:a})};b.prototype.resetMargins=function(){I(this,"resetMargins");var a=this,c=a.options.chart;["margin","spacing"].forEach(function(b){var f=c[b],d=O(f)?f:[f,f,f,f];["Top","Right","Bottom","Left"].forEach(function(f,g){a[b][g]=N(c[b+f],d[g])})});A.forEach(function(c,b){a[c]=N(a.margin[b],a.spacing[b])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,b=this.chartWidth,
|
||||
f=this.chartHeight,d=this.styledMode,g=this.plotBGImage,h=a.backgroundColor,k=a.plotBackgroundColor,e=a.plotBackgroundImage,l=this.plotLeft,m=this.plotTop,q=this.plotWidth,n=this.plotHeight,u=this.plotBox,w=this.clipRect,p=this.clipBox,E=this.chartBackground,x=this.plotBackground,C=this.plotBorder,A,D="animate";E||(this.chartBackground=E=c.rect().addClass("highcharts-background").add(),D="attr");if(d)var r=A=E.strokeWidth();else{r=a.borderWidth||0;A=r+(a.shadow?8:0);h={fill:h||"none"};if(r||E["stroke-width"])h.stroke=
|
||||
a.borderColor,h["stroke-width"]=r;E.attr(h).shadow(a.shadow)}E[D]({x:A/2,y:A/2,width:b-A-r%2,height:f-A-r%2,r:a.borderRadius});D="animate";x||(D="attr",this.plotBackground=x=c.rect().addClass("highcharts-plot-background").add());x[D](u);d||(x.attr({fill:k||"none"}).shadow(a.plotShadow),e&&(g?(e!==g.attr("href")&&g.attr("href",e),g.animate(u)):this.plotBGImage=c.image(e,l,m,q,n).add()));w?w.animate({width:p.width,height:p.height}):this.clipRect=c.clipRect(p);D="animate";C||(D="attr",this.plotBorder=
|
||||
C=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());d||C.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});C[D](C.crisp({x:l,y:m,width:q,height:n},-C.strokeWidth()));this.isDirtyBox=!1;I(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var a=this,b=a.options.chart,f=a.options.series,d,g,h;["inverted","angular","polar"].forEach(function(k){g=c[b.type||b.defaultSeriesType];h=b[k]||g&&g.prototype[k];for(d=f&&f.length;!h&&d--;)(g=c[f[d].type])&&
|
||||
g.prototype[k]&&(h=!0);a[k]=h})};b.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var b=c.options.linkedTo;U(b)&&(b=":previous"===b?a.series[c.index-1]:a.get(b))&&b.linkedParent!==c&&(b.linkedSeries.push(c),c.linkedParent=b,b.enabledDataSorting&&c.setDataSortingOptions(),c.visible=N(c.options.visible,b.options.visible,c.visible))});I(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
|
||||
a.render()})};b.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(b){var f=ba(c.style,b.style),d=aa(f.left)+a.plotLeft,g=aa(f.top)+a.plotTop+12;delete f.left;delete f.top;a.renderer.text(b.html,d,g).attr({zIndex:2}).css(f).add()})};b.prototype.render=function(){var a=this.axes,c=this.colorAxis,b=this.renderer,f=this.options,d=function(a){a.forEach(function(a){a.visible&&a.render()})},g=0;this.setTitle();this.legend=new t(this,f.legend);this.getStacks&&
|
||||
this.getStacks();this.getMargins(!0);this.setChartSize();f=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return g=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-g,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var k=1.1<f/this.plotWidth,e=1.05<h/this.plotHeight;if(k||e)a.forEach(function(a){(a.horiz&&k||!a.horiz&&e)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?d(a):c&&c.length&&d(c);
|
||||
this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(a){var c=this,b=T(!0,this.options.credits,a);b.enabled&&!this.credits&&(this.credits=this.renderer.text(b.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){b.href&&(w.location.href=b.href)}).attr({align:b.position.align,zIndex:8}),c.styledMode||
|
||||
this.credits.css(b.style),this.credits.add().align(b.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};b.prototype.destroy=function(){var a=this,c=a.axes,b=a.series,f=a.container,d=f&&f.parentNode,g;I(a,"destroy");a.renderer.forExport?P(u,a):u[a.index]=void 0;v.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");ia(a);for(g=c.length;g--;)c[g]=c[g].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(g=b.length;g--;)b[g]=
|
||||
b[g].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var b=a[c];b&&b.destroy&&(a[c]=b.destroy())});f&&(f.innerHTML=m.emptyHTML,ia(f),d&&V(f));Y(a,function(c,b){delete a[b]})};b.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();
|
||||
a.getAxes();(R(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();I(a,"beforeRender");r&&(F.isRequired()?a.pointer=new F(a,c):a.pointer=new r(a,c));a.render();a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);I(this,"load");I(this,"render");S(this.index)&&
|
||||
this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=!0};b.prototype.warnIfA11yModuleNotLoaded=function(){var a=this.options,c=this.title;a&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":c&&c.element.textContent||""}),a.accessibility&&!1===a.accessibility.enabled||M('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',
|
||||
!1,this))};b.prototype.addSeries=function(a,c,b){var f=this,d;a&&(c=N(c,!0),I(f,"addSeries",{options:a},function(){d=f.initSeries(a);f.isDirtyLegend=!0;f.linkSeries();d.enabledDataSorting&&d.setData(a.data,!1);I(f,"afterAddSeries",{series:d});c&&f.redraw(b)}));return d};b.prototype.addAxis=function(a,c,b,f){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:b,animation:f})};b.prototype.addColorAxis=function(a,c,b){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:b})};b.prototype.createAxis=
|
||||
function(a,c){a=new e(this,T(c.axis,{index:this[a].length,isX:"xAxis"===a}));N(c.redraw,!0)&&this.redraw(c.animation);return a};b.prototype.showLoading=function(a){var c=this,b=c.options,f=b.loading,d=function(){g&&L(g,{left:c.plotLeft+"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})},g=c.loadingDiv,h=c.loadingSpan;g||(c.loadingDiv=g=K("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container));h||(c.loadingSpan=h=K("span",{className:"highcharts-loading-inner"},
|
||||
null,g),q(c,"redraw",d));g.className="highcharts-loading";m.setElementHTML(h,N(a,b.lang.loading,""));c.styledMode||(L(g,ba(f.style,{zIndex:10})),L(h,f.labelStyle),c.loadingShown||(L(g,{opacity:0,display:""}),n(g,{opacity:f.style.opacity||.5},{duration:f.showDuration||0})));c.loadingShown=!0;d()};b.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||n(c,{opacity:0},{duration:a.loading.hideDuration||100,
|
||||
complete:function(){L(c,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(a,c,b,f){var g=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},k=a.isResponsiveOptions,e=[],l,m;I(g,"update",{options:a});k||g.setResponsive(!1,!0);a=H(a,g.options);g.userOptions=T(g.userOptions,a);var q=a.chart;if(q){T(!0,g.options.chart,q);"className"in q&&g.setClassName(q.className);"reflow"in q&&g.setReflow(q.reflow);if("inverted"in q||"polar"in q||"type"in
|
||||
q){g.propFromSeries();var n=!0}"alignTicks"in q&&(n=!0);"events"in q&&C(this,q);Y(q,function(a,c){-1!==g.propsRequireUpdateSeries.indexOf("chart."+c)&&(l=!0);-1!==g.propsRequireDirtyBox.indexOf(c)&&(g.isDirtyBox=!0);-1!==g.propsRequireReflow.indexOf(c)&&(k?g.isDirtyBox=!0:m=!0)});!g.styledMode&&q.style&&g.renderer.setStyle(g.options.chart.style||{})}!g.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===D&&(this.time=new d(a.time)),T(!0,g.options.time,a.time));Y(a,function(c,
|
||||
b){if(g[b]&&"function"===typeof g[b].update)g[b].update(c,!1);else if("function"===typeof g[h[b]])g[h[b]](c);else"colors"!==b&&-1===g.collectionsWithUpdate.indexOf(b)&&T(!0,g.options[b],a[b]);"chart"!==b&&-1!==g.propsRequireUpdateSeries.indexOf(b)&&(l=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var f=[];g[c].forEach(function(a,c){a.options.isInternal||f.push(N(a.options.index,c))});Z(a[c]).forEach(function(a,d){var h=S(a.id),k;h&&(k=g.get(a.id));!k&&g[c]&&(k=g[c][f?f[d]:d])&&h&&
|
||||
S(k.options.id)&&(k=void 0);k&&k.coll===c&&(k.update(a,!1),b&&(k.touched=!0));!k&&b&&g.collectionsWithInit[c]&&(g.collectionsWithInit[c][0].apply(g,[a].concat(g.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});b&&g[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:e.push(a)})}});e.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});n&&g.axes.forEach(function(a){a.update({},!1)});l&&g.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);n=q&&
|
||||
q.width;q=q&&(U(q.height)?ca(q.height,n||g.chartWidth):q.height);m||X(n)&&n!==g.chartWidth||X(q)&&q!==g.chartHeight?g.setSize(n,q,f):N(c,!0)&&g.redraw(f);I(g,"afterUpdate",{options:a,redraw:c,animation:f})};b.prototype.setSubtitle=function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};b.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};b.prototype.showResetZoom=function(){function a(){c.zoomOut()}var c=this,b=k.lang,f=c.options.chart.zooming.resetButton,
|
||||
d=f.theme,g="chart"===f.relativeTo||"spacingBox"===f.relativeTo?null:"scrollablePlotBox";I(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(b.resetZoom,null,null,a,d).attr({align:f.position.align,title:b.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(f.position,!1,g)});I(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){I(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(a){var c=this,b=c.pointer,f=c.inverted?b.mouseDownX:
|
||||
b.mouseDownY,d=!1,g;!a||a.resetSelection?(c.axes.forEach(function(a){g=a.zoom()}),b.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var h=a.axis,k=c.inverted?h.left:h.top,e=c.inverted?k+h.width:k+h.height,l=h.isXAxis,q=!1;if(!l&&f>=k&&f<=e||l||!S(f))q=!0;b[l?"zoomX":"zoomY"]&&q&&(g=h.zoom(a.min,a.max),h.displayBtn&&(d=!0))});var h=c.resetZoomButton;d&&!h?c.showResetZoom():!d&&O(h)&&(c.resetZoomButton=h.destroy());g&&c.redraw(N(c.options.chart.animation,a&&a.animation,100>c.pointCount))};
|
||||
b.prototype.pan=function(a,c){var b=this,f=b.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var d=b.options.chart;d&&d.panning&&(d.panning=c);var g=c.type,h;I(this,"pan",{originalEvent:a},function(){f&&f.forEach(function(a){a.setState()});var c=b.xAxis;"xy"===g?c=c.concat(b.yAxis):"y"===g&&(c=b.yAxis);var d={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var f=c.horiz,k=a[f?"chartX":"chartY"];f=f?"mouseDownX":"mouseDownY";var e=b[f],l=c.minPointOffset||0,q=c.reversed&&
|
||||
!b.inverted||!c.reversed&&b.inverted?-1:1,m=c.getExtremes(),n=c.toValue(e-k,!0)+l*q,u=c.toValue(e+c.len-k,!0)-(l*q||c.isXAxis&&c.pointRangePadding||0),w=u<n;q=c.hasVerticalPanning();e=w?u:n;n=w?n:u;var p=c.panningState;!q||c.isXAxis||p&&!p.isDirty||c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);p||(p={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});X(c.dataMin)&&X(c.dataMax)&&(p.startMin=Math.min(N(a.options.threshold,Infinity),c.dataMin,p.startMin),p.startMax=
|
||||
Math.max(N(a.options.threshold,-Infinity),c.dataMax,p.startMax))});q=Math.min(N(p&&p.startMin,m.dataMin),l?m.min:c.toValue(c.toPixels(m.min)-c.minPixelPadding));u=Math.max(N(p&&p.startMax,m.dataMax),l?m.max:c.toValue(c.toPixels(m.max)+c.minPixelPadding));c.panningState=p;c.isOrdinal||(l=q-e,0<l&&(n+=l,e=q),l=n-u,0<l&&(n=u,e-=l),c.series.length&&e!==m.min&&n!==m.max&&e>=q&&n<=u&&(c.setExtremes(e,n,!1,!1,{trigger:"pan"}),!b.resetZoomButton&&e!==q&&n!==u&&g.match("y")&&(b.showResetZoom(),c.displayBtn=
|
||||
!1),h=!0),d[f]=k)}});Y(d,function(a,c){b[c]=a});h&&b.redraw(!1);L(b.container,{cursor:"move"})})};return b}();ba(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
|
||||
propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});I(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],function(b){var e=b.merge,y=b.pick,B;(function(b){b.drawLineMarker=function(b){var t=this.options,v=b.symbolWidth,r=b.symbolHeight,p=r/2,h=this.chart.renderer,a=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var d={},g=t.marker;this.chart.styledMode||(d={"stroke-width":t.lineWidth||
|
||||
0},t.dashStyle&&(d.dashstyle=t.dashStyle));this.legendLine=h.path([["M",0,b],["L",v,b]]).addClass("highcharts-graph").attr(d).add(a);g&&!1!==g.enabled&&v&&(t=Math.min(y(g.radius,p),p),0===this.symbol.indexOf("url")&&(g=e(g,{width:r,height:r}),t=0),this.legendSymbol=v=h.symbol(this.symbol,v/2-t,b-t,2*t,2*t,g).addClass("highcharts-point").add(a),v.isMarker=!0)};b.drawRectangle=function(b,e){var t=b.symbolHeight,r=b.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(r?(b.symbolWidth-t)/2:0,
|
||||
b.baseline-t+1,r?t:b.symbolWidth,t,y(b.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}})(B||(B={}));return B});I(e,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",
|
||||
lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var b=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":b(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},
|
||||
select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});I(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/DefaultOptions.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F,z,
|
||||
r,p){var h=b.animObject,a=b.setAnimation,d=e.defaultOptions,g=y.registerEventOptions,m=B.hasTouch,n=B.svg,G=B.win,J=z.seriesTypes,x=p.addEvent,C=p.arrayMax,u=p.arrayMin,l=p.clamp,A=p.cleanRecursively,f=p.correctFloat,w=p.defined,k=p.erase,D=p.error,c=p.extend,q=p.find,E=p.fireEvent,H=p.getNestedProperty,K=p.isArray,L=p.isNumber,S=p.isString,V=p.merge,P=p.objectEach,M=p.pick,I=p.removeEvent,ea=p.splat,ha=p.syncTimeout;b=function(){function b(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=
|
||||
this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(a,b){E(this,"init",{options:b});var f=this,d=a.series;this.eventsToUnbind=[];f.chart=a;f.options=f.setOptions(b);b=f.options;f.linkedSeries=[];f.bindAxes();c(f,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});g(this,b);var h=b.events;if(h&&h.click||b.point&&b.point.events&&b.point.events.click||
|
||||
b.allowPointSelect)a.runTrackerClick=!0;f.getColor();f.getSymbol();f.parallelArrays.forEach(function(a){f[a+"Data"]||(f[a+"Data"]=[])});f.isCartesian&&(a.hasCartesianSeries=!0);var k;d.length&&(k=d[d.length-1]);f._i=M(k&&k._i,-1)+1;f.opacity=f.options.opacity;a.orderSeries(this.insert(d));b.dataSorting&&b.dataSorting.enabled?f.setDataSortingOptions():f.points||f.data||f.setData(b.data,!1);E(this,"afterInit")};b.prototype.is=function(a){return J[a]&&this instanceof J[a]};b.prototype.insert=function(a){var c=
|
||||
this.options.index,b;if(L(c)){for(b=a.length;b--;)if(c>=M(a[b].options.index,a[b]._i)){a.splice(b+1,0,this);break}-1===b&&a.unshift(this);b+=1}else a.push(this);return M(b,a.length-1)};b.prototype.bindAxes=function(){var a=this,c=a.options,b=a.chart,f;E(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(d){var g=0;b[d].forEach(function(b){f=b.options;if(c[d]===g&&!f.isInternal||"undefined"!==typeof c[d]&&c[d]===f.id||"undefined"===typeof c[d]&&0===f.index)a.insert(b.series),a[d]=b,
|
||||
b.isDirty=!0;f.isInternal||g++});a[d]||a.optionalAxis===d||D(18,!0,b)})});E(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(a,c){var b=a.series,f=arguments,d=L(c)?function(f){var d="y"===f&&b.toYData?b.toYData(a):a[f];b[f+"Data"][c]=d}:function(a){Array.prototype[c].apply(b[a+"Data"],Array.prototype.slice.call(f,2))};b.parallelArrays.forEach(d)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&
|
||||
this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(a){var c=this.options,b=c.pointIntervalUnit,f=c.relativeXValue,d=this.chart.time,g=this.xIncrement,h;g=M(g,c.pointStart,0);this.pointInterval=h=M(this.pointInterval,c.pointInterval,1);f&&L(a)&&(h*=a);b&&(c=new d.Date(g),"day"===b?d.set("Date",c,d.get("Date",c)+h):"month"===b?d.set("Month",c,d.get("Month",c)+h):"year"===b&&d.set("FullYear",c,d.get("FullYear",c)+h),h=c.getTime()-g);if(f&&L(a))return g+h;this.xIncrement=g+h;return g};
|
||||
b.prototype.setDataSortingOptions=function(){var a=this.options;c(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});w(a.pointRange)||(a.pointRange=1)};b.prototype.setOptions=function(a){var c=this.chart,b=c.options,f=b.plotOptions,g=c.userOptions||{};a=V(a);c=c.styledMode;var h={plotOptions:f,userOptions:a};E(this,"setOptions",h);var k=h.plotOptions[this.type],e=g.plotOptions||{};this.userOptions=h.userOptions;g=V(k,f.series,g.plotOptions&&g.plotOptions[this.type],a);this.tooltipOptions=
|
||||
V(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,b.tooltip.userOptions,f.series&&f.series.tooltip,f[this.type].tooltip,a.tooltip);this.stickyTracking=M(a.stickyTracking,e[this.type]&&e[this.type].stickyTracking,e.series&&e.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:g.stickyTracking);null===k.marker&&delete g.marker;this.zoneAxis=g.zoneAxis;f=this.zones=(g.zones||[]).slice();!g.negativeColor&&!g.negativeFillColor||g.zones||
|
||||
(b={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},c||(b.color=g.negativeColor,b.fillColor=g.negativeFillColor),f.push(b));f.length&&w(f[f.length-1].value)&&f.push(c?{}:{color:this.color,fillColor:this.fillColor});E(this,"afterSetOptions",{options:g});return g};b.prototype.getName=function(){return M(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(a,c,b){var f=this.chart,d=this.userOptions,g=a+"Index",h=a+"Counter",k=b?b.length:M(f.options.chart[a+
|
||||
"Count"],f[a+"Count"]);if(!c){var e=M(d[g],d["_"+g]);w(e)||(f.series.length||(f[h]=0),d["_"+g]=e=f[h]%k,f[h]+=1);b&&(c=b[e])}"undefined"!==typeof e&&(this[g]=e);this[a]=c};b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};b.prototype.getSymbol=
|
||||
function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(a,c){var b=a.id,f=a.x,d=this.points,g=this.options.dataSorting,h,k;if(b)g=this.chart.get(b),g instanceof t&&(h=g);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(h=function(c){return!c.touched&&c.index===a.index},g&&g.matchByName?h=function(c){return!c.touched&&c.name===a.name}:this.options.relativeXValue&&(h=function(c){return!c.touched&&
|
||||
c.options.x===a.x}),h=q(d,h),!h)return;if(h){var e=h&&h.index;"undefined"!==typeof e&&(k=!0)}"undefined"===typeof e&&L(f)&&(e=this.xData.indexOf(f,c));-1!==e&&"undefined"!==typeof e&&this.cropped&&(e=e>=this.cropStart?e-this.cropStart:e);!k&&L(e)&&d[e]&&d[e].touched&&(e=void 0);return e};b.prototype.updateData=function(a,c){var b=this.options,f=b.dataSorting,d=this.points,g=[],h=this.requireSorting,k=a.length===d.length,e,l,q,m=!0;this.xIncrement=null;a.forEach(function(a,c){var l=w(a)&&this.pointClass.prototype.optionsToObject.call({series:this},
|
||||
a)||{},m=l.x;if(l.id||L(m)){if(l=this.findPointIndex(l,q),-1===l||"undefined"===typeof l?g.push(a):d[l]&&a!==b.data[l]?(d[l].update(a,!1,null,!1),d[l].touched=!0,h&&(q=l+1)):d[l]&&(d[l].touched=!0),!k||c!==l||f&&f.enabled||this.hasDerivedData)e=!0}else g.push(a)},this);if(e)for(a=d.length;a--;)(l=d[a])&&!l.touched&&l.remove&&l.remove(!1,c);else!k||f&&f.enabled?m=!1:(a.forEach(function(a,c){a!==d[c].y&&d[c].update&&d[c].update(a,!1,null,!1)}),g.length=0);d.forEach(function(a){a&&(a.touched=!1)});if(!m)return!1;
|
||||
g.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=C(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(a,c,b,f){void 0===c&&(c=!0);var d=this,g=d.points,h=g&&g.length||0,k=d.options,e=d.chart,l=k.dataSorting,q=d.xAxis,m=k.turboThreshold,n=this.xData,u=this.yData,w=d.pointArrayMap;w=w&&w.length;var p=k.keys,E,x=0,C=1,A=null;if(!e.options.chart.allowMutatingData){k.data&&delete d.options.data;d.userOptions.data&&
|
||||
delete d.userOptions.data;var r=V(!0,a)}a=r||a||[];r=a.length;l&&l.enabled&&(a=this.sortData(a));e.options.chart.allowMutatingData&&!1!==f&&r&&h&&!d.cropped&&!d.hasGroupedData&&d.visible&&!d.boosted&&(E=this.updateData(a,b));if(!E){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(a){d[a+"Data"].length=0});if(m&&r>m)if(A=d.getFirstValidPoint(a),L(A))for(b=0;b<r;b++)n[b]=this.autoIncrement(),u[b]=a[b];else if(K(A))if(w)if(A.length===w)for(b=0;b<r;b++)n[b]=this.autoIncrement(),
|
||||
u[b]=a[b];else for(b=0;b<r;b++)f=a[b],n[b]=f[0],u[b]=f.slice(1,w+1);else if(p&&(x=p.indexOf("x"),C=p.indexOf("y"),x=0<=x?x:0,C=0<=C?C:1),1===A.length&&(C=0),x===C)for(b=0;b<r;b++)n[b]=this.autoIncrement(),u[b]=a[b][C];else for(b=0;b<r;b++)f=a[b],n[b]=f[x],u[b]=f[C];else D(12,!1,e);else for(b=0;b<r;b++)"undefined"!==typeof a[b]&&(f={series:d},d.pointClass.prototype.applyOptions.apply(f,[a[b]]),d.updateParallelArrays(f,b));u&&S(u[0])&&D(14,!0,e);d.data=[];d.options.data=d.userOptions.data=a;for(b=h;b--;)g[b]&&
|
||||
g[b].destroy&&g[b].destroy();q&&(q.minRange=q.userMinRange);d.isDirty=e.isDirtyBox=!0;d.isDirtyData=!!g;b=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());c&&e.redraw(b)};b.prototype.sortData=function(a){var c=this,b=c.options.dataSorting.sortKey||"y",f=function(a,c){return w(c)&&a.pointClass.prototype.optionsToObject.call({series:a},c)||{}};a.forEach(function(b,d){a[d]=f(c,b);a[d].index=d},this);a.concat().sort(function(a,c){a=H(b,a);c=H(b,c);return c<a?-1:c>a?1:0}).forEach(function(a,
|
||||
c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var b=c.options,d=b.data;b.dataSorting&&b.dataSorting.enabled||!d||(d.forEach(function(b,g){d[g]=f(c,b);a[g]&&(d[g].x=a[g].x,d[g].index=g)}),c.setData(d,!1))});return a};b.prototype.getProcessedData=function(a){var c=this.xAxis,b=this.options,f=b.cropThreshold,d=a||this.getExtremesFromAll||b.getExtremesFromAll,g=this.isCartesian;a=c&&c.val2lin;b=!(!c||!c.logarithmic);var h=0,k=this.xData,e=this.yData,l=this.requireSorting;var q=!1;
|
||||
var m=k.length;if(c){q=c.getExtremes();var n=q.min;var u=q.max;q=!(!c.categories||c.names.length)}if(g&&this.sorted&&!d&&(!f||m>f||this.forceCrop))if(k[m-1]<n||k[0]>u)k=[],e=[];else if(this.yData&&(k[0]<n||k[m-1]>u)){var w=this.cropData(this.xData,this.yData,n,u);k=w.xData;e=w.yData;h=w.start;w=!0}for(f=k.length||1;--f;)if(c=b?a(k[f])-a(k[f-1]):k[f]-k[f-1],0<c&&("undefined"===typeof p||c<p))var p=c;else 0>c&&l&&!q&&(D(15,!1,this.chart),l=!1);return{xData:k,yData:e,cropped:w,cropStart:h,closestPointRange:p}};
|
||||
b.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange;E(this,"afterProcessData")};b.prototype.cropData=function(a,c,b,f,d){var g=a.length,h,k=0,e=g;d=M(d,this.cropShoulder);for(h=0;h<g;h++)if(a[h]>=b){k=Math.max(0,h-d);break}for(b=
|
||||
h;b<g;b++)if(a[b]>f){e=b+d;break}return{xData:a.slice(k,e),yData:c.slice(k,e),start:k,end:e}};b.prototype.generatePoints=function(){var a=this.options,b=this.processedData||a.data,f=this.processedXData,d=this.processedYData,g=this.pointClass,h=f.length,k=this.cropStart||0,e=this.hasGroupedData,l=a.keys,q=[];a=a.dataGrouping&&a.dataGrouping.groupAll?k:0;var m,n,u=this.data;if(!u&&!e){var w=[];w.length=b.length;u=this.data=w}l&&e&&(this.options.keys=!1);for(n=0;n<h;n++){w=k+n;if(e){var p=(new g).init(this,
|
||||
[f[n]].concat(ea(d[n])));p.dataGroup=this.groupMap[a+n];p.dataGroup.options&&(p.options=p.dataGroup.options,c(p,p.dataGroup.options),delete p.dataLabels)}else(p=u[w])||"undefined"===typeof b[w]||(u[w]=p=(new g).init(this,b[w],f[n]));p&&(p.index=e?a+n:w,q[n]=p)}this.options.keys=l;if(u&&(h!==(m=u.length)||e))for(n=0;n<m;n++)n!==k||e||(n+=h),u[n]&&(u[n].destroyElements(),u[n].plotX=void 0);this.data=u;this.points=q;E(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(a){return{min:u(a),
|
||||
max:C(a)}};b.prototype.getExtremes=function(a,c){var b=this.xAxis,f=this.yAxis,d=this.processedXData||this.xData,g=[],h=this.requireSorting?this.cropShoulder:0;f=f?f.positiveValuesOnly:!1;var k,e=0,l=0,q=0;a=a||this.stackedYData||this.processedYData||[];var m=a.length;if(b){var n=b.getExtremes();e=n.min;l=n.max}for(k=0;k<m;k++){var w=d[k];n=a[k];var p=(L(n)||K(n))&&(n.length||0<n||!f);w=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(d[k+h]||w)>=e&&(d[k-h]||w)<=l;if(p&&
|
||||
w)if(p=n.length)for(;p--;)L(n[p])&&(g[q++]=n[p]);else g[q++]=n}a={activeYData:g,dataMin:u(g),dataMax:C(g)};E(this,"afterGetExtremes",{dataExtremes:a});return a};b.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};b.prototype.getFirstValidPoint=function(a){for(var c=a.length,b=0,f=null;null===f&&b<c;)f=a[b],b++;return f};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,
|
||||
c=a.stacking,b=this.xAxis,d=b.categories,g=this.enabledDataSorting,h=this.yAxis,k=this.points,e=k.length,q=this.pointPlacementToXValue(),m=!!q,n=a.threshold,u=a.startFromThreshold?n:0,p=this.zoneAxis||"y",x,C,A=Number.MAX_VALUE;for(x=0;x<e;x++){var D=k[x],r=D.x,G=void 0,H=void 0,J=D.y,t=D.low,v=c&&h.stacking&&h.stacking.stacks[(this.negStacks&&J<(u?0:n)?"-":"")+this.stackKey];if(h.positiveValuesOnly&&!h.validatePositiveValue(J)||b.positiveValuesOnly&&!b.validatePositiveValue(r))D.isNull=!0;D.plotX=
|
||||
C=f(l(b.translate(r,0,0,0,1,q,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&v&&v[r]){var z=this.getStackIndicator(z,r,this.index);D.isNull||(G=v[r],H=G.points[z.key])}K(H)&&(t=H[0],J=H[1],t===u&&z.key===v[r].base&&(t=M(L(n)&&n,h.min)),h.positiveValuesOnly&&0>=t&&(t=null),D.total=D.stackTotal=G.total,D.percentage=G.total&&D.y/G.total*100,D.stackY=J,this.irregularWidths||G.setOffset(this.pointXOffset||0,this.barW||0));D.yBottom=w(t)?l(h.translate(t,0,1,0,1),-1E5,1E5):null;this.dataModify&&(J=
|
||||
this.dataModify.modifyValue(J,x));D.plotY=void 0;L(J)&&(G=h.translate(J,!1,!0,!1,!0),"undefined"!==typeof G&&(D.plotY=l(G,-1E5,1E5)));D.isInside=this.isPointInside(D);D.clientX=m?f(b.translate(r,0,0,0,1,q)):C;D.negative=D[p]<(a[p+"Threshold"]||n||0);D.category=M(d&&d[D.x],D.x);if(!D.isNull&&!1!==D.visible){"undefined"!==typeof y&&(A=Math.min(A,Math.abs(C-y)));var y=C}D.zone=this.zones.length?D.getZone():void 0;!D.graphic&&this.group&&g&&(D.isNew=!0)}this.closestPointRangePx=A;E(this,"afterTranslate")};
|
||||
b.prototype.getValidPoints=function(a,c,b){var f=this.chart;return(a||this.points||[]).filter(function(a){return c&&!f.isInsidePlot(a.plotX,a.plotY,{inverted:f.inverted})?!1:!1!==a.visible&&(b||!a.isNull)})};b.prototype.getClipBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis,f=V(a.clipBox);c&&c.len!==a.plotSizeX&&(f.width=c.len);b&&b.len!==a.plotSizeY&&(f.height=b.len);return f};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||
|
||||
0)};b.prototype.setClip=function(){var a=this.chart,c=this.group,b=this.markerGroup,f=a.sharedClips;a=a.renderer;var d=this.getClipBox(),g=this.getSharedClipKey(),h=f[g];h?h.animate(d):f[g]=h=a.clipRect(d);c&&c.clip(!1===this.options.clip?void 0:h);b&&b.clip()};b.prototype.animate=function(a){var c=this.chart,b=this.group,f=this.markerGroup,d=c.inverted,g=h(this.options.animation),k=[this.getSharedClipKey(),g.duration,g.easing,g.defer].join(),e=c.sharedClips[k],l=c.sharedClips[k+"m"];if(a&&b)g=this.getClipBox(),
|
||||
e?e.attr("height",g.height):(g.width=0,d&&(g.x=c.plotHeight),e=c.renderer.clipRect(g),c.sharedClips[k]=e,l=c.renderer.clipRect({x:d?(c.plotSizeX||0)+99:-99,y:d?-c.plotLeft:-c.plotTop,width:99,height:d?c.chartWidth:c.chartHeight}),c.sharedClips[k+"m"]=l),b.clip(e),f&&f.clip(l);else if(e&&!e.hasClass("highcharts-animating")){c=this.getClipBox();var q=g.step;f&&f.element.childNodes.length&&(g.step=function(a,c){q&&q.apply(c,arguments);l&&l.element&&l.attr(c.prop,"width"===c.prop?a+99:a)});e.addClass("highcharts-animating").animate(c,
|
||||
g)}};b.prototype.afterAnimate=function(){var a=this;this.setClip();P(this.chart.sharedClips,function(c,b,f){c&&!a.chart.container.querySelector('[clip-path="url(#'.concat(c.id,')"]'))&&(c.destroy(),delete f[b])});this.finishedAnimating=!0;E(this,"afterAnimate")};b.prototype.drawPoints=function(){var a=this.points,c=this.chart,b=this.options.marker,f=this[this.specialGroup]||this.markerGroup,d=this.xAxis,g=M(b.enabled,!d||d.isRadial?!0:null,this.closestPointRangePx>=b.enabledThreshold*b.radius),h,
|
||||
k;if(!1!==b.enabled||this._hasPointMarkers)for(h=0;h<a.length;h++){var e=a[h];var l=(k=e.graphic)?"animate":"attr";var q=e.marker||{};var m=!!e.marker;if((g&&"undefined"===typeof q.enabled||q.enabled)&&!e.isNull&&!1!==e.visible){var n=M(q.symbol,this.symbol,"rect");var u=this.markerAttribs(e,e.selected&&"select");this.enabledDataSorting&&(e.startXPos=d.reversed?-(u.width||0):d.width);var w=!1!==e.isInside;k?k[w?"show":"hide"](w).animate(u):w&&(0<(u.width||0)||e.hasImage)&&(e.graphic=k=c.renderer.symbol(n,
|
||||
u.x,u.y,u.width,u.height,m?q:b).add(f),this.enabledDataSorting&&c.hasRendered&&(k.attr({x:e.startXPos}),l="animate"));k&&"animate"===l&&k[w?"show":"hide"](w).animate(u);if(k&&!c.styledMode)k[l](this.pointAttribs(e,e.selected&&"select"));k&&k.addClass(e.getClassName(),!0)}else k&&(e.graphic=k.destroy())}};b.prototype.markerAttribs=function(a,c){var b=this.options,f=b.marker,d=a.marker||{},g=d.symbol||f.symbol,h=M(d.radius,f&&f.radius);c&&(f=f.states[c],c=d.states&&d.states[c],h=M(c&&c.radius,f&&f.radius,
|
||||
h&&h+(f&&f.radiusPlus||0)));a.hasImage=g&&0===g.indexOf("url");a.hasImage&&(h=0);a=L(h)?{x:b.crisp?Math.floor(a.plotX-h):a.plotX-h,y:a.plotY-h}:{};h&&(a.width=a.height=2*h);return a};b.prototype.pointAttribs=function(a,c){var b=this.options.marker,f=a&&a.options,d=f&&f.marker||{},g=f&&f.color,h=a&&a.color,k=a&&a.zone&&a.zone.color,e=this.color;a=M(d.lineWidth,b.lineWidth);f=1;e=g||k||h||e;g=d.fillColor||b.fillColor||e;h=d.lineColor||b.lineColor||e;c=c||"normal";b=b.states[c]||{};c=d.states&&d.states[c]||
|
||||
{};a=M(c.lineWidth,b.lineWidth,a+M(c.lineWidthPlus,b.lineWidthPlus,0));g=c.fillColor||b.fillColor||g;h=c.lineColor||b.lineColor||h;f=M(c.opacity,b.opacity,f);return{stroke:h,"stroke-width":a,fill:g,opacity:f}};b.prototype.destroy=function(a){var c=this,b=c.chart,f=/AppleWebKit\/533/.test(G.navigator.userAgent),d=c.data||[],g,h,e,l;E(c,"destroy",{keepEventsForUpdate:a});this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(l=c[a])&&l.series&&(k(l.series,c),l.isDirty=l.forceRedraw=!0)});c.legendItem&&
|
||||
c.chart.legend.destroyItem(c);for(h=d.length;h--;)(e=d[h])&&e.destroy&&e.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});p.clearTimeout(c.animationTimeout);P(c,function(a,c){a instanceof r&&!a.survive&&(g=f&&"group"===c?"hide":"destroy",a[g]())});b.hoverSeries===c&&(b.hoverSeries=void 0);k(b.series,c);b.orderSeries();P(c,function(b,f){a&&"hcEvents"===f||delete c[f]})};b.prototype.applyZones=function(){var a=this,c=this.chart,b=c.renderer,f=this.zones,d=this.clips||[],g=this.graph,
|
||||
h=this.area,k=Math.max(c.plotWidth,c.plotHeight),e=this[(this.zoneAxis||"y")+"Axis"],q=c.inverted,m,n,u,w,p,E,x,D,C=!1;if(f.length&&(g||h)&&e&&"undefined"!==typeof e.min){var A=e.reversed;var r=e.horiz;g&&!this.showLine&&g.hide();h&&h.hide();var G=e.getExtremes();f.forEach(function(f,H){m=A?r?c.plotWidth:0:r?0:e.toPixels(G.min)||0;m=l(M(n,m),0,k);n=l(Math.round(e.toPixels(M(f.value,G.max),!0)||0),0,k);C&&(m=n=e.toPixels(G.max));w=Math.abs(m-n);p=Math.min(m,n);E=Math.max(m,n);e.isXAxis?(u={x:q?E:p,
|
||||
y:0,width:w,height:k},r||(u.x=c.plotHeight-u.x)):(u={x:0,y:q?E:p,width:k,height:w},r&&(u.y=c.plotWidth-u.y));q&&b.isVML&&(u=e.isXAxis?{x:0,y:A?p:E,height:u.width,width:c.chartWidth}:{x:u.y-c.plotLeft-c.spacingBox.x,y:0,width:u.height,height:c.chartHeight});d[H]?d[H].animate(u):d[H]=b.clipRect(u);x=a["zone-area-"+H];D=a["zone-graph-"+H];g&&D&&D.clip(d[H]);h&&x&&x.clip(d[H]);C=f.value>G.max;a.resetZones&&0===n&&(n=void 0)});this.clips=d}else a.visible&&(g&&g.show(),h&&h.show())};b.prototype.invertGroups=
|
||||
function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(f.renderer.isVML&&b[c].attr({width:b.yAxis.len,height:b.xAxis.len}),b[c].width=b.yAxis.len,b[c].height=b.xAxis.len,b[c].invert(b.isRadialSeries?!1:a))})}var b=this,f=b.chart;b.xAxis&&(b.eventsToUnbind.push(x(f,"resize",c)),c(),b.invertGroups=c)};b.prototype.plotGroup=function(a,c,b,f,d){var g=this[a],h=!g;b={visibility:b,zIndex:f||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(b.opacity=
|
||||
this.opacity);h&&(this[a]=g=this.chart.renderer.g().add(d));g.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(b)[h?"attr":"animate"](this.getPlotBox());return g};b.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis;a.inverted&&(c=b,b=this.xAxis);return{translateX:c?c.left:
|
||||
a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(a){a||I(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};b.prototype.render=function(){var a=this,c=a.chart,b=a.options,f=h(b.animation),d=a.visible?"inherit":"hidden",g=b.zIndex,k=a.hasRendered,e=c.seriesGroup,l=c.inverted;c=!a.finishedAnimating&&c.renderer.isSVG?f.duration:0;E(this,"render");var q=a.plotGroup("group","series",d,g,e);a.markerGroup=
|
||||
a.plotGroup("markerGroup","markers",d,g,e);!1!==b.clip&&a.setClip();a.animate&&c&&a.animate(!0);q.inverted=M(a.invertible,a.isCartesian)?l:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(l);a.animate&&c&&a.animate();k||(c&&f.defer&&(c+=f.defer),a.animationTimeout=ha(function(){a.afterAnimate()},c||0));a.isDirty=!1;a.hasRendered=
|
||||
!0;E(a,"afterRender")};b.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,b=this.group,f=this.xAxis,d=this.yAxis;b&&(a.inverted&&b.attr({width:a.plotWidth,height:a.plotHeight}),b.animate({translateX:M(f&&f.left,a.plotLeft),translateY:M(d&&d.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};b.prototype.searchPoint=function(a,c){var b=this.xAxis,f=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?b.len-a.chartY+b.pos:a.chartX-b.pos,
|
||||
plotY:d?f.len-a.chartX+f.pos:a.chartY-f.pos},c,a)};b.prototype.buildKDTree=function(a){function c(a,f,d){var g=a&&a.length;if(g){var h=b.kdAxisArray[f%d];a.sort(function(a,c){return a[h]-c[h]});g=Math.floor(g/2);return{point:a[g],left:c(a.slice(0,g),f+1,d),right:c(a.slice(g+1),f+1,d)}}}this.buildingKdTree=!0;var b=this,f=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;ha(function(){b.kdTree=c(b.getValidPoints(null,!b.directTouch),f,f);b.buildingKdTree=!1},b.options.kdNow||a&&"touchstart"===
|
||||
a.type?0:1)};b.prototype.searchKDTree=function(a,c,b){function f(a,c,b,e){var l=c.point,q=d.kdAxisArray[b%e],m=l,n=w(a[g])&&w(l[g])?Math.pow(a[g]-l[g],2):null;var u=w(a[h])&&w(l[h])?Math.pow(a[h]-l[h],2):null;u=(n||0)+(u||0);l.dist=w(u)?Math.sqrt(u):Number.MAX_VALUE;l.distX=w(n)?Math.sqrt(n):Number.MAX_VALUE;q=a[q]-l[q];u=0>q?"left":"right";n=0>q?"right":"left";c[u]&&(u=f(a,c[u],b+1,e),m=u[k]<m[k]?u:l);c[n]&&Math.sqrt(q*q)<m[k]&&(a=f(a,c[n],b+1,e),m=a[k]<m[k]?a:m);return m}var d=this,g=this.kdAxisArray[0],
|
||||
h=this.kdAxisArray[1],k=c?"distX":"dist";c=-1<d.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(b);if(this.kdTree)return f(a,this.kdTree,c,c)};b.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,b=this.xAxis;a=a.pointPlacement;"between"===a&&(a=b.reversed?-.5:.5);return L(a)?a*(c||b.pointRange):0};b.prototype.isPointInside=function(a){var c=this.chart,b=this.xAxis,f=this.yAxis;return"undefined"!==typeof a.plotY&&"undefined"!==
|
||||
typeof a.plotX&&0<=a.plotY&&a.plotY<=(f?f.len:c.plotHeight)&&0<=a.plotX&&a.plotX<=(b?b.len:c.plotWidth)};b.prototype.drawTracker=function(){var a=this,c=a.options,b=c.trackByArea,f=[].concat(b?a.areaPath:a.graphPath),d=a.chart,g=d.pointer,h=d.renderer,k=d.options.tooltip.snap,e=a.tracker,l=function(c){if(d.hoverSeries!==a)a.onMouseOver()},q="rgba(192,192,192,"+(n?.0001:.002)+")";e?e.attr({d:f}):a.graph&&(a.tracker=h.path(f).attr({visibility:a.visible?"inherit":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":
|
||||
"highcharts-tracker-line").add(a.group),d.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:q,fill:b?q:"none","stroke-width":a.graph.strokeWidth()+(b?0:2*k)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(a){g.onTrackerMouseOut(a)}),c.cursor&&!d.styledMode&&a.css({cursor:c.cursor}),m))a.on("touchstart",l)}));E(this,"afterDrawTracker")};b.prototype.addPoint=function(a,
|
||||
c,b,f,d){var g=this.options,h=this.data,k=this.chart,e=this.xAxis;e=e&&e.hasNames&&e.names;var l=g.data,q=this.xData,m;c=M(c,!0);var n={series:this};this.pointClass.prototype.applyOptions.apply(n,[a]);var u=n.x;var w=q.length;if(this.requireSorting&&u<q[w-1])for(m=!0;w&&q[w-1]>u;)w--;this.updateParallelArrays(n,"splice",w,0,0);this.updateParallelArrays(n,w);e&&n.name&&(e[u]=n.name);l.splice(w,0,a);if(m||this.processedData)this.data.splice(w,0,null),this.processData();"point"===g.legendType&&this.generatePoints();
|
||||
b&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(n,"shift"),l.shift()));!1!==d&&E(this,"addPoint",{point:n});this.isDirtyData=this.isDirty=!0;c&&k.redraw(f)};b.prototype.removePoint=function(c,b,f){var d=this,g=d.data,h=g[c],k=d.points,e=d.chart,l=function(){k&&k.length===g.length&&k.splice(c,1);g.splice(c,1);d.options.data.splice(c,1);d.updateParallelArrays(h||{series:d},"splice",c,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&e.redraw()};a(f,e);b=M(b,!0);h?h.firePointEvent("remove",
|
||||
null,l):l()};b.prototype.remove=function(a,c,b,f){function d(){g.destroy(f);h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();M(a,!0)&&h.redraw(c)}var g=this,h=g.chart;!1!==b?E(g,"remove",null,d):d()};b.prototype.update=function(a,b){a=A(a,this.userOptions);E(this,"update",{options:a});var f=this,d=f.chart,g=f.userOptions,h=f.initialType||f.type,k=d.options.plotOptions,e=J[h].prototype,l=f.finishedAnimating&&{animation:!1},q={},m,n=["eventOptions","navigatorSeries","baseSeries"],u=a.type||g.type||d.options.chart.type,
|
||||
w=!(this.hasDerivedData||u&&u!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||a.joinBy||a.mapData||f.hasOptionChanged("dataGrouping")||f.hasOptionChanged("pointStart")||f.hasOptionChanged("pointInterval")||f.hasOptionChanged("pointIntervalUnit")||f.hasOptionChanged("keys"));u=u||h;w&&(n.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels",
|
||||
"clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&n.push("area","graph"),f.parallelArrays.forEach(function(a){n.push(a+"Data")}),a.data&&(a.dataSorting&&c(f.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=V(g,l,{index:"undefined"===typeof g.index?f.index:g.index,pointStart:M(k&&k.series&&k.series.pointStart,g.pointStart,f.xData[0])},!w&&{data:f.options.data},a);w&&a.data&&(a.data=f.options.data);n=["group","markerGroup","dataLabelsGroup",
|
||||
"transformGroup"].concat(n);n.forEach(function(a){n[a]=f[a];delete f[a]});k=!1;if(J[u]){if(k=u!==f.type,f.remove(!1,!1,!1,!0),k)if(Object.setPrototypeOf)Object.setPrototypeOf(f,J[u].prototype);else{l=Object.hasOwnProperty.call(f,"hcEvents")&&f.hcEvents;for(m in e)f[m]=void 0;c(f,J[u].prototype);l?f.hcEvents=l:delete f.hcEvents}}else D(17,!0,d,{missingModuleFor:u});n.forEach(function(a){f[a]=n[a]});f.init(d,a);if(w&&this.points){var p=f.options;!1===p.visible?(q.graphic=1,q.dataLabel=1):f._hasPointLabels||
|
||||
(a=p.marker,e=p.dataLabels,!a||!1!==a.enabled&&(g.marker&&g.marker.symbol)===a.symbol||(q.graphic=1),e&&!1===e.enabled&&(q.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(q).length&&a.destroyElements(q),!1===p.showInLegend&&a.legendItem&&d.legend.destroyItem(a))},this)}f.initialType=h;d.linkSeries();k&&f.linkedSeries.length&&(f.isDirtyData=!0);E(this,"afterUpdate");M(b,!0)&&d.redraw(w?void 0:!1)};b.prototype.setName=function(a){this.name=this.options.name=
|
||||
this.userOptions.name=a;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(a){var c=this.options[a],b=this.chart.options.plotOptions,f=this.userOptions[a];return f?c!==f:c!==M(b&&b[this.type]&&b[this.type][a],b&&b.series&&b.series[a],c)};b.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&E(this,"mouseOver");this.setState("hover");a.hoverSeries=this};b.prototype.onMouseOut=function(){var a=
|
||||
this.options,c=this.chart,b=c.tooltip,f=c.hoverPoint;c.hoverSeries=null;if(f)f.onMouseOut();this&&a.events.mouseOut&&E(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();c.series.forEach(function(a){a.setState("",!0)})};b.prototype.setState=function(a,c){var b=this,f=b.options,d=b.graph,g=f.inactiveOtherPoints,h=f.states,k=M(h[a||"normal"]&&h[a||"normal"].animation,b.chart.options.chart.animation),e=f.lineWidth,l=0,q=f.opacity;a=a||"";if(b.state!==a&&([b.group,b.markerGroup,
|
||||
b.dataLabelsGroup].forEach(function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(h[a]&&!1===h[a].enabled)return;a&&(e=h[a].lineWidth||e+(h[a].lineWidthPlus||0),q=M(h[a].opacity,q));if(d&&!d.dashstyle)for(f={"stroke-width":e},d.animate(f,k);b["zone-graph-"+l];)b["zone-graph-"+l].animate(f,k),l+=1;g||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(a){a&&a.animate({opacity:q},k)})}c&&
|
||||
g&&b.points&&b.setAllPointsToState(a||void 0)};b.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})};b.prototype.setVisible=function(a,c){var b=this,f=b.chart,d=b.legendItem,g=f.options.chart.ignoreHiddenSeries,h=b.visible,k=(b.visible=a=b.options.visible=b.userOptions.visible="undefined"===typeof a?!h:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(b[a])b[a][k]()});if(f.hoverSeries===b||(f.hoverPoint&&
|
||||
f.hoverPoint.series)===b)b.onMouseOut();d&&f.legend.colorizeItem(b,a);b.isDirty=!0;b.options.stacking&&f.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});b.linkedSeries.forEach(function(c){c.setVisible(a,!1)});g&&(f.isDirtyBox=!0);E(b,k);!1!==c&&f.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&
|
||||
(this.checkbox.checked=a);E(this,a?"select":"unselect")};b.prototype.shouldShowTooltip=function(a,c,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,c,b)};b.defaultOptions=F;b.types=z.seriesTypes;b.registerType=z.registerSeriesType;return b}();c(b.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:v.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:t,
|
||||
requireSorting:!0,sorted:!0});z.series=b;"";"";return b});I(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t){var F=b.stop,z=t.addEvent,r=t.createElement,p=t.defined,h=t.merge,a=t.pick;z(y,"afterSetChartSize",function(a){var b=this.options.chart.scrollablePlotArea,d=b&&b.minWidth;b=b&&b.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=
|
||||
d=Math.max(0,d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=d;var n={1:{name:"right",value:d}}}}else b&&(this.scrollablePixelsY=d=Math.max(0,b-this.chartHeight),p(d)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,n={2:{name:"bottom",value:d}}));
|
||||
n&&!a.skipAxes&&this.axes.forEach(function(a){n[a.side]?a.getPlotLinePath=function(){var b=n[a.side].name,d=this[b];this[b]=d-n[a.side].value;var g=e.prototype.getPlotLinePath.apply(this,arguments);this[b]=d;return g}:(a.setAxisSize(),a.setAxisTranslation())})}});z(y,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});y.prototype.setUpScrolling=function(){var a=this,b={WebkitOverflowScrolling:"touch",
|
||||
overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(b.overflowX="auto");this.scrollablePixelsY&&(b.overflowY="auto");this.scrollingParent=r("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=r("div",{className:"highcharts-scrolling"},b,this.scrollingParent);z(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=r("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);
|
||||
this.innerContainer.appendChild(this.container);this.setUpScrolling=null};y.prototype.moveFixedElements=function(){var a=this.container,b=this.fixedRenderer,h=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),e;this.scrollablePixelsX&&
|
||||
!this.inverted?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis");e&&h.push(""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)");h.forEach(function(d){[].forEach.call(a.querySelectorAll(d),function(a){(a.namespaceURI===b.SVG_NS?b.box:b.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};y.prototype.applyFixed=
|
||||
function(){var b=!this.fixedDiv,g=this.options.chart,h=g.scrollablePlotArea,e=v.getRendererType();b?(this.fixedDiv=r("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(g.style&&g.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=g=new e(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),
|
||||
this.scrollableMask=g.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":a(h.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();g=this.chartWidth+(this.scrollablePixelsX||
|
||||
0);e=this.chartHeight+(this.scrollablePixelsY||0);F(this.container);this.container.style.width=g+"px";this.container.style.height=e+"px";this.renderer.boxWrapper.attr({width:g,height:e,viewBox:[0,0,g,e].join(" ")});this.chartBackground.attr({width:g,height:e});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(h.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*h.scrollPositionX),h.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*h.scrollPositionY));
|
||||
e=this.axisOffset;b=this.plotTop-e[0]-1;h=this.plotLeft-e[3]-1;g=this.plotTop+this.plotHeight+e[2]+1;e=this.plotLeft+this.plotWidth+e[1]+1;var p=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),J=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,g],["L",0,g],["Z"],["M",p,b],["L",this.chartWidth,b],["L",this.chartWidth,g],["L",p,g],["Z"]]:this.scrollablePixelsY?[["M",h,0],["L",h,this.plotTop-1],["L",e,this.plotTop-
|
||||
1],["L",e,0],["Z"],["M",h,J],["L",h,this.chartHeight],["L",e,this.chartHeight],["L",e,J],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};z(e,"afterInit",function(){this.chart.scrollableDirty=!0});z(B,"show",function(){this.chart.scrollableDirty=!0});""});I(e,"Core/Axis/Stacking/StackItem.js",[e["Core/FormatUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=b.format,v=e.series,t=y.defined,F=y.destroyObjectProperties,
|
||||
z=y.isNumber,r=y.pick;b=function(){function b(b,a,d,g,e){var h=b.chart.inverted;this.axis=b;this.isNegative=d;this.options=a=a||{};this.x=g;this.cumulative=this.total=null;this.points={};this.hasValidPoints=!1;this.stack=e;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(h?d?"left":"right":"center"),verticalAlign:a.verticalAlign||(h?"middle":d?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(h?d?"right":"left":"center")}b.prototype.destroy=function(){F(this,this.axis)};
|
||||
b.prototype.render=function(b){var a=this.axis.chart,d=this.options,g=d.format;g=g?B(g,this,a):d.formatter.call(this);this.label?this.label.attr({text:g,visibility:"hidden"}):(this.label=a.renderer.label(g,null,null,d.shape,null,null,d.useHTML,!1,"stack-labels"),g={r:d.borderRadius||0,text:g,rotation:d.rotation,padding:r(d.padding,5),visibility:"hidden"},a.styledMode||(g.fill=d.backgroundColor,g.stroke=d.borderColor,g["stroke-width"]=d.borderWidth,this.label.css(d.style)),this.label.attr(g),this.label.added||
|
||||
this.label.add(b));this.label.labelrank=a.plotSizeY};b.prototype.setOffset=function(b,a,d,g,e){var h=this.axis,m=h.chart;g=h.translate(h.stacking.usePercentage?100:g?g:this.total,0,0,0,1);d=h.translate(d?d:0);b=r(e,m.xAxis[0].translate(this.x))+b;h=t(g)&&this.getStackBox(m,this,b,g,a,Math.abs(g-d),h);a=this.label;d=this.isNegative;var p=this.textAlign;a&&h&&(b=a.getBBox(),e=a.padding,g="justify"===r(this.options.overflow,"justify"),p="left"===p?m.inverted?-e:e:"right"===p?b.width:m.inverted&&"center"===
|
||||
p?b.width/2:m.inverted?d?b.width+e:-e:b.width/2,d=m.inverted?b.height/2:d?-e:b.height,this.alignOptions.x=r(this.options.x,0),this.alignOptions.y=r(this.options.y,0),h.x-=p,h.y-=d,a.align(this.alignOptions,null,h),m.isInsidePlot(a.alignAttr.x+p-this.alignOptions.x,a.alignAttr.y+d-this.alignOptions.y)?a.show():(a.hide(),g=!1),g&&v.prototype.justifyDataLabel.call(this.axis,a,this.alignOptions,a.alignAttr,b,h),a.attr({x:a.alignAttr.x,y:a.alignAttr.y}),r(!g&&this.options.crop,!0)&&((m=z(a.x)&&z(a.y)&&
|
||||
m.isInsidePlot(a.x-e+a.width,a.y)&&m.isInsidePlot(a.x+e,a.y))||a.hide()))};b.prototype.getStackBox=function(b,a,d,g,e,n,p){var h=a.axis.reversed,m=b.inverted,C=p.height+p.pos-(m?b.plotLeft:b.plotTop);a=a.isNegative&&!h||!a.isNegative&&h;return{x:m?a?g-p.right:g-n+p.pos-b.plotLeft:d+b.xAxis[0].transB-b.plotLeft,y:m?p.height-d-e:a?C-g-n:C-g,width:m?n:e,height:m?e:n}};return b}();"";return b});I(e,"Core/Axis/Stacking/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],
|
||||
e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],function(b,e,y,B,v){function t(){var a=this,c=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(b){var d=b.xAxis&&b.xAxis.options||{};!b.options.stacking||!0!==b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=[b.type,f(b.options.stack,""),c?d.top:d.left,c?d.height:d.width].join())})}
|
||||
function F(){var a=this.stacking;if(a){var c=a.stacks;A(c,function(a,b){x(a);c[b]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function z(){this.stacking||(this.stacking=new w(this))}function r(a,c,b,f){!J(a)||a.x!==c||f&&a.stackKey!==f?a={x:c,index:0,key:f,stackKey:f}:a.index++;a.key=[b,c,a.index].join();return a}function p(){var a=this,c=a.stackKey,b=a.yAxis.stacking.stacks,f=a.processedXData,d=a[a.options.stacking+"Stacker"],g;d&&[c,"-"+c].forEach(function(c){for(var h=f.length,k,
|
||||
e;h--;)k=f[h],g=a.getStackIndicator(g,k,a.index,c),(e=(k=b[c]&&b[c][k])&&k.points[g.key])&&d.call(a,e,k,h)})}function h(a,c,b){c=c.total?100/c.total:0;a[0]=G(a[0]*c);a[1]=G(a[1]*c);this.stackedYData[b]=a[1]}function a(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):a&&A(a.stacks,function(c,b){"group"===b.slice(-5)&&(A(c,function(a){return a.destroy()}),delete a.stacks[b])})}
|
||||
function d(a){var c=a||this.options.stacking;if(c&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var b=this.processedXData,d=this.processedYData,g=[],h=d.length,k=this.options,e=k.threshold,l=f(k.startFromThreshold&&e,0);k=k.stack;a=a?""+this.type+",".concat(c):this.stackKey;var m="-"+a,n=this.negStacks,w=this.yAxis,p=w.stacking.stacks,x=w.stacking.oldStacks,C,A;w.stacking.stacksTouched+=1;for(A=0;A<h;A++){var r=b[A];var D=d[A];var t=this.getStackIndicator(t,r,this.index);
|
||||
var v=t.key;var z=(C=n&&D<(l?0:e))?m:a;p[z]||(p[z]={});p[z][r]||(x[z]&&x[z][r]?(p[z][r]=x[z][r],p[z][r].total=null):p[z][r]=new B(w,w.options.stackLabels,!!C,r,k));z=p[z][r];null!==D?(z.points[v]=z.points[this.index]=[f(z.cumulative,l)],J(z.cumulative)||(z.base=v),z.touched=w.stacking.stacksTouched,0<t.index&&!1===this.singleStacks&&(z.points[v][0]=z.points[this.index+","+r+",0"][0])):z.points[v]=z.points[this.index]=null;"percent"===c?(C=C?a:m,n&&p[C]&&p[C][r]?(C=p[C][r],z.total=C.total=Math.max(C.total,
|
||||
z.total)+Math.abs(D)||0):z.total=G(z.total+(Math.abs(D)||0))):"group"===c?(u(D)&&(D=D[0]),null!==D&&(z.total=(z.total||0)+1)):z.total=G(z.total+(D||0));z.cumulative="group"===c?(z.total||1)-1:f(z.cumulative,l)+(D||0);null!==D&&(z.points[v].push(z.cumulative),g[A]=z.cumulative,z.hasValidPoints=!0)}"percent"===c&&(w.stacking.usePercentage=!0);"group"!==c&&(this.stackedYData=g);w.stacking.oldStacks={}}}var g=b.getDeferredAnimation,m=y.series.prototype,n=v.addEvent,G=v.correctFloat,J=v.defined,x=v.destroyObjectProperties,
|
||||
C=v.fireEvent,u=v.isArray,l=v.isNumber,A=v.objectEach,f=v.pick,w=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=function(){var a=this.axis,b=a.series,f=a.options.reversedStacks,d=b.length,g;if(!a.isXAxis){this.usePercentage=!1;for(g=d;g--;){var h=b[f?g:d-g-1];h.setStackedPoints();h.setGroupedPoints()}for(g=0;g<d;g++)b[g].modifyStacks();C(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=
|
||||
this.stacks=this.oldStacks;A(a,function(a){A(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,b=a.stacks;a.axis.isXAxis||A(b,function(c){A(c,function(b,f){l(b.touched)&&b.touched<a.stacksTouched?(b.destroy(),delete c[f]):(b.total=null,b.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,b=a.chart,f=b.renderer,d=this.stacks;a=g(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var h=this.stackTotalGroup=this.stackTotalGroup||
|
||||
f.g("stack-labels").attr({zIndex:6,opacity:0}).add();h.translate(b.plotLeft,b.plotTop);A(d,function(a){A(a,function(a){a.render(h)})});h.animate({opacity:1},a)};return a}(),k;(function(b){var c=[];b.compose=function(b,f,g){-1===c.indexOf(b)&&(c.push(b),n(b,"init",z),n(b,"destroy",F));-1===c.indexOf(f)&&(c.push(f),f.prototype.getStacks=t);-1===c.indexOf(g)&&(c.push(g),b=g.prototype,b.getStackIndicator=r,b.modifyStacks=p,b.percentStacker=h,b.setGroupedPoints=a,b.setStackedPoints=d)}})(k||(k={}));return k});
|
||||
I(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(e,r)};return function(e,r){function p(){this.constructor=e}b(e,r);e.prototype=null===r?Object.create(r):(p.prototype=r.prototype,new p)}}(),v=y.defined,
|
||||
t=y.merge;y=function(e){function z(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(z,e);z.prototype.drawGraph=function(){var b=this,e=this.options,h=(this.gappedPath||this.getGraphPath).call(this),a=this.chart.styledMode,d=[["graph","highcharts-graph"]];a||d[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle);d=b.getZonesGraphs(d);d.forEach(function(d,m){var g=d[0],p=b[g],r=p?"animate":"attr";p?(p.endX=b.preventGraphAnimation?null:h.xMap,
|
||||
p.animate({d:h})):h.length&&(b[g]=p=b.chart.renderer.path(h).addClass(d[1]).attr({zIndex:1}).add(b.group));p&&!a&&(g={stroke:d[2],"stroke-width":e.lineWidth,fill:b.fillGraph&&b.color||"none"},d[3]?g.dashstyle=d[3]:"square"!==e.linecap&&(g["stroke-linecap"]=g["stroke-linejoin"]="round"),p[r](g).shadow(2>m&&e.shadow));p&&(p.startX=h.xMap,p.isArea=h.isArea)})};z.prototype.getGraphPath=function(b,e,h){var a=this,d=a.options,g=[],m=[],n,p=d.step;b=b||a.points;var r=b.reversed;r&&b.reverse();(p={right:1,
|
||||
center:2}[p]||p&&3)&&r&&(p=4-p);b=this.getValidPoints(b,!1,!(d.connectNulls&&!e&&!h));b.forEach(function(x,C){var u=x.plotX,l=x.plotY,A=b[C-1];(x.leftCliff||A&&A.rightCliff)&&!h&&(n=!0);x.isNull&&!v(e)&&0<C?n=!d.connectNulls:x.isNull&&!e?n=!0:(0===C||n?C=[["M",x.plotX,x.plotY]]:a.getPointSpline?C=[a.getPointSpline(b,x,C)]:p?(C=1===p?[["L",A.plotX,l]]:2===p?[["L",(A.plotX+u)/2,A.plotY],["L",(A.plotX+u)/2,l]]:[["L",u,A.plotY]],C.push(["L",u,l])):C=[["L",u,l]],m.push(x.x),p&&(m.push(x.x),2===p&&m.push(x.x)),
|
||||
g.push.apply(g,C),n=!1)});g.xMap=m;return a.graphPath=g};z.prototype.getZonesGraphs=function(b){this.zones.forEach(function(e,h){h=["zone-graph-"+h,"highcharts-graph highcharts-zone-graph-"+h+" "+(e.className||"")];this.chart.styledMode||h.push(e.color||this.color,e.dashStyle||this.options.dashStyle);b.push(h)},this);return b};z.defaultOptions=t(b.defaultOptions,{});return z}(b);e.registerSeriesType("line",y);"";return y});I(e,"Series/Area/AreaSeries.js",[e["Core/Color/Color.js"],e["Core/Legend/LegendSymbol.js"],
|
||||
e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function g(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),t=b.parse,F=y.seriesTypes.line;b=B.extend;var z=B.merge,r=B.objectEach,
|
||||
p=B.pick;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(a,b);a.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,g=this.areaPath,h=this.options,e=[["area","highcharts-area",this.color,h.fillColor]];this.zones.forEach(function(b,d){e.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+b.className,b.color||a.color,b.fillColor||h.fillColor])});e.forEach(function(b){var d=
|
||||
b[0],e={},m=a[d],n=m?"animate":"attr";m?(m.endX=a.preventGraphAnimation?null:g.xMap,m.animate({d:g})):(e.zIndex=0,m=a[d]=a.chart.renderer.path(g).addClass(b[1]).add(a.group),m.isArea=!0);a.chart.styledMode||(e.fill=p(b[3],t(b[2]).setOpacity(p(h.fillOpacity,.75)).get()));m[n](e);m.startX=g.xMap;m.shiftUnit=h.step?2:1})};a.prototype.getGraphPath=function(a){var b=F.prototype.getGraphPath,d=this.options,h=d.stacking,e=this.yAxis,r=[],x=[],C=this.index,u=e.stacking.stacks[this.stackKey],l=d.threshold,
|
||||
A=Math.round(e.getThreshold(d.threshold));d=p(d.connectNulls,"percent"===h);var f=function(b,f,d){var g=a[b];b=h&&u[g.x].points[C];var k=g[d+"Null"]||0;d=g[d+"Cliff"]||0;g=!0;if(d||k){var q=(k?b[0]:b[1])+d;var m=b[0]+d;g=!!k}else!h&&a[f]&&a[f].isNull&&(q=m=l);"undefined"!==typeof q&&(x.push({plotX:c,plotY:null===q?A:e.getThreshold(q),isNull:g,isCliff:!0}),r.push({plotX:c,plotY:null===m?A:e.getThreshold(m),doCurve:!1}))};a=a||this.points;h&&(a=this.getStackPoints(a));for(var w=0,k=a.length;w<k;++w){h||
|
||||
(a[w].leftCliff=a[w].rightCliff=a[w].leftNull=a[w].rightNull=void 0);var D=a[w].isNull;var c=p(a[w].rectPlotX,a[w].plotX);var q=h?p(a[w].yBottom,A):A;if(!D||d)d||f(w,w-1,"left"),D&&!h&&d||(x.push(a[w]),r.push({x:w,plotX:c,plotY:q})),d||f(w,w+1,"right")}f=b.call(this,x,!0,!0);r.reversed=!0;D=b.call(this,r,!0,!0);(q=D[0])&&"M"===q[0]&&(D[0]=["L",q[1],q[2]]);D=f.concat(D);D.length&&D.push(["Z"]);b=b.call(this,x,!1,d);D.xMap=f.xMap;this.areaPath=D;return b};a.prototype.getStackPoints=function(a){var b=
|
||||
this,d=[],h=[],e=this.xAxis,t=this.yAxis,x=t.stacking.stacks[this.stackKey],C={},u=t.series,l=u.length,A=t.options.reversedStacks?1:-1,f=u.indexOf(b);a=a||this.points;if(this.options.stacking){for(var w=0;w<a.length;w++)a[w].leftNull=a[w].rightNull=void 0,C[a[w].x]=a[w];r(x,function(a,c){null!==a.total&&h.push(c)});h.sort(function(a,c){return a-c});var k=u.map(function(a){return a.visible});h.forEach(function(a,c){var g=0,m,n;if(C[a]&&!C[a].isNull)d.push(C[a]),[-1,1].forEach(function(d){var g=1===
|
||||
d?"rightNull":"leftNull",e=x[h[c+d]],q=0;if(e)for(var w=f;0<=w&&w<l;){var p=u[w].index;m=e.points[p];m||(p===b.index?C[a][g]=!0:k[w]&&(n=x[a].points[p])&&(q-=n[1]-n[0]));w+=A}C[a][1===d?"rightCliff":"leftCliff"]=q});else{for(var w=f;0<=w&&w<l;){if(m=x[a].points[u[w].index]){g=m[1];break}w+=A}g=p(g,0);g=t.translate(g,0,1,0,1);d.push({isNull:!0,plotX:e.translate(a,0,0,0,1),x:a,plotY:g,yBottom:g})}})}return d};a.defaultOptions=z(F.defaultOptions,{threshold:0});return a}(F);b(B.prototype,{singleStacks:!1,
|
||||
drawLegendSymbol:e.drawRectangle});y.registerSeriesType("area",B);"";return B});I(e,"Series/Spline/SplineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var y=this&&this.__extends||function(){var b=function(e,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(e,r)};return function(e,r){function p(){this.constructor=e}b(e,r);e.prototype=null===r?Object.create(r):
|
||||
(p.prototype=r.prototype,new p)}}(),B=b.seriesTypes.line,v=e.merge,t=e.pick;e=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}y(e,b);e.prototype.getPointSpline=function(b,e,h){var a=e.plotX||0,d=e.plotY||0,g=b[h-1];h=b[h+1];if(g&&!g.isNull&&!1!==g.doCurve&&!e.isCliff&&h&&!h.isNull&&!1!==h.doCurve&&!e.isCliff){b=g.plotY||0;var m=h.plotX||0;h=h.plotY||0;var n=0;var p=(1.5*a+(g.plotX||0))/2.5;var r=(1.5*d+b)/2.5;m=(1.5*a+
|
||||
m)/2.5;var x=(1.5*d+h)/2.5;m!==p&&(n=(x-r)*(m-a)/(m-p)+d-x);r+=n;x+=n;r>b&&r>d?(r=Math.max(b,d),x=2*d-r):r<b&&r<d&&(r=Math.min(b,d),x=2*d-r);x>h&&x>d?(x=Math.max(h,d),r=2*d-x):x<h&&x<d&&(x=Math.min(h,d),r=2*d-x);e.rightContX=m;e.rightContY=x}e=["C",t(g.rightContX,g.plotX,0),t(g.rightContY,g.plotY,0),t(p,a,0),t(r,d,0),a,d];g.rightContX=g.rightContY=void 0;return e};e.defaultOptions=v(B.defaultOptions);return e}(B);b.registerSeriesType("spline",e);"";return e});I(e,"Series/AreaSpline/AreaSplineSeries.js",
|
||||
[e["Series/Spline/SplineSeries.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(h,a)};return function(h,a){function d(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),
|
||||
t=y.seriesTypes,F=t.area;t=t.area.prototype;var z=B.extend,r=B.merge;B=function(e){function h(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}v(h,e);h.defaultOptions=r(b.defaultOptions,F.defaultOptions);return h}(b);z(B.prototype,{getGraphPath:t.getGraphPath,getStackPoints:t.getStackPoints,drawGraph:t.drawGraph,drawLegendSymbol:e.drawRectangle});y.registerSeriesType("areaspline",B);"";return B});I(e,"Series/Column/ColumnSeries.js",[e["Core/Animation/AnimationUtilities.js"],
|
||||
e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F){var z=this&&this.__extends||function(){var a=function(b,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return a(b,f)};return function(b,f){function d(){this.constructor=b}a(b,f);b.prototype=null===f?Object.create(f):
|
||||
(d.prototype=f.prototype,new d)}}(),r=b.animObject,p=e.parse,h=y.hasTouch;b=y.noop;var a=F.clamp,d=F.css,g=F.defined,m=F.extend,n=F.fireEvent,G=F.isArray,J=F.isNumber,x=F.merge,C=F.pick,u=F.objectEach;F=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}z(e,b);e.prototype.animate=function(b){var f=this,d=this.yAxis,g=f.options,c=this.chart.inverted,h={},e=c?"translateX":"translateY";if(b)h.scaleY=
|
||||
.001,b=a(d.toPixels(g.threshold),d.pos,d.pos+d.len),c?h.translateX=b-d.len:h.translateY=b,f.clipBox&&f.setClip(),f.group.attr(h);else{var l=Number(f.group.attr(e));f.group.animate({scaleY:1},m(r(f.options.animation),{step:function(a,c){f.group&&(h[e]=l+c.pos*(d.pos-l),f.group.attr(h))}}))}};e.prototype.init=function(a,d){b.prototype.init.apply(this,arguments);var f=this;a=f.chart;a.hasRendered&&a.series.forEach(function(a){a.type===f.type&&(a.isDirty=!0)})};e.prototype.getColumnMetrics=function(){var a=
|
||||
this,b=a.options,d=a.xAxis,g=a.yAxis,c=d.options.reversedStacks;c=d.reversed&&!c||!d.reversed&&c;var h={},e,l=0;!1===b.grouping?l=1:a.chart.series.forEach(function(c){var b=c.yAxis,f=c.options;if(c.type===a.type&&(c.visible||!a.chart.options.chart.ignoreHiddenSeries)&&g.len===b.len&&g.pos===b.pos){if(f.stacking&&"group"!==f.stacking){e=c.stackKey;"undefined"===typeof h[e]&&(h[e]=l++);var d=h[e]}else!1!==f.grouping&&(d=l++);c.columnIndex=d}});var m=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||
|
||||
b.pointRange||d.closestPointRange||d.tickInterval||1),d.len),n=m*b.groupPadding,u=(m-2*n)/(l||1);b=Math.min(b.maxPointWidth||d.len,C(b.pointWidth,u*(1-2*b.pointPadding)));a.columnMetrics={width:b,offset:(u-b)/2+(n+((a.columnIndex||0)+(c?1:0))*u-m/2)*(c?-1:1),paddedWidth:u,columnCount:l};return a.columnMetrics};e.prototype.crispCol=function(a,b,d,g){var c=this.chart,f=this.borderWidth,h=-(f%2?.5:0);f=f%2?.5:1;c.inverted&&c.renderer.isVML&&(f+=1);this.options.crisp&&(d=Math.round(a+d)+h,a=Math.round(a)+
|
||||
h,d-=a);g=Math.round(b+g)+f;h=.5>=Math.abs(b)&&.5<g;b=Math.round(b)+f;g-=b;h&&g&&(--b,g+=1);return{x:a,y:b,width:d,height:g}};e.prototype.adjustForMissingColumns=function(a,b,d,g){var c=this,f=this.options.stacking;if(!d.isNull&&1<g.columnCount){var h=this.yAxis.options.reversedStacks,e=0,k=h?0:-g.columnCount;u(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof d.x&&(a=a[d.x.toString()])){var b=a.points[c.index],g=a.total;f?(b&&(e=k),a.hasValidPoints&&(h?k++:k--)):G(b)&&
|
||||
(e=b[1],k=g||0)}});a=(d.plotX||0)+((k-1)*g.paddedWidth+b)/2-b-e*g.paddedWidth}return a};e.prototype.translate=function(){var b=this,d=b.chart,h=b.options,e=b.dense=2>b.closestPointRange*b.xAxis.transA;e=b.borderWidth=C(h.borderWidth,e?0:1);var c=b.xAxis,l=b.yAxis,m=h.threshold,n=b.translatedThreshold=l.getThreshold(m),u=C(h.minPointLength,5),p=b.getColumnMetrics(),x=p.width,A=b.pointXOffset=p.offset,r=b.dataMin,G=b.dataMax,t=b.barW=Math.max(x,1+2*e);d.inverted&&(n-=.5);h.pointPadding&&(t=Math.ceil(t));
|
||||
v.prototype.translate.apply(b);b.points.forEach(function(f){var e=C(f.yBottom,n),k=999+Math.abs(e),q=f.plotX||0;k=a(f.plotY,-k,l.len+k);var w=Math.min(k,e),E=Math.max(k,e)-w,D=x,H=q+A,v=t;u&&Math.abs(E)<u&&(E=u,q=!l.reversed&&!f.negative||l.reversed&&f.negative,J(m)&&J(G)&&f.y===m&&G<=m&&(l.min||0)<m&&(r!==G||(l.max||0)<=m)&&(q=!q),w=Math.abs(w-n)>u?e-u:n-(q?u:0));g(f.options.pointWidth)&&(D=v=Math.ceil(f.options.pointWidth),H-=Math.round((D-x)/2));h.centerInCategory&&(H=b.adjustForMissingColumns(H,
|
||||
D,f,p));f.barX=H;f.pointWidth=D;f.tooltipPos=d.inverted?[a(l.len+l.pos-d.plotLeft-k,l.pos-d.plotLeft,l.len+l.pos-d.plotLeft),c.len+c.pos-d.plotTop-H-v/2,E]:[c.left-d.plotLeft+H+v/2,a(k+l.pos-d.plotTop,l.pos-d.plotTop,l.len+l.pos-d.plotTop),E];f.shapeType=b.pointClass.prototype.shapeType||"rect";f.shapeArgs=b.crispCol.apply(b,f.isNull?[H,n,v,0]:[H,w,v,E])})};e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(a,
|
||||
b){var f=this.options,d=this.pointAttrToOptions||{},c=d.stroke||"borderColor",g=d["stroke-width"]||"borderWidth",h=a&&a.color||this.color,e=a&&a[c]||f[c]||h;d=a&&a.options.dashStyle||f.dashStyle;var l=a&&a[g]||f[g]||this[g]||0,m=C(a&&a.opacity,f.opacity,1);if(a&&this.zones.length){var n=a.getZone();h=a.options.color||n&&(n.color||a.nonZonedColor)||this.color;n&&(e=n.borderColor||e,d=n.dashStyle||d,l=n.borderWidth||l)}b&&a&&(a=x(f.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,
|
||||
h=a.color||"undefined"!==typeof b&&p(h).brighten(a.brightness).get()||h,e=a[c]||e,l=a[g]||l,d=a.dashStyle||d,m=C(a.opacity,m));c={fill:h,stroke:e,"stroke-width":l,opacity:m};d&&(c.dashstyle=d);return c};e.prototype.drawPoints=function(){var a=this,b=this.chart,d=a.options,g=b.renderer,c=d.animationLimit||250,h;a.points.forEach(function(f){var e=f.graphic,k=!!e,l=e&&b.pointCount<c?"animate":"attr";if(J(f.plotY)&&null!==f.y){h=f.shapeArgs;e&&f.hasNewShapeType()&&(e=e.destroy());a.enabledDataSorting&&
|
||||
(f.startXPos=a.xAxis.reversed?-(h?h.width||0:0):a.xAxis.width);e||(f.graphic=e=g[f.shapeType](h).add(f.group||a.group))&&a.enabledDataSorting&&b.hasRendered&&b.pointCount<c&&(e.attr({x:f.startXPos}),k=!0,l="animate");if(e&&k)e[l](x(h));if(d.borderRadius)e[l]({r:d.borderRadius});b.styledMode||e[l](a.pointAttribs(f,f.selected&&"select")).shadow(!1!==f.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);e&&(e.addClass(f.getClassName(),!0),e.attr({visibility:f.visible?"inherit":"hidden"}))}else e&&
|
||||
(f.graphic=e.destroy())})};e.prototype.drawTracker=function(){var a=this,b=a.chart,g=b.pointer,e=function(a){var c=g.getPointFromEvent(a);"undefined"!==typeof c&&(g.isDirectTouch=!0,c.onMouseOver(a))},c;a.points.forEach(function(a){c=G(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);c.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(c){if(a[c]){a[c].addClass("highcharts-tracker").on("mouseover",
|
||||
e).on("mouseout",function(a){g.onTrackerMouseOut(a)});if(h)a[c].on("touchstart",e);!b.styledMode&&a.options.cursor&&a[c].css(d).css({cursor:a.options.cursor})}}),a._hasTracking=!0);n(this,"afterDrawTracker")};e.prototype.remove=function(){var a=this,b=a.chart;b.hasRendered&&b.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});v.prototype.remove.apply(a,arguments)};e.defaultOptions=x(v.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,
|
||||
cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return e}(v);m(F.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:B.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});t.registerSeriesType("column",F);"";"";return F});I(e,"Core/Series/DataLabel.js",
|
||||
[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(b,e,y){var B=b.getDeferredAnimation,v=e.format,t=y.defined,F=y.extend,z=y.fireEvent,r=y.isArray,p=y.isString,h=y.merge,a=y.objectEach,d=y.pick,g=y.splat,m;(function(b){function e(a,b,g,h,c){var f=this,e=this.chart,k=this.isCartesian&&e.inverted,l=this.enabledDataSorting,m=d(a.dlBox&&a.dlBox.centerX,a.plotX),n=a.plotY,u=g.rotation,p=g.align,w=t(m)&&t(n)&&e.isInsidePlot(m,Math.round(n),{inverted:k,
|
||||
paneCoordinates:!0,series:f}),x=function(d){l&&f.xAxis&&!C&&f.setDataLabelStartPos(a,b,c,w,d)},C="justify"===d(g.overflow,l?"none":"justify"),A=this.visible&&!1!==a.visible&&(a.series.forceDL||l&&!C||w||d(g.inside,!!this.options.stacking)&&h&&e.isInsidePlot(m,k?h.x+1:h.y+h.height-1,{inverted:k,paneCoordinates:!0,series:f}));if(A&&t(m)&&t(n)){u&&b.attr({align:p});p=b.getBBox(!0);var r=[0,0];var D=e.renderer.fontMetrics(e.styledMode?void 0:g.style.fontSize,b).b;h=F({x:k?this.yAxis.len-n:m,y:Math.round(k?
|
||||
this.xAxis.len-m:n),width:0,height:0},h);F(g,{width:p.width,height:p.height});u?(C=!1,r=e.renderer.rotCorr(D,u),m={x:h.x+(g.x||0)+h.width/2+r.x,y:h.y+(g.y||0)+{top:0,middle:.5,bottom:1}[g.verticalAlign]*h.height},r=[p.x-Number(b.attr("x")),p.y-Number(b.attr("y"))],x(m),b[c?"attr":"animate"](m)):(x(h),b.align(g,void 0,h),m=b.alignAttr);C&&0<=h.height?this.justifyDataLabel(b,g,m,p,h,c):d(g.crop,!0)&&(h=m.x,x=m.y,h+=r[0],x+=r[1],A=e.isInsidePlot(h,x,{paneCoordinates:!0,series:f})&&e.isInsidePlot(h+p.width,
|
||||
x+p.height,{paneCoordinates:!0,series:f}));if(g.shape&&!u)b[c?"attr":"animate"]({anchorX:k?e.plotWidth-a.plotY:a.plotX,anchorY:k?e.plotHeight-a.plotX:a.plotY})}c&&l&&(b.placed=!1);A||l&&!C?b.show():(b.hide(),b.placed=!1)}function m(a,b){var f=b.filter;return f?(b=f.operator,a=a[f.property],f=f.value,">"===b&&a>f||"<"===b&&a<f||">="===b&&a>=f||"<="===b&&a<=f||"=="===b&&a==f||"==="===b&&a===f?!0:!1):!0}function n(){var b=this,h=b.chart,e=b.options,l=b.points,c=b.hasRendered||0,q=h.renderer,n=h.options.chart,
|
||||
x=n.backgroundColor;n=n.plotBackgroundColor;var C=q.getContrast(p(n)&&n||p(x)&&x||"#000000"),A=e.dataLabels,G;x=A.animation;x=A.defer?B(h,x,b):{defer:0,duration:0};A=u(u(h.options.plotOptions&&h.options.plotOptions.series&&h.options.plotOptions.series.dataLabels,h.options.plotOptions&&h.options.plotOptions[b.type]&&h.options.plotOptions[b.type].dataLabels),A);z(this,"drawDataLabels");if(r(A)||A.enabled||b._hasPointLabels){var J=b.plotGroup("dataLabelsGroup","data-labels",c?"inherit":"hidden",A.zIndex||
|
||||
6);J.attr({opacity:+c});!c&&(c=b.dataLabelsGroup)&&(b.visible&&J.show(),c[e.animation?"animate":"attr"]({opacity:1},x));l.forEach(function(c){G=g(u(A,c.dlOptions||c.options&&c.options.dataLabels));G.forEach(function(f,g){var k=f.enabled&&(!c.isNull||c.dataLabelOnNull)&&m(c,f),l=c.connectors?c.connectors[g]:c.connector,n=c.dataLabels?c.dataLabels[g]:c.dataLabel,u=!n,p=d(f.distance,c.labelDistance);if(k){var w=c.getLabelConfig();var x=d(f[c.formatPrefix+"Format"],f.format);w=t(x)?v(x,w,h):(f[c.formatPrefix+
|
||||
"Formatter"]||f.formatter).call(w,f);x=f.style;var A=f.rotation;h.styledMode||(x.color=d(f.color,x.color,b.color,"#000000"),"contrast"===x.color?(c.contrastColor=q.getContrast(c.color||b.color),x.color=!t(p)&&f.inside||0>p||e.stacking?c.contrastColor:C):delete c.contrastColor,e.cursor&&(x.cursor=e.cursor));var r={r:f.borderRadius||0,rotation:A,padding:f.padding,zIndex:1};h.styledMode||(r.fill=f.backgroundColor,r.stroke=f.borderColor,r["stroke-width"]=f.borderWidth);a(r,function(a,c){"undefined"===
|
||||
typeof a&&delete r[c]})}!n||k&&t(w)&&!!n.div===!!f.useHTML&&(n.rotation&&f.rotation||n.rotation===f.rotation)||(u=!0,c.dataLabel=n=c.dataLabel&&c.dataLabel.destroy(),c.dataLabels&&(1===c.dataLabels.length?delete c.dataLabels:delete c.dataLabels[g]),g||delete c.dataLabel,l&&(c.connector=c.connector.destroy(),c.connectors&&(1===c.connectors.length?delete c.connectors:delete c.connectors[g])));k&&t(w)?(n?r.text=w:(c.dataLabels=c.dataLabels||[],n=c.dataLabels[g]=A?q.text(w,0,0,f.useHTML).addClass("highcharts-data-label"):
|
||||
q.label(w,0,0,f.shape,null,null,f.useHTML,null,"data-label"),g||(c.dataLabel=n),n.addClass(" highcharts-data-label-color-"+c.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":""))),n.options=f,n.attr(r),h.styledMode||n.css(x).shadow(f.shadow),f.textPath&&!f.useHTML&&(n.setTextPath(c.getDataLabelPath&&c.getDataLabelPath(n)||c.graphic,f.textPath),c.dataLabelPath&&!f.textPath.enabled&&(c.dataLabelPath=c.dataLabelPath.destroy())),n.added||n.add(J),b.alignDataLabel(c,n,f,null,u)):n&&n.hide()})})}z(this,
|
||||
"afterDrawDataLabels")}function C(a,b,d,g,c,h){var f=this.chart,e=b.align,k=b.verticalAlign,l=a.box?0:a.padding||0,m=b.x;m=void 0===m?0:m;var q=b.y;q=void 0===q?0:q;var n=(d.x||0)+l;if(0>n){"right"===e&&0<=m?(b.align="left",b.inside=!0):m-=n;var u=!0}n=(d.x||0)+g.width-l;n>f.plotWidth&&("left"===e&&0>=m?(b.align="right",b.inside=!0):m+=f.plotWidth-n,u=!0);n=d.y+l;0>n&&("bottom"===k&&0<=q?(b.verticalAlign="top",b.inside=!0):q-=n,u=!0);n=(d.y||0)+g.height-l;n>f.plotHeight&&("top"===k&&0>=q?(b.verticalAlign=
|
||||
"bottom",b.inside=!0):q+=f.plotHeight-n,u=!0);u&&(b.x=m,b.y=q,a.placed=!h,a.align(b,void 0,c));return u}function u(a,b){var f=[],d;if(r(a)&&!r(b))f=a.map(function(a){return h(a,b)});else if(r(b)&&!r(a))f=b.map(function(c){return h(a,c)});else if(r(a)||r(b))for(d=Math.max(a.length,b.length);d--;)f[d]=h(a[d],b[d]);else f=h(a,b);return f}function l(a,b,d,g,c){var f=this.chart,h=f.inverted,e=this.xAxis,k=e.reversed,l=h?b.height/2:b.width/2;a=(a=a.pointWidth)?a/2:0;b.startXPos=h?c.x:k?-l-a:e.width-l+a;
|
||||
b.startYPos=h?k?this.yAxis.height-l+a:-l-a:c.y;g?"hidden"===b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0},void 0,b.hide);f.hasRendered&&(d&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)}var A=[];b.compose=function(a){if(-1===A.indexOf(a)){var b=a.prototype;A.push(a);b.alignDataLabel=e;b.drawDataLabels=n;b.justifyDataLabel=C;b.setDataLabelStartPos=l}}})(m||(m={}));"";return m});I(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],
|
||||
e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=e.series,v=y.merge,t=y.pick,F;(function(e){function r(b,a,d,g,e){var h=this.chart.inverted,m=b.series,p=(m.xAxis?m.xAxis.len:this.chart.plotSizeX)||0;m=(m.yAxis?m.yAxis.len:this.chart.plotSizeY)||0;var x=b.dlBox||b.shapeArgs,C=t(b.below,b.plotY>t(this.translatedThreshold,m)),u=t(d.inside,!!this.options.stacking);x&&(g=v(x),0>g.y&&(g.height+=g.y,g.y=0),x=g.y+g.height-m,0<x&&x<g.height&&(g.height-=x),h&&(g={x:m-g.y-g.height,
|
||||
y:p-g.x-g.width,width:g.height,height:g.width}),u||(h?(g.x+=C?0:g.width,g.width=0):(g.y+=C?g.height:0,g.height=0)));d.align=t(d.align,!h||u?"center":C?"right":"left");d.verticalAlign=t(d.verticalAlign,h||u?"middle":C?"top":"bottom");B.prototype.alignDataLabel.call(this,b,a,d,g,e);d.inside&&b.contrastColor&&a.css({color:b.contrastColor})}var p=[];e.compose=function(h){b.compose(B);-1===p.indexOf(h)&&(p.push(h),h.prototype.alignDataLabel=r)}})(F||(F={}));return F});I(e,"Series/Bar/BarSeries.js",[e["Series/Column/ColumnSeries.js"],
|
||||
e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(e,r)};return function(e,r){function p(){this.constructor=e}b(e,r);e.prototype=null===r?Object.create(r):(p.prototype=r.prototype,new p)}}(),v=y.extend,t=y.merge;y=function(e){function v(){var b=null!==e&&e.apply(this,
|
||||
arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(v,e);v.defaultOptions=t(b.defaultOptions,{});return v}(b);v(y.prototype,{inverted:!0});e.registerSeriesType("bar",y);"";return y});I(e,"Series/Scatter/ScatterSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var y=this&&this.__extends||function(){var b=function(e,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
|
||||
(a[d]=b[d])};return b(e,h)};return function(e,h){function a(){this.constructor=e}b(e,h);e.prototype=null===h?Object.create(h):(a.prototype=h.prototype,new a)}}(),B=b.seriesTypes,v=B.column,t=B.line;B=e.addEvent;var F=e.extend,z=e.merge;e=function(b){function e(){var h=null!==b&&b.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}y(e,b);e.prototype.applyJitter=function(){var b=this,a=this.options.jitter,d=this.points.length;a&&this.points.forEach(function(g,h){["x",
|
||||
"y"].forEach(function(e,m){var n="plot"+e.toUpperCase();if(a[e]&&!g.isNull){var p=b[e+"Axis"];var C=a[e]*p.transA;if(p&&!p.isLog){var u=Math.max(0,g[n]-C);p=Math.min(p.len,g[n]+C);m=1E4*Math.sin(h+m*d);g[n]=u+(p-u)*(m-Math.floor(m));"x"===e&&(g.clientX=g.plotX)}}})})};e.prototype.drawGraph=function(){this.options.lineWidth?b.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};e.defaultOptions=z(t.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},
|
||||
tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return e}(t);F(e.prototype,{drawTracker:v.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});B(e,"afterTranslate",function(){this.applyJitter()});b.registerSeriesType("scatter",e);"";return e});I(e,"Series/CenteredUtilities.js",
|
||||
[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(b,e,y){var B=b.deg2rad,v=y.fireEvent,t=y.isNumber,F=y.pick,z=y.relativeLength,r;(function(b){b.getCenter=function(){var b=this.options,a=this.chart,d=2*(b.slicedOffset||0),g=a.plotWidth-2*d,m=a.plotHeight-2*d,n=b.center,p=Math.min(g,m),r=b.thickness,x=b.size,C=b.innerSize||0;"string"===typeof x&&(x=parseFloat(x));"string"===typeof C&&(C=parseFloat(C));b=[F(n[0],"50%"),F(n[1],"50%"),F(x&&0>x?void 0:b.size,"100%"),F(C&&
|
||||
0>C?void 0:b.innerSize||0,"0%")];!a.angular||this instanceof e||(b[3]=0);for(n=0;4>n;++n)x=b[n],a=2>n||2===n&&/%$/.test(x),b[n]=z(x,[g,m,p,b[2]][n])+(a?d:0);b[3]>b[2]&&(b[3]=b[2]);t(r)&&2*r<b[2]&&0<r&&(b[3]=b[2]-2*r);v(this,"afterGetCenter",{positions:b});return b};b.getStartAndEndRadians=function(b,a){b=t(b)?b:0;a=t(a)&&a>b&&360>a-b?a:b+360;return{start:B*(b+-90),end:B*(a+-90)}}})(r||(r={}));"";return r});I(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],
|
||||
e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function g(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),v=b.setAnimation,t=y.addEvent,F=y.defined;b=y.extend;var z=y.isNumber,r=y.pick,p=y.relativeLength;e=function(b){function a(){var a=
|
||||
null!==b&&b.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}B(a,b);a.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,e=this.connectorShapes,h=b.connectorShape;e[h]&&(h=e[h]);return h.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};a.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};a.prototype.haloPath=function(a){var b=
|
||||
this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:b.r-1,start:b.start,end:b.end})};a.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=r(this.name,"Slice");var g=function(b){a.slice("select"===b.type)};t(this,"select",g);t(this,"unselect",g);return this};a.prototype.isValid=function(){return z(this.y)&&0<=this.y};a.prototype.setVisible=function(a,b){var d=this,g=this.series,e=g.chart,h=g.options.ignoreHiddenPoint;
|
||||
b=r(b,h);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(d[b])d[b][a?"show":"hide"](a)}),this.legendItem&&e.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),h&&(g.isDirty=!0),b&&e.redraw())};a.prototype.slice=function(a,b,e){var d=this.series;v(e,d.chart);r(b,!0);this.sliced=this.options.sliced=F(a)?a:!this.sliced;
|
||||
d.options.data[d.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return a}(e);b(e.prototype,{connectorShapes:{fixedOffset:function(b,a,d){var g=a.breakAt;a=a.touchingSliceAt;return[["M",b.x,b.y],d.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*g.x-a.x,2*g.y-a.y,g.x,g.y]:["L",g.x,g.y],["L",a.x,a.y]]},straight:function(b,a){a=a.touchingSliceAt;return[["M",b.x,b.y],["L",a.x,a.y]]},crookedLine:function(b,
|
||||
a,d){a=a.touchingSliceAt;var g=this.series,e=g.center[0],h=g.chart.plotWidth,r=g.chart.plotLeft;g=b.alignment;var t=this.shapeArgs.r;d=p(d.crookDistance,1);h="left"===g?e+t+(h+r-e-t)*(1-d):r+(e-t)*d;d=["L",h,b.y];e=!0;if("left"===g?h>b.x||h<a.x:h<b.x||h>a.x)e=!1;b=[["M",b.x,b.y]];e&&b.push(d);b.push(["L",a.x,a.y]);return b}}});return e});I(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Series/Pie/PiePoint.js"],
|
||||
e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F,z,r){var p=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),
|
||||
h=b.getStartAndEndRadians;y=y.noop;var a=r.clamp,d=r.extend,g=r.fireEvent,m=r.merge,n=r.pick,G=r.relativeLength;r=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.center=void 0;a.data=void 0;a.maxLabelDistance=void 0;a.options=void 0;a.points=void 0;return a}p(d,b);d.prototype.animate=function(a){var b=this,d=b.points,g=b.startAngleRad;a||d.forEach(function(a){var f=a.graphic,d=a.shapeArgs;f&&d&&(f.attr({r:n(a.startR,b.center&&b.center[3]/2),start:g,end:g}),f.animate({r:d.r,
|
||||
start:d.start,end:d.end},b.options.animation))})};d.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var g=this.center[0];var f=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(g,f,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:z.arc(g,f,this.center[2]/2,0,{start:a,end:b,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,
|
||||
fill:d.fillColor||"none",stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};d.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})};d.prototype.generatePoints=function(){b.prototype.generatePoints.call(this);this.updateTotals()};d.prototype.getX=function(b,d,g){var e=this.center,
|
||||
f=this.radii?this.radii[g.index]||0:e[2]/2;b=Math.asin(a((b-e[1])/(f+g.labelDistance),-1,1));return e[0]+(d?-1:1)*Math.cos(b)*(f+g.labelDistance)+(0<g.labelDistance?(d?-1:1)*this.options.dataLabels.padding:0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.redrawPoints=function(){var a=this,b=a.chart,d=b.renderer,g=a.options.shadow,f,e,h,n;this.drawEmpty();!g||a.shadowGroup||b.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(c){var k=
|
||||
{};e=c.graphic;if(!c.isNull&&e){var l=void 0;n=c.shapeArgs;f=c.getTranslate();b.styledMode||(l=c.shadowGroup,g&&!l&&(l=c.shadowGroup=d.g("shadow").add(a.shadowGroup)),l&&l.attr(f),h=a.pointAttribs(c,c.selected&&"select"));c.delayedRendering?(e.setRadialReference(a.center).attr(n).attr(f),b.styledMode||e.attr(h).attr({"stroke-linejoin":"round"}).shadow(g,l),c.delayedRendering=!1):(e.setRadialReference(a.center),b.styledMode||m(!0,k,h),m(!0,k,n,f),e.animate(k));e.attr({visibility:c.visible?"inherit":
|
||||
"hidden"});e.addClass(c.getClassName(),!0)}else e&&(c.graphic=e.destroy())})};d.prototype.sortByAngle=function(a,b){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*b})};d.prototype.translate=function(a){g(this,"translate");this.generatePoints();var b=this.options,d=b.slicedOffset,e=d+(b.borderWidth||0),f=h(b.startAngle,b.endAngle),m=this.startAngleRad=f.start;f=(this.endAngleRad=f.end)-m;var k=this.points,p=b.dataLabels.distance;b=b.ignoreHiddenPoint;var c=k.length,q,x=
|
||||
0;a||(this.center=a=this.getCenter());for(q=0;q<c;q++){var r=k[q];var C=m+x*f;!r.isValid()||b&&!r.visible||(x+=r.percentage/100);var t=m+x*f;var v={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*C)/1E3,end:Math.round(1E3*t)/1E3};r.shapeType="arc";r.shapeArgs=v;r.labelDistance=n(r.options.dataLabels&&r.options.dataLabels.distance,p);r.labelDistance=G(r.labelDistance,v.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,r.labelDistance);t=(t+C)/2;t>1.5*Math.PI?t-=2*Math.PI:t<-Math.PI/
|
||||
2&&(t+=2*Math.PI);r.slicedTranslation={translateX:Math.round(Math.cos(t)*d),translateY:Math.round(Math.sin(t)*d)};v=Math.cos(t)*a[2]/2;var z=Math.sin(t)*a[2]/2;r.tooltipPos=[a[0]+.7*v,a[1]+.7*z];r.half=t<-Math.PI/2||t>Math.PI/2?1:0;r.angle=t;C=Math.min(e,r.labelDistance/5);r.labelPosition={natural:{x:a[0]+v+Math.cos(t)*r.labelDistance,y:a[1]+z+Math.sin(t)*r.labelDistance},"final":{},alignment:0>r.labelDistance?"center":r.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+v+Math.cos(t)*C,y:a[1]+
|
||||
z+Math.sin(t)*C},touchingSliceAt:{x:a[0]+v,y:a[1]+z}}}}g(this,"afterTranslate")};d.prototype.updateTotals=function(){var a=this.points,b=a.length,d=this.options.ignoreHiddenPoint,g,f=0;for(g=0;g<b;g++){var e=a[g];!e.isValid()||d&&!e.visible||(f+=e.y)}this.total=f;for(g=0;g<b;g++)e=a[g],e.percentage=0<f&&(e.visible||!d)?e.y/f*100:0,e.total=f};d.defaultOptions=m(t.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",
|
||||
distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return d}(t);d(r.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:B.drawRectangle,drawTracker:e.prototype.drawTracker,
|
||||
getCenter:b.getCenter,getSymbol:y,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:v,requireSorting:!1,searchPoint:y,trackerGroups:["group","dataLabelsGroup"]});F.registerSeriesType("pie",r);"";return r});I(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v){var t=e.noop,F=y.distribute,z=B.series,r=v.arrayMax,p=v.clamp,
|
||||
h=v.defined,a=v.merge,d=v.pick,g=v.relativeLength,m;(function(e){function m(){var b=this,g=b.data,f=b.chart,e=b.options.dataLabels||{},k=e.connectorPadding,m=f.plotWidth,c=f.plotHeight,q=f.plotLeft,n=Math.round(f.chartWidth/3),u=b.center,p=u[2]/2,x=u[1],C=[[],[]],t=[0,0,0,0],v=b.dataLabelPositioners,G,y,B,J,K,I,X,O,U,T,Y,N;b.visible&&(e.enabled||b._hasPointLabels)&&(g.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),
|
||||
a.dataLabel.shortened=!1)}),z.prototype.drawDataLabels.apply(b),g.forEach(function(a){a.dataLabel&&(a.visible?(C[a.half].push(a),a.dataLabel._pos=null,!h(e.style.width)&&!h(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>n&&(a.dataLabel.css({width:Math.round(.7*n)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),C.forEach(function(a,g){var l=a.length,
|
||||
n=[],r;if(l){b.sortByAngle(a,g-.5);if(0<b.maxLabelDistance){var w=Math.max(0,x-p-b.maxLabelDistance);var A=Math.min(x+p+b.maxLabelDistance,f.plotHeight);a.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,x-p-a.labelDistance),a.bottom=Math.min(x+p+a.labelDistance,f.plotHeight),r=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+r/2,size:r,rank:a.y},n.push(a.distributeBox))});w=A+r-w;F(n,w,w/5)}for(Y=0;Y<l;Y++){G=a[Y];I=G.labelPosition;J=G.dataLabel;
|
||||
T=!1===G.visible?"hidden":"inherit";U=w=I.natural.y;n&&h(G.distributeBox)&&("undefined"===typeof G.distributeBox.pos?T="hidden":(X=G.distributeBox.size,U=v.radialDistributionY(G)));delete G.positionIndex;if(e.justify)O=v.justify(G,p,u);else switch(e.alignTo){case "connectors":O=v.alignToConnectors(a,g,m,q);break;case "plotEdges":O=v.alignToPlotEdges(J,g,m,q);break;default:O=v.radialDistributionX(b,G,U,w)}J._attr={visibility:T,align:I.alignment};N=G.options.dataLabels||{};J._pos={x:O+d(N.x,e.x)+({left:k,
|
||||
right:-k}[I.alignment]||0),y:U+d(N.y,e.y)-10};I.final.x=O;I.final.y=U;d(e.crop,!0)&&(K=J.getBBox().width,w=null,O-K<k&&1===g?(w=Math.round(K-O+k),t[3]=Math.max(w,t[3])):O+K>m-k&&0===g&&(w=Math.round(O+K-m+k),t[1]=Math.max(w,t[1])),0>U-X/2?t[0]=Math.max(Math.round(-U+X/2),t[0]):U+X/2>c&&(t[2]=Math.max(Math.round(U+X/2-c),t[2])),J.sideOverflow=w)}}}),0===r(t)||this.verifyDataLabelOverflow(t))&&(this.placeDataLabels(),this.points.forEach(function(c){N=a(e,c.options.dataLabels);if(y=d(N.connectorWidth,
|
||||
1)){var g;B=c.connector;if((J=c.dataLabel)&&J._pos&&c.visible&&0<c.labelDistance){T=J._attr.visibility;if(g=!B)c.connector=B=f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+c.colorIndex+(c.className?" "+c.className:"")).add(b.dataLabelsGroup),f.styledMode||B.attr({"stroke-width":y,stroke:N.connectorColor||c.color||"#666666"});B[g?"attr":"animate"]({d:c.getConnectorPath()});B.attr("visibility",T)}else B&&(c.connector=B.destroy())}}))}function n(){this.points.forEach(function(a){var b=
|
||||
a.dataLabel,d;b&&a.visible&&((d=b._pos)?(b.sideOverflow&&(b._attr.width=Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](d),b.moved=!0):b&&b.attr({y:-9999}));delete a.distributeBox},this)}function x(a){var b=this.center,d=this.options,e=d.center,h=d.minSize||80,l=null!==d.size;if(!l){if(null!==e[0])var c=Math.max(b[2]-Math.max(a[1],a[3]),
|
||||
h);else c=Math.max(b[2]-a[1]-a[3],h),b[0]+=(a[3]-a[1])/2;null!==e[1]?c=p(c,h,b[2]-Math.max(a[0],a[2])):(c=p(c,h,b[2]-a[0]-a[2]),b[1]+=(a[0]-a[2])/2);c<b[2]?(b[2]=c,b[3]=Math.min(d.thickness?Math.max(0,c-2*d.thickness):Math.max(0,g(d.innerSize||0,c)),c),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):l=!0}return l}var C=[],u={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,d,g){return a.getX(d<b.top+2||d>b.bottom-2?g:d,b.half,b)},justify:function(a,
|
||||
b,d){return d[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,d,g){a=a.getBBox().width;return b?a+g:d-a-g},alignToConnectors:function(a,b,d,g){var f=0,e;a.forEach(function(a){e=a.dataLabel.getBBox().width;e>f&&(f=e)});return b?f+g:d-f-g}};e.compose=function(a){b.compose(z);-1===C.indexOf(a)&&(C.push(a),a=a.prototype,a.dataLabelPositioners=u,a.alignDataLabel=t,a.drawDataLabels=m,a.placeDataLabels=n,a.verifyDataLabelOverflow=x)}})(m||(m={}));return m});I(e,"Extensions/OverlappingDataLabels.js",
|
||||
[e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(b,e){function y(b,e){var a=!1;if(b){var d=b.newOpacity;b.oldOpacity!==d&&(b.alignAttr&&b.placed?(b[d?"removeClass":"addClass"]("highcharts-data-label-hidden"),a=!0,b.alignAttr.opacity=d,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){e.styledMode||b.css({pointerEvents:d?"auto":"none"})}),v(e,"afterHideOverlappingLabel")):b.attr({opacity:d}));b.isOld=!0}return a}var B=e.addEvent,v=e.fireEvent,t=e.isArray,F=e.isNumber,z=e.objectEach,
|
||||
r=e.pick;B(b,"render",function(){var b=this,e=[];(this.labelCollectors||[]).forEach(function(a){e=e.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&z(a.stacking.stacks,function(a){z(a,function(a){a.label&&e.push(a.label)})})});(this.series||[]).forEach(function(a){var d=a.options.dataLabels;a.visible&&(!1!==d.enabled||a._hasPointLabels)&&(d=function(a){return a.forEach(function(a){a.visible&&(t(a.dataLabels)?a.dataLabels:a.dataLabel?
|
||||
[a.dataLabel]:[]).forEach(function(d){var g=d.options;d.labelrank=r(g.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);g.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,y(d,b)):e.push(d)})})},d(a.nodes||[]),d(a.points))});this.hideOverlappingLabels(e)});b.prototype.hideOverlappingLabels=function(b){var e=this,a=b.length,d=e.renderer,g,m,n,p=!1;var r=function(a){var b,g=a.box?0:a.padding||0,f=b=0,e;if(a&&(!a.alignAttr||a.placed)){var h=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var m=a.parentGroup;
|
||||
a.width||(b=a.getBBox(),a.width=b.width,a.height=b.height,b=d.fontMetrics(null,a.element).h);var c=a.width-2*g;(e={left:"0",center:"0.5",right:"1"}[a.alignValue])?f=+e*c:F(a.x)&&Math.round(a.x)!==a.translateX&&(f=a.x-a.translateX);return{x:h.x+(m.translateX||0)+g-(f||0),y:h.y+(m.translateY||0)+g-b,width:a.width-2*g,height:a.height-2*g}}};for(m=0;m<a;m++)if(g=b[m])g.oldOpacity=g.opacity,g.newOpacity=1,g.absoluteBox=r(g);b.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(m=0;m<a;m++){var x=
|
||||
(r=b[m])&&r.absoluteBox;for(g=m+1;g<a;++g){var C=(n=b[g])&&n.absoluteBox;!x||!C||r===n||0===r.newOpacity||0===n.newOpacity||"hidden"===r.visibility||"hidden"===n.visibility||C.x>=x.x+x.width||C.x+C.width<=x.x||C.y>=x.y+x.height||C.y+C.height<=x.y||((r.labelrank<n.labelrank?r:n).newOpacity=0)}}b.forEach(function(a){y(a,e)&&(p=!0)});p&&v(e,"afterHideAllOverlappingLabels")}});I(e,"Core/Responsive.js",[e["Core/Utilities.js"]],function(b){var e=b.extend,y=b.find,B=b.isArray,v=b.isObject,t=b.merge,F=b.objectEach,
|
||||
z=b.pick,r=b.splat,p=b.uniqueKey,h;(function(a){var b=[];a.compose=function(a){-1===b.indexOf(a)&&(b.push(a),e(a.prototype,g.prototype));return a};var g=function(){function a(){}a.prototype.currentOptions=function(a){function b(a,g,e,h){var f;F(a,function(a,k){if(!h&&-1<d.collectionsWithUpdate.indexOf(k)&&g[k])for(a=r(a),e[k]=[],f=0;f<Math.max(a.length,g[k].length);f++)g[k][f]&&(void 0===a[f]?e[k][f]=g[k][f]:(e[k][f]={},b(a[f],g[k][f],e[k][f],h+1)));else v(a)?(e[k]=B(a)?[]:{},b(a,g[k]||{},e[k],h+
|
||||
1)):e[k]="undefined"===typeof g[k]?null:g[k]})}var d=this,g={};b(a,this.options,g,0);return g};a.prototype.matchResponsiveRule=function(a,b){var d=a.condition;(d.callback||function(){return this.chartWidth<=z(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=z(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=z(d.minWidth,0)&&this.chartHeight>=z(d.minHeight,0)}).call(this)&&b.push(a._id)};a.prototype.setResponsive=function(a,b){var d=this,g=this.options.responsive,e=this.currentResponsive,h=[];!b&&g&&
|
||||
g.rules&&g.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=p());d.matchResponsiveRule(a,h)},this);b=t.apply(void 0,h.map(function(a){return y((g||{}).rules||[],function(b){return b._id===a})}).map(function(a){return a&&a.chartOptions}));b.isResponsiveOptions=!0;h=h.toString()||void 0;h!==(e&&e.ruleIds)&&(e&&this.update(e.undoOptions,a,!0),h?(e=this.currentOptions(b),e.isResponsiveOptions=!0,this.currentResponsive={ruleIds:h,mergedOptions:b,undoOptions:e},this.update(b,a,!0)):this.currentResponsive=
|
||||
void 0)};return a}()})(h||(h={}));"";"";return h});I(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/DefaultOptions.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/FormatUtilities.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Renderer/HTML/HTMLRenderer.js"],e["Core/Axis/Axis.js"],
|
||||
e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/MSPointer.js"],e["Core/Legend/Legend.js"],e["Core/Chart/Chart.js"],e["Core/Axis/Stacking/StackingAxis.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnSeries.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieSeries.js"],
|
||||
e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],function(b,e,y,B,v,t,F,z,r,p,h,a,d,g,m,n,G,J,x,C,u,l,A,f,w,k,D,c,q,E,H,Q,L,S,I){b.animate=v.animate;b.animObject=v.animObject;b.getDeferredAnimation=v.getDeferredAnimation;b.setAnimation=v.setAnimation;b.stop=v.stop;b.timers=B.timers;b.AST=t;b.Axis=d;b.Chart=A;b.chart=A.chart;b.Fx=B;b.Legend=l;b.PlotLineOrBand=n;b.Point=x;b.Pointer=u.isRequired()?u:C;b.Series=k;b.StackItem=
|
||||
w;b.SVGElement=r;b.SVGRenderer=p;b.Tick=G;b.Time=I;b.Tooltip=J;b.Color=S;b.color=S.parse;a.compose(p);h.compose(r);b.defaultOptions=y.defaultOptions;b.getOptions=y.getOptions;b.time=y.defaultTime;b.setOptions=y.setOptions;b.dateFormat=F.dateFormat;b.format=F.format;b.numberFormat=F.numberFormat;b.addEvent=e.addEvent;b.arrayMax=e.arrayMax;b.arrayMin=e.arrayMin;b.attr=e.attr;b.clearTimeout=e.clearTimeout;b.correctFloat=e.correctFloat;b.createElement=e.createElement;b.css=e.css;b.defined=e.defined;b.destroyObjectProperties=
|
||||
e.destroyObjectProperties;b.discardElement=e.discardElement;b.distribute=z.distribute;b.erase=e.erase;b.error=e.error;b.extend=e.extend;b.extendClass=e.extendClass;b.find=e.find;b.fireEvent=e.fireEvent;b.getMagnitude=e.getMagnitude;b.getStyle=e.getStyle;b.inArray=e.inArray;b.isArray=e.isArray;b.isClass=e.isClass;b.isDOMElement=e.isDOMElement;b.isFunction=e.isFunction;b.isNumber=e.isNumber;b.isObject=e.isObject;b.isString=e.isString;b.keys=e.keys;b.merge=e.merge;b.normalizeTickInterval=e.normalizeTickInterval;
|
||||
b.objectEach=e.objectEach;b.offset=e.offset;b.pad=e.pad;b.pick=e.pick;b.pInt=e.pInt;b.relativeLength=e.relativeLength;b.removeEvent=e.removeEvent;b.seriesType=D.seriesType;b.splat=e.splat;b.stableSort=e.stableSort;b.syncTimeout=e.syncTimeout;b.timeUnits=e.timeUnits;b.uniqueKey=e.uniqueKey;b.useSerialIds=e.useSerialIds;b.wrap=e.wrap;q.compose(c);Q.compose(k);g.compose(d);m.compose(d);H.compose(E);n.compose(d);L.compose(A);f.compose(d,A,k);return b});I(e,"Core/Axis/Color/ColorAxisComposition.js",[e["Core/Color/Color.js"],
|
||||
e["Core/Utilities.js"]],function(b,e){var y=b.parse,B=e.addEvent,v=e.extend,t=e.merge,F=e.pick,z=e.splat,r;(function(b){function e(){var a=this,b=this.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=z(b.colorAxis),b.colorAxis.forEach(function(b,d){b.index=d;new A(a,b)}))}function a(a){var b=this,d=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))},f=[],c,g;(this.chart.colorAxis||[]).forEach(function(a){(c=a.options)&&c.showInLegend&&(c.dataClasses&&
|
||||
c.visible?f=f.concat(a.getDataClassLegendSymbols()):c.visible&&f.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||c.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){d(a)}):d(a)}))});for(g=f.length;g--;)a.allItems.unshift(f[g])}function d(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function g(){var a=this.chart.colorAxis;a&&a.forEach(function(a,b,d){a.update({},d)})}function m(){(this.chart.colorAxis&&this.chart.colorAxis.length||
|
||||
this.colorAttribs)&&this.translateColors()}function n(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function p(a){var b=this,d=a?"show":"hide";b.visible=b.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(b[a])b[a][d]()});this.series.buildKDTree()}function r(){var a=this,b=this.options.nullColor,d=this.colorAxis,g=this.colorKey;(this.data.length?this.data:this.points).forEach(function(c){var f=c.getNestedProperty(g);(f=c.options.color||
|
||||
(c.isNull||null===c.value?b:d&&"undefined"!==typeof f?d.toColor(f,c):c.color||a.color))&&c.color!==f&&(c.color=f,"point"===a.options.legendType&&c.legendItem&&a.chart.legend.colorizeItem(c,c.visible))})}function x(a){var b=a.prototype.createAxis;a.prototype.createAxis=function(a,d){if("colorAxis"!==a)return b.apply(this,arguments);var c=new A(this,t(d.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();
|
||||
a.isDirtyData=!0});F(d.redraw,!0)&&this.redraw(d.animation);return c}}function C(){this.elem.attr("fill",y(this.start).tweenTo(y(this.end),this.pos),void 0,!0)}function u(){this.elem.attr("stroke",y(this.start).tweenTo(y(this.end),this.pos),void 0,!0)}var l=[],A;b.compose=function(b,h,k,t,c){A||(A=b);-1===l.indexOf(h)&&(l.push(h),b=h.prototype,b.collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],B(h,"afterGetAxes",e),x(h));-1===l.indexOf(k)&&(l.push(k),h=k.prototype,
|
||||
h.fillSetter=C,h.strokeSetter=u);-1===l.indexOf(t)&&(l.push(t),B(t,"afterGetAllItems",a),B(t,"afterColorizeItem",d),B(t,"afterUpdate",g));-1===l.indexOf(c)&&(l.push(c),v(c.prototype,{optionalAxis:"colorAxis",translateColors:r}),v(c.prototype.pointClass.prototype,{setVisible:p}),B(c,"afterTranslate",m),B(c,"bindAxes",n))};b.pointSetVisible=p})(r||(r={}));return r});I(e,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
|
||||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});I(e,"Core/Axis/Color/ColorAxis.js",[e["Core/Axis/Axis.js"],e["Core/Color/Color.js"],e["Core/Axis/Color/ColorAxisComposition.js"],e["Core/Axis/Color/ColorAxisDefaults.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,
|
||||
y,B,v,t,F,z){var r=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),p=e.parse,h=v.noop,a=F.series,d=z.extend,g=z.isNumber,m=z.merge,n=z.pick;e=function(b){function e(a,d){var g=b.call(this,a,d)||this;
|
||||
g.beforePadding=!1;g.chart=void 0;g.coll="colorAxis";g.dataClasses=void 0;g.legendItem=void 0;g.legendItems=void 0;g.name="";g.options=void 0;g.stops=void 0;g.visible=!0;g.init(a,d);return g}r(e,b);e.compose=function(a,b,d,g){y.compose(e,a,b,d,g)};e.prototype.init=function(a,d){var g=a.options.legend||{},h=d.layout?"vertical"!==d.layout:"vertical"!==g.layout,n=d.visible;g=m(e.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:g.enabled&&!1!==n});this.coll="colorAxis";this.side=d.side||h?2:
|
||||
1;this.reversed=d.reversed||!h;this.opposite=!h;b.prototype.init.call(this,a,g);this.userOptions.visible=n;d.dataClasses&&this.initDataClasses(d);this.initStops();this.horiz=h;this.zoomEnabled=!1};e.prototype.initDataClasses=function(a){var b=this.chart,d=this.options,g=a.dataClasses.length,e,f=0,h=b.options.chart.colorCount;this.dataClasses=e=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,l){a=m(a);e.push(a);if(b.styledMode||!a.color)"category"===d.dataClassColor?(b.styledMode||(l=
|
||||
b.options.colors,h=l.length,a.color=l[f]),a.colorIndex=f,f++,f===h&&(f=0)):a.color=p(d.minColor).tweenTo(p(d.maxColor),2>g?.5:l/(g-1))})};e.prototype.hasData=function(){return!!(this.tickPositions||[]).length};e.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};e.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=p(a[1])})};e.prototype.setOptions=
|
||||
function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};e.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},g,h;a?(this.left=d=a.attr("x"),this.top=g=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-h,this.bottom=b.chartHeight-g-a,this.len=this.horiz?h:a,this.pos=this.horiz?d:g):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||e.defaultLegendLength};e.prototype.normalizedValue=
|
||||
function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};e.prototype.toColor=function(a,b){var d=this.dataClasses,g=this.stops,e;if(d)for(e=d.length;e--;){var f=d[e];var h=f.from;g=f.to;if(("undefined"===typeof h||a>=h)&&("undefined"===typeof g||a<=g)){var k=f.color;b&&(b.dataClass=e,b.colorIndex=f.colorIndex);break}}else{a=this.normalizedValue(a);for(e=g.length;e--&&!(a>g[e][0]););h=g[e]||g[e+1];g=g[e+1]||h;a=1-(g[0]-a)/(g[0]-h[0]||1);k=h.color.tweenTo(g.color,
|
||||
a)}return k};e.prototype.getOffset=function(){var a=this.legendGroup,d=this.chart.axisOffset[this.side];if(a){this.axisParent=a;b.prototype.getOffset.call(this);var g=this.chart.legend;g.allItems.forEach(function(a){a instanceof e&&a.drawLegendSymbol(g,a)});g.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=d}};e.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:
|
||||
[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};e.prototype.drawLegendSymbol=function(a,b){var d=a.padding,g=a.options,h=this.horiz,f=n(g.symbolWidth,h?e.defaultLegendLength:12),m=n(g.symbolHeight,h?12:e.defaultLegendLength),k=n(g.labelPadding,h?16:30);g=n(g.itemDistance,10);this.setLegendColor();b.legendSymbol||(b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,f,m).attr({zIndex:1}).add(b.legendGroup));this.legendItemWidth=f+d+(h?g:this.options.labels.x+
|
||||
this.maxLabelLength);this.legendItemHeight=m+d+(h?k:0)};e.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};e.prototype.setVisible=function(){};e.prototype.getSeriesExtremes=function(){var b=this.series,d=b.length,g;this.dataMin=Infinity;for(this.dataMax=-Infinity;d--;){var e=b[d];var h=e.colorKey=n(e.options.colorKey,e.colorKey,e.pointValKey,e.zoneAxis,"y");var f=e.pointArrayMap;var m=e[h+"Min"]&&e[h+"Max"];if(e[h+"Data"])var k=e[h+"Data"];else if(f){k=[];f=f.indexOf(h);
|
||||
var p=e.yData;if(0<=f&&p)for(g=0;g<p.length;g++)k.push(n(p[g][f],p[g]))}else k=e.yData;m?(e.minColorValue=e[h+"Min"],e.maxColorValue=e[h+"Max"]):(k=a.prototype.getExtremes.call(e,k),e.minColorValue=k.dataMin,e.maxColorValue=k.dataMax);"undefined"!==typeof e.minColorValue&&(this.dataMin=Math.min(this.dataMin,e.minColorValue),this.dataMax=Math.max(this.dataMax,e.maxColorValue));m||a.prototype.applyExtremes.call(e)}};e.prototype.drawCrosshair=function(a,d){var g=d&&d.plotX,e=d&&d.plotY,h=this.pos,f=
|
||||
this.len;if(d){var m=this.toPixels(d.getNestedProperty(d.series.colorKey));m<h?m=h-2:m>h+f&&(m=h+f+2);d.plotX=m;d.plotY=this.len-m;b.prototype.drawCrosshair.call(this,a,d);d.plotX=g;d.plotY=e;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};e.prototype.getPlotLinePath=function(a){var d=
|
||||
this.left,e=a.translatedValue,h=this.top;return g(e)?this.horiz?[["M",e-4,h-6],["L",e+4,h-6],["L",e,h],["Z"]]:[["M",d,e],["L",d-6,e+6],["L",d-6,e-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};e.prototype.update=function(a,d){var g=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&g.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,d);this.legendItem&&(this.setLegendColor(),g.colorizeItem(this,!0))};e.prototype.destroyItems=function(){var a=
|
||||
this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};e.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};e.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};e.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,g=a.legendItems,e=b.options.legend,m=e.valueDecimals,f=
|
||||
e.valueSuffix||"",n;g.length||a.dataClasses.forEach(function(e,l){var c=e.from,k=e.to,p=b.numberFormatter,u=!0;n="";"undefined"===typeof c?n="< ":"undefined"===typeof k&&(n="> ");"undefined"!==typeof c&&(n+=p(c,m)+f);"undefined"!==typeof c&&"undefined"!==typeof k&&(n+=" - ");"undefined"!==typeof k&&(n+=p(k,m)+f);g.push(d({chart:b,name:n,options:{},drawLegendSymbol:t.drawRectangle,visible:!0,setState:h,isDataClass:!0,setVisible:function(){this.visible=u=a.visible=!u;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===
|
||||
l&&a.setVisible(u)})});b.legend.colorizeItem(this,u)}},e))});return g};e.defaultColorAxisOptions=B;e.defaultLegendLength=200;e.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return e}(b);Array.prototype.push.apply(b.keepProps,e.keepProps);"";return e});I(e,"Maps/MapNavigationOptionsDefault.js",[e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e){e=e.extend;var y={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,
|
||||
height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};e(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=y});I(e,"Maps/MapNavigation.js",[e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y){function B(a){a&&
|
||||
(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function v(a){this.navButtons=[];this.init(a)}var t=e.doc,F=y.addEvent,z=y.extend,r=y.isNumber,p=y.merge,h=y.objectEach,a=y.pick;v.prototype.init=function(a){this.chart=a};v.prototype.update=function(b){var d=this,e=this.chart,n=e.options.mapNavigation,r,t=function(a){this.handler.call(e,a);B(a)},x=d.navButtons;b&&(n=e.options.mapNavigation=p(e.options.mapNavigation,b));for(;x.length;)x.pop().destroy();
|
||||
a(n.enableButtons,n.enabled)&&!e.renderer.forExport&&(d.navButtonsGroup||(d.navButtonsGroup=e.renderer.g().attr({zIndex:4}).add()),h(n.buttons,function(a,b){a=p(n.buttonOptions,a);!e.styledMode&&a.theme&&(r=a.theme,r.style=p(a.theme.style,a.style));var g=e.renderer.button(a.text||"",0,0,t,r,void 0,void 0,void 0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[b]).attr({width:a.width,height:a.height,title:e.options.lang[b],
|
||||
padding:a.padding,zIndex:5}).add(d.navButtonsGroup);g.handler=a.onclick;F(g.element,"dblclick",B);x.push(g);z(a,{width:g.width,height:2*g.height});if(e.hasLoaded)g.align(a,!1,a.alignTo);else var h=F(e,"load",function(){g.element&&g.align(a,!1,a.alignTo);h()})}),b=function(){var a=e.exportingGroup&&e.exportingGroup.getBBox();if(a){var b=d.navButtonsGroup.getBBox();if(!(b.x>=a.x+a.width||b.x+b.width<=a.x||b.y>=a.y+a.height||b.y+b.height<=a.y)){var g=-b.y-b.height+a.y-5;a=a.y+a.height-b.y+5;d.navButtonsGroup.attr({translateY:"bottom"===
|
||||
(n.buttonOptions&&n.buttonOptions.verticalAlign)?g:a})}}},e.hasLoaded||F(e,"render",b));this.updateEvents(n)};v.prototype.updateEvents=function(b){var d=this.chart;a(b.enableDoubleClickZoom,b.enabled)||b.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||F(d.container,"dblclick",function(a){d.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());a(b.enableMouseWheelZoom,b.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||F(d.container,
|
||||
void 0!==t.onwheel?"wheel":void 0!==t.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){d.pointer.inClass(a.target,"highcharts-no-mousewheel")||(d.pointer.onContainerMouseWheel(a),B(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};z(b.prototype,{fitToBox:function(a,b){[["x","width"],["y","height"]].forEach(function(d){var g=d[0];d=d[1];a[g]+a[d]>b[g]+b[d]&&(a[d]>b[d]?(a[d]=b[d],a[g]=b[g]):a[g]=b[g]+b[d]-a[d]);a[d]>b[d]&&(a[d]=b[d]);a[g]<b[g]&&(a[g]=b[g])});
|
||||
return a},mapZoom:function(a,b,e,h,p){this.mapView&&(r(a)&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,r(b)&&r(e)?this.mapView.projection.inverse([b,e]):void 0,r(h)&&r(p)?[h,p]:void 0))}});F(b,"beforeRender",function(){this.mapNavigation=new v(this);this.mapNavigation.update()});e.MapNavigation=v});I(e,"Maps/MapPointer.js",[e["Core/Pointer.js"],e["Core/Utilities.js"]],function(b,e){var y=e.defined,B=e.extend,v=e.pick;e=e.wrap;var t=b.prototype.normalize,F=0,z;B(b.prototype,{normalize:function(b,
|
||||
e){var h=this.chart;b=t.call(this,b,e);h&&h.mapView&&(e=h.mapView.pixelsToLonLat({x:b.chartX-h.plotLeft,y:b.chartY-h.plotTop}))&&B(b,e);return b},onContainerDblClick:function(b){var e=this.chart;b=this.normalize(b);e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(b.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,b.chartX,b.chartY)},onContainerMouseWheel:function(b){var e=this.chart;
|
||||
b=this.normalize(b);var h=y(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(h)&&(F+=Math.abs(h),z&&clearTimeout(z),z=setTimeout(function(){F=0},50));10>F&&e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)&&e.mapView&&e.mapView.zoomBy((e.options.mapNavigation.mouseWheelSensitivity-1)*-h,void 0,[b.chartX,b.chartY],1>Math.abs(h)?!1:void 0)}});e(b.prototype,"zoomOption",function(b){var e=this.chart.options.mapNavigation;v(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.zooming.pinchType=
|
||||
"xy");b.apply(this,[].slice.call(arguments,1))});e(b.prototype,"pinchTranslate",function(b,e,h,a,d,g,m){b.call(this,e,h,a,d,g,m);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=a.scaleX>a.scaleY,this.pinchTranslateDirection(!b,e,h,a,d,g,m,b?a.scaleX:a.scaleY))})});I(e,"Series/ColorMapComposition.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var y=b.seriesTypes.column.prototype,B=e.addEvent,v=e.defined,t;(function(b){function e(b){this.moveToTopOnHover&&this.graphic&&
|
||||
this.graphic.attr({zIndex:b&&"hover"===b.state?1:0})}var r=[];b.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};b.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(b){var e={};!v(b.color)||b.state&&"normal"!==
|
||||
b.state||(e[this.colorProp||"fill"]=b.color);return e},pointAttribs:y.pointAttribs};b.compose=function(b){var h=b.prototype.pointClass;-1===r.indexOf(h)&&(r.push(h),B(h,"afterSetState",e));return b}})(t||(t={}));return t});I(e,"Maps/MapSymbols.js",[e["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function e(b,e,v,t,F,z,r,p){return[["M",b+F,e],["L",b+v-z,e],["C",b+v-z/2,e,b+v,e+z/2,b+v,e+z],["L",b+v,e+t-r],["C",b+v,e+t-r/2,b+v-r/2,e+t,b+v-r,e+t],["L",b+p,e+t],["C",b+p/2,e+t,b,e+t-p/2,b,e+t-p],["L",
|
||||
b,e+F],["C",b,e+F/2,b+F/2,e,b+F,e],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,B,v,t,F){F=F&&F.r||0;return e(b-1,B-1,v,t,0,0,F,F)};b.topbutton=function(b,B,v,t,F){F=F&&F.r||0;return e(b-1,B-1,v,t,F,F,0,0)};return b});I(e,"Core/Chart/MapChart.js",[e["Core/Chart/Chart.js"],e["Core/DefaultOptions.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(e,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
|
||||
function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,h)};return function(e,h){function a(){this.constructor=e}b(e,h);e.prototype=null===h?Object.create(h):(a.prototype=h.prototype,new a)}}(),t=e.getOptions,F=B.merge,z=B.pick;b=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}v(e,b);e.prototype.init=function(e,a){var d=t().credits;e=F({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:z(d.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),
|
||||
mapTextFull:z(d.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},e);b.prototype.init.call(this,e,a)};return e}(b);(function(b){b.maps={};b.mapChart=function(e,h,a){return new b(e,h,a)};b.splitPath=function(b){"string"===typeof b&&(b=b.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),b=b.split(/[ ,;]+/).map(function(b){return/[A-za-z]/.test(b)?b:parseFloat(b)}));return y.prototype.pathToSegments(b)}})(b||(b={}));return b});I(e,"Maps/MapUtilities.js",[],
|
||||
function(){return{boundsFromPath:function(b){var e=-Number.MAX_VALUE,y=Number.MAX_VALUE,B=-Number.MAX_VALUE,v=Number.MAX_VALUE,t;b.forEach(function(b){var z=b[b.length-2];b=b[b.length-1];"number"===typeof z&&"number"===typeof b&&(y=Math.min(y,z),e=Math.max(e,z),v=Math.min(v,b),B=Math.max(B,b),t=!0)});if(t)return{x1:y,y1:v,x2:e,y2:B}},pointInPolygon:function(b,e){var y,B=!1,v=b.x,t=b.y;b=0;for(y=e.length-1;b<e.length;y=b++){var F=e[b][1]>t;var z=e[y][1]>t;F!==z&&v<(e[y][0]-e[b][0])*(t-e[b][1])/(e[y][1]-
|
||||
e[b][1])+e[b][0]&&(B=!B)}return B}}});I(e,"Series/Map/MapPoint.js",[e["Series/ColorMapComposition.js"],e["Maps/MapUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=
|
||||
null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),t=e.boundsFromPath,F=B.extend,z=B.isNumber,r=B.pick;e=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.path=void 0;a.series=void 0;return a}v(e,b);e.getProjectedPath=function(a,b){a.projectedPath||(b&&a.geometry?(b.hasCoordinates=!0,a.projectedPath=b.path(a.geometry)):a.projectedPath=a.path);return a.projectedPath||[]};e.prototype.applyOptions=function(a,d){var e=this.series;a=b.prototype.applyOptions.call(this,
|
||||
a,d);d=e.joinBy;e.mapData&&e.mapMap&&(d=b.prototype.getNestedProperty.call(a,d[1]),(e="undefined"!==typeof d&&e.mapMap[d])?F(a,e):a.value=a.value||null);return a};e.prototype.getProjectedBounds=function(a){a=e.getProjectedPath(this,a);a=t(a);var b=this.properties;if(a){var g=b&&b["hc-middle-x"];b=b&&b["hc-middle-y"];a.midX=a.x1+(a.x2-a.x1)*r(this.middleX,z(g)?g:.5);g=r(this.middleY,z(b)?b:.5);this.geometry||(g=1-g);a.midY=a.y2-(a.y2-a.y1)*g;return a}};e.prototype.onMouseOver=function(a){B.clearTimeout(this.colorInterval);
|
||||
if(!this.isNull||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)};e.prototype.zoomTo=function(){var a=this.series.chart;a.mapView&&this.bounds&&(a.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,a.redraw())};return e}(y.seriesTypes.scatter.prototype.pointClass);F(e.prototype,{dataLabelOnNull:b.pointMembers.dataLabelOnNull,moveToTopOnHover:b.pointMembers.moveToTopOnHover,isValid:b.pointMembers.isValid});return e});I(e,"Maps/MapViewOptionsDefault.js",
|
||||
[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}});I(e,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}});I(e,"Extensions/GeoJSON.js",[e["Core/Chart/Chart.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y,B){function v(a,b){b||(b=Object.keys(a.objects)[0]);b=
|
||||
a.objects[b];if(b["hc-decoded-geojson"])return b["hc-decoded-geojson"];var d=a.arcs;if(a.transform){var e=a.transform,h=e.scale,p=e.translate;d=a.arcs.map(function(a){var b=0,d=0;return a.map(function(a){a=a.slice();a[0]=(b+=a[0])*h[0]+p[0];a[1]=(d+=a[1])*h[1]+p[1];return a})})}var r=function(a){return"number"===typeof a[0]?a.reduce(function(a,b,e){var g=0>b?d[~b]:d[b];0>b?(g=g.slice(0,0===e?g.length:g.length-1),g.reverse()):e&&(g=g.slice(1));return a.concat(g)},[]):a.map(r)};e=b.geometries.map(function(a){return{type:"Feature",
|
||||
properties:a.properties,geometry:{type:a.type,coordinates:a.coordinates||r(a.arcs)}}});a={type:"FeatureCollection",copyright:a.copyright,copyrightShort:a.copyrightShort,copyrightUrl:a.copyrightUrl,features:e,"hc-recommended-mapview":b["hc-recommended-mapview"],bbox:a.bbox,title:a.title};return b["hc-decoded-geojson"]=a}function t(a,b,e){void 0===b&&(b="map");var d=[];a="Topology"===a.type?v(a):a;a.features.forEach(function(a){var e=a.geometry||{},g=e.type;e=e.coordinates;a=a.properties;var h;"map"!==
|
||||
b&&"mapbubble"!==b||"Polygon"!==g&&"MultiPolygon"!==g?"mapline"!==b||"LineString"!==g&&"MultiLineString"!==g?"mappoint"===b&&"Point"===g&&e.length&&(h={geometry:{coordinates:e,type:g}}):e.length&&(h={geometry:{coordinates:e,type:g}}):e.length&&(h={geometry:{coordinates:e,type:g}});h&&(g=a&&(a.name||a.NAME),d.push(p(h,{name:"string"===typeof g?g:void 0,properties:a})))});e&&a.copyrightShort&&(e.chart.mapCredits=F(e.chart.options.credits.mapText,{geojson:a}),e.chart.mapCreditsFull=F(e.chart.options.credits.mapTextFull,
|
||||
{geojson:a}));return d}var F=e.format,z=y.win,r=B.error,p=B.extend,h=B.merge;e=B.wrap;"";b.prototype.transformFromLatLon=function(a,b){var d=this.options.chart.proj4||z.proj4;if(d){var e=b.jsonmarginX;e=void 0===e?0:e;var h=b.jsonmarginY;h=void 0===h?0:h;var p=b.jsonres;p=void 0===p?1:p;var t=b.scale;t=void 0===t?1:t;var x=b.xoffset;x=void 0===x?0:x;var v=b.xpan;v=void 0===v?0:v;var u=b.yoffset;u=void 0===u?0:u;var l=b.ypan;l=void 0===l?0:l;a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);
|
||||
var A=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=b.rotation?[a[0]*d+a[1]*A,-a[0]*A+a[1]*d]:a;return{x:((b[0]-x)*t+v)*p+e,y:-(((u-b[1])*t+l)*p-h)}}r(21,!1,this)};b.prototype.transformToLatLon=function(a,b){var d=this.options.chart.proj4||z.proj4;if(!d)r(21,!1,this);else if(null!==a.y){var e=b.jsonmarginX,h=b.jsonmarginY,p=b.jsonres;p=void 0===p?1:p;var t=b.scale;t=void 0===t?1:t;var x=b.xoffset,v=b.xpan,u=b.yoffset,l=b.ypan;a={x:((a.x-(void 0===e?0:e))/p-(void 0===v?0:v))/t+(void 0===x?0:x),y:((a.y-
|
||||
(void 0===h?0:h))/p+(void 0===l?0:l))/t+(void 0===u?0:u)};e=b.cosAngle||b.rotation&&Math.cos(b.rotation);h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=d(b.crs,"WGS84",b.rotation?{x:a.x*e+a.y*-h,y:a.x*h+a.y*e}:a);return{lat:b.y,lon:b.x}}};b.prototype.fromPointToLatLon=function(a){return this.mapView&&this.mapView.projectedUnitsToLonLat(a)};b.prototype.fromLatLonToPoint=function(a){return this.mapView&&this.mapView.lonLatToProjectedUnits(a)};e(b.prototype,"addCredits",function(a,b){b=h(!0,this.options.credits,
|
||||
b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});y.geojson=t;return{geojson:t,topo2geo:v}});I(e,"Core/Geometry/PolygonClip.js",[],function(){var b=function(b,e,t){return(e[0]-b[0])*(t[1]-b[1])>(e[1]-b[1])*(t[0]-b[0])},e=function(b,e,t,y){var v=[b[0]-e[0],b[1]-e[1]],r=[t[0]-y[0],t[1]-y[1]];b=b[0]*e[1]-b[1]*e[0];t=t[0]*y[1]-t[1]*y[0];y=1/(v[0]*r[1]-v[1]*r[0]);v=[(b*r[0]-t*v[0])*y,(b*r[1]-t*v[1])*y];v.isIntersection=
|
||||
!0;return v},y;(function(y){y.clipLineString=function(b,e){var t=[];b=y.clipPolygon(b,e,!1);for(e=1;e<b.length;e++)b[e].isIntersection&&b[e-1].isIntersection&&(t.push(b.splice(0,e)),e=0),e===b.length-1&&t.push(b);return t};y.clipPolygon=function(v,t,y){void 0===y&&(y=!0);for(var z=t[t.length-1],r,p,h=v,a=0;a<t.length;a++){var d=h;v=t[a];h=[];r=y?d[d.length-1]:d[0];for(var g=0;g<d.length;g++)p=d[g],b(z,v,p)?(b(z,v,r)||h.push(e(z,v,r,p)),h.push(p)):b(z,v,r)&&h.push(e(z,v,r,p)),r=p;z=v}return h}})(y||
|
||||
(y={}));return y});I(e,"Maps/Projections/LambertConformalConic.js",[],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},e=Math.PI/180,y=Math.PI/2;return function(){function B(v){var t,B=(v.parallels||[]).map(function(b){return b*e}),z=B[0]||0;B=null!==(t=B[1])&&void 0!==t?t:z;t=Math.cos(z);"object"===typeof v.projectedBounds&&(this.projectedBounds=v.projectedBounds);v=z===B?Math.sin(z):Math.log(t/Math.cos(B))/Math.log(Math.tan((y+B)/2)/Math.tan((y+z)/2));1e-10>Math.abs(v)&&(v=1e-10*
|
||||
(b(v)||1));this.n=v;this.c=t*Math.pow(Math.tan((y+z)/2),v)/v}B.prototype.forward=function(b){var t=b[0]*e,v=this.c,z=this.n,r=this.projectedBounds;b=b[1]*e;0<v?b<-y+.000001&&(b=-y+.000001):b>y-.000001&&(b=y-.000001);var p=v/Math.pow(Math.tan((y+b)/2),z);b=p*Math.sin(z*t)*63.78137;t=63.78137*(v-p*Math.cos(z*t));v=[b,t];r&&(b<r.x1||b>r.x2||t<r.y1||t>r.y2)&&(v.outside=!0);return v};B.prototype.inverse=function(v){var t=v[0]/63.78137,B=this.c,z=this.n;v=B-v[1]/63.78137;var r=b(z)*Math.sqrt(t*t+v*v),p=
|
||||
Math.atan2(t,Math.abs(v))*b(v);0>v*z&&(p-=Math.PI*b(t)*b(v));return[p/z/e,(2*Math.atan(Math.pow(B/r,1/z))-y)/e]};return B}()});I(e,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}e.prototype.forward=function(e){var y=Math.PI/180,v=Math.asin(b*Math.sin(e[1]*y)),t=v*v,F=t*t*t;return[e[0]*y*Math.cos(v)*74.03120656864502/(b*(1.340264+3*-.081106*t+F*(7*
|
||||
.000893+.034164*t))),74.03120656864502*v*(1.340264+-.081106*t+F*(.000893+.003796*t))]};e.prototype.inverse=function(e){var y=e[0]/74.03120656864502;e=e[1]/74.03120656864502;var v=180/Math.PI,t=e,F;for(F=0;12>F;++F){var z=t*t;var r=z*z*z;var p=t*(1.340264+-.081106*z+r*(.000893+.003796*z))-e;z=1.340264+3*-.081106*z+r*(7*.000893+.034164*z);t-=p/=z;if(1e-9>Math.abs(p))break}z=t*t;return[v*b*y*(1.340264+3*-.081106*z+z*z*z*(7*.000893+.034164*z))/Math.cos(t),v*Math.asin(Math.sin(t)/b)]};return e}()});I(e,
|
||||
"Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,e=Math.PI/180;return function(){function y(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}y.prototype.forward=function(y){return[y[0]*e*63.78137,79.7267125*Math.log(Math.tan(b+.4*y[1]*e))]};y.prototype.inverse=function(y){return[y[0]/63.78137/e,2.5*(Math.atan(Math.exp(y[1]/63.78137*.8))-b)/e]};return y}()});I(e,"Maps/Projections/Orthographic.js",[],function(){var b=Math.PI/180;return function(){function e(){this.antimeridianCutting=
|
||||
!1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}e.prototype.forward=function(e){var y=e[0];e=e[1]*b;e=[Math.cos(e)*Math.sin(y*b)*63.78460826781007,63.78460826781007*Math.sin(e)];if(-90>y||90<y)e.outside=!0;return e};e.prototype.inverse=function(e){var y=e[0]/63.78460826781007;e=e[1]/63.78460826781007;var v=Math.sqrt(y*y+e*e),t=Math.asin(v),F=Math.sin(t);return[Math.atan2(y*F,v*Math.cos(t))/b,Math.asin(v&&e*F/v)/b]};return e}()});I(e,"Maps/Projections/WebMercator.js",
|
||||
[],function(){var b=Math.PI/180;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071};this.maxLatitude=85.0511287798}e.prototype.forward=function(e){var y=Math.sin(e[1]*b);y=[63.78137*e[0]*b,63.78137*Math.log((1+y)/(1-y))/2];85.0511287798<Math.abs(e[1])&&(y.outside=!0);return y};e.prototype.inverse=function(e){return[e[0]/(63.78137*b),(2*Math.atan(Math.exp(e[1]/63.78137))-Math.PI/2)/b]};return e}()});I(e,"Maps/Projections/ProjectionRegistry.js",
|
||||
[e["Maps/Projections/LambertConformalConic.js"],e["Maps/Projections/EqualEarth.js"],e["Maps/Projections/Miller.js"],e["Maps/Projections/Orthographic.js"],e["Maps/Projections/WebMercator.js"]],function(b,e,y,B,v){return{EqualEarth:e,LambertConformalConic:b,Miller:y,Orthographic:B,WebMercator:v}});I(e,"Maps/Projection.js",[e["Core/Geometry/PolygonClip.js"],e["Maps/Projections/ProjectionRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__spreadArray||function(b,a,d){if(d||2===arguments.length)for(var e=
|
||||
0,h=a.length,n;e<h;e++)!n&&e in a||(n||(n=Array.prototype.slice.call(a,0,e)),n[e]=a[e]);return b.concat(n||Array.prototype.slice.call(a))},v=b.clipLineString,t=b.clipPolygon,F=y.clamp,z=y.erase,r=2*Math.PI/360,p=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function b(a){void 0===a&&(a={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=a;var d=a.name,e=a.projectedBounds,h=a.rotation;this.rotator=h?this.getRotator(h):void 0;if(d=d?b.registry[d]:
|
||||
void 0)this.def=new d(a);var n=this.def,p=this.rotator;n&&(this.maxLatitude=n.maxLatitude||90,this.hasGeoProjection=!0);p&&n?(this.forward=function(a){return n.forward(p.forward(a))},this.inverse=function(a){return p.inverse(n.inverse(a))}):n?(this.forward=function(a){return n.forward(a)},this.inverse=function(a){return n.inverse(a)}):p&&(this.forward=p.forward,this.inverse=p.inverse);this.bounds="world"===e?n&&n.bounds:e}b.add=function(a,d){b.registry[a]=d};b.greatCircle=function(a,b,e){var d=Math.atan2,
|
||||
g=Math.cos,h=Math.sin,p=Math.sqrt,x=a[1]*r,t=a[0]*r,u=b[1]*r,l=b[0]*r,A=u-x,f=l-t;A=h(A/2)*h(A/2)+g(x)*g(u)*h(f/2)*h(f/2);A=2*d(p(A),p(1-A));var w=Math.round(6371E3*A/5E5);f=[];e&&f.push(a);if(1<w)for(w=a=1/w;.999>w;w+=a){var k=h((1-w)*A)/h(A),v=h(w*A)/h(A),c=k*g(x)*g(t)+v*g(u)*g(l),q=k*g(x)*h(t)+v*g(u)*h(l);k=k*h(x)+v*h(u);k=d(k,p(c*c+q*q));c=d(q,c);f.push([c/r,k/r])}e&&f.push(b);return f};b.insertGreatCircles=function(a){for(var d=a.length-1;d--;)if(10<Math.max(Math.abs(a[d][0]-a[d+1][0]),Math.abs(a[d][1]-
|
||||
a[d+1][1]))){var e=b.greatCircle(a[d],a[d+1]);e.length&&a.splice.apply(a,B([d+1,0],e,!1))}};b.toString=function(a){a=a||{};var b=a.rotation;return[a.name,b&&b.join(",")].join(";")};b.prototype.lineIntersectsBounds=function(a){var b=this.bounds||{},e=b.x2,h=b.y1,n=b.y2,p=function(a,b,d){var e=a[0];a=a[1];var g=b?0:1;if("number"===typeof d&&e[b]>=d!==a[b]>=d)return e=e[g]+(d-e[b])/(a[b]-e[b])*(a[g]-e[g]),b?[e,d]:[d,e]},r=a[0];if(b=p(a,0,b.x1))r=b,a[1]=b;else if(b=p(a,0,e))r=b,a[1]=b;if(b=p(a,1,h))r=
|
||||
b;else if(b=p(a,1,n))r=b;return r};b.prototype.getRotator=function(a){var b=a[0]*r,e=(a[1]||0)*r;a=(a[2]||0)*r;var h=Math.cos(e),n=Math.sin(e),p=Math.cos(a),t=Math.sin(a);if(0!==b||0!==e||0!==a)return{forward:function(a){var d=a[0]*r+b,e=a[1]*r,g=Math.cos(e);a=Math.cos(d)*g;d=Math.sin(d)*g;e=Math.sin(e);g=e*h+a*n;return[Math.atan2(d*p-g*t,a*h-e*n)/r,Math.asin(g*p+d*t)/r]},inverse:function(a){var d=a[0]*r,e=a[1]*r,g=Math.cos(e);a=Math.cos(d)*g;d=Math.sin(d)*g;e=Math.sin(e);g=e*p-d*t;return[(Math.atan2(d*
|
||||
p+e*t,a*h+g*n)-b)/r,Math.asin(g*h-a*n)/r]}}};b.prototype.forward=function(a){return a};b.prototype.inverse=function(a){return a};b.prototype.cutOnAntimeridian=function(a,d){var e=[],h=[a];a.forEach(function(b,g){var f=a[g-1];if(!g){if(!d)return;f=a[a.length-1]}var h=f[0],c=b[0];(-90>h||90<h)&&(-90>c||90<c)&&0<h!==0<c&&(c=F((180-(h+360)%360)/((c+360)%360-(h+360)%360),0,1),e.push({i:g,lat:f[1]+c*(b[1]-f[1]),direction:0>h?1:-1,previousLonLat:f,lonLat:b}))});if(e.length)if(d){if(1===e.length%2){var n=
|
||||
e.slice().sort(function(a,b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];z(e,n)}for(var r=e.length-2;0<=r;){var t=e[r].i,x=p(180+.000001*e[r].direction),v=p(180-.000001*e[r].direction);t=a.splice.apply(a,B([t,e[r+1].i-t],b.greatCircle([x,e[r].lat],[x,e[r+1].lat],!0),!1));t.push.apply(t,b.greatCircle([v,e[r+1].lat],[v,e[r].lat],!0));h.push(t);r-=2}if(n)for(x=0;x<h.length;x++){r=n.direction;var u=n.lat;v=h[x];t=v.indexOf(n.lonLat);if(-1<t){x=(0>u?-1:1)*this.maxLatitude;var l=p(180+.000001*r),A=p(180-
|
||||
.000001*r);u=b.greatCircle([l,u],[l,x],!0);for(l+=120*r;-180<l&&180>l;l+=120*r)u.push([l,x]);u.push.apply(u,b.greatCircle([A,x],[A,n.lat],!0));v.splice.apply(v,B([t,0],u,!1));break}}}else for(r=e.length;r--;)t=e[r].i,t=a.splice(t,a.length,[p(180+.000001*e[r].direction),e[r].lat]),t.unshift([p(180-.000001*e[r].direction),e[r].lat]),h.push(t);return h};b.prototype.path=function(a){var d=this,e=this.bounds,h=this.def,n=this.rotator,p=[],r="Polygon"===a.type||"MultiPolygon"===a.type,x=this.hasGeoProjection,
|
||||
z=!h||!1!==h.antimeridianCutting,u=z?n:void 0,l=z?h||this:this,A;e&&(A=[[e.x1,e.y1],[e.x2,e.y1],[e.x2,e.y2],[e.x1,e.y2]]);var f=function(a){a=a.map(function(a){if(z){u&&(a=u.forward(a));var b=a[0];.000001>Math.abs(b-180)&&(b=180>b?179.999999:180.000001);a=[b,a[1]]}return a});var f=[a];x&&(b.insertGreatCircles(a),z&&(f=d.cutOnAntimeridian(a,r)));f.forEach(function(a){if(!(2>a.length)){var c=!1,d=!1,f=function(a){c?p.push(["L",a[0],a[1]]):(p.push(["M",a[0],a[1]]),c=!0)},g=!1,h=!1,k=a.map(function(a){a=
|
||||
l.forward(a);a.outside?g=!0:h=!0;Infinity===a[1]?a[1]=1E10:-Infinity===a[1]&&(a[1]=-1E10);return a});if(z){r&&k.push(k[0]);if(g){if(!h)return;if(A)if(r)k=t(k,A);else if(e){v(k,A).forEach(function(a){c=!1;a.forEach(f)});return}}k.forEach(f)}else for(var m=0;m<k.length;m++){var n=a[m],u=k[m];if(u.outside)d=!0;else{if(r&&!w){var w=n;a.push(n);k.push(u)}d&&D&&(r&&x?b.greatCircle(D,n).forEach(function(a){return f(l.forward(a))}):c=!1);f(u);var D=n;d=!1}}}})};"LineString"===a.type?f(a.coordinates):"MultiLineString"===
|
||||
a.type?a.coordinates.forEach(function(a){return f(a)}):"Polygon"===a.type?(a.coordinates.forEach(function(a){return f(a)}),p.length&&p.push(["Z"])):"MultiPolygon"===a.type&&(a.coordinates.forEach(function(a){a.forEach(function(a){return f(a)})}),p.length&&p.push(["Z"]));return p};b.registry=e;return b}()});I(e,"Maps/MapView.js",[e["Maps/MapViewOptionsDefault.js"],e["Maps/MapViewInsetsOptionsDefault.js"],e["Extensions/GeoJSON.js"],e["Core/Chart/MapChart.js"],e["Maps/MapUtilities.js"],e["Maps/Projection.js"],
|
||||
e["Core/Utilities.js"]],function(b,e,y,B,v,t,F){var z=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),r=this&&this.__spreadArray||function(a,b,d){if(d||2===arguments.length)for(var c=0,f=b.length,e;c<
|
||||
f;c++)!e&&c in b||(e||(e=Array.prototype.slice.call(b,0,c)),e[c]=b[c]);return a.concat(e||Array.prototype.slice.call(b))},p=y.topo2geo,h=B.maps,a=v.boundsFromPath,d=v.pointInPolygon,g=F.addEvent,m=F.clamp,n=F.fireEvent,G=F.isArray,J=F.isNumber,x=F.isObject,C=F.isString,u=F.merge,l=F.pick,A=F.relativeLength,f=function(a,b){return Math.log(400.979322/Math.max((a.x2-a.x1)/(b.width/256),(a.y2-a.y1)/(b.height/256)))/Math.log(2)},w=function(){function a(c,d){var f=this;this.insets=[];this.padding=[0,0,
|
||||
0,0];this.eventsToUnbind=[];var e;if(!(this instanceof k)){var h=r([c.options.chart.map],(c.options.series||[]).map(function(a){return a.mapData}),!0).map(function(a){return f.getGeoMap(a)}),l=[];h.forEach(function(a){a&&(e||(e=a["hc-recommended-mapview"]),a.bbox&&(a=a.bbox,l.push({x1:a[0],y1:a[1],x2:a[2],y2:a[3]})))});var m=l.length&&a.compositeBounds(l);if(m){var q=m.x1;var n=m.y1,p=m.x2;m=m.y2;q=180<p-q&&90<m-n?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[n,m],rotation:[-(q+p)/
|
||||
2]}}this.geoMap=h[0]}this.userOptions=d||{};h=u(b,{projection:q},e,d);m=e&&e.insets;d=d&&d.insets;m&&d&&(h.insets=a.mergeInsets(m,d));this.chart=c;this.center=h.center;this.options=h;this.projection=new t(h.projection);this.playingField=c.plotBox;this.zoom=h.zoom||0;this.createInsets();this.eventsToUnbind.push(g(c,"afterSetChartSize",function(){f.playingField=f.getField();if(void 0===f.minZoom||f.minZoom===f.zoom)f.fitToBounds(void 0,void 0,!1),!f.chart.hasRendered&&J(f.userOptions.zoom)&&(f.zoom=
|
||||
f.userOptions.zoom),f.userOptions.center&&u(!0,f.center,f.userOptions.center)}));this.setUpEvents()}a.mergeInsets=function(a,b){var c=function(a){var b={};a.forEach(function(a,c){b[a&&a.id||"i".concat(c)]=a});return b},d=u(c(a),c(b));return Object.keys(d).map(function(a){return d[a]})};a.prototype.createInsets=function(){var a=this,b=this.options,d=b.insets;d&&d.forEach(function(c){c=new k(a,u(b.insetOptions,c));a.insets.push(c)})};a.prototype.fitToBounds=function(a,b,d,e){void 0===d&&(d=!0);var c=
|
||||
a||this.getProjectedBounds();if(c){var g=l(b,a?0:this.options.padding);b=this.getField(!1);g=G(g)?g:[g,g,g,g];this.padding=[A(g[0],b.height),A(g[1],b.width),A(g[2],b.height),A(g[3],b.width)];this.playingField=this.getField();b=f(c,this.playingField);a||(this.minZoom=b);a=this.projection.inverse([(c.x2+c.x1)/2,(c.y2+c.y1)/2]);this.setView(a,b,d,e)}};a.prototype.getField=function(a){void 0===a&&(a=!0);a=a?this.padding:[0,0,0,0];return{x:a[3],y:a[0],width:this.chart.plotWidth-a[1]-a[3],height:this.chart.plotHeight-
|
||||
a[0]-a[2]}};a.prototype.getGeoMap=function(a){if(C(a))return h[a];if(x(a,!0)){if("FeatureCollection"===a.type)return a;if("Topology"===a.type)return p(a)}};a.prototype.getMapBBox=function(){var a=this.getProjectedBounds(),b=this.getScale();if(a){var d=this.padding,f=this.projectedUnitsToPixels({x:a.x1,y:a.y2});return{width:(a.x2-a.x1)*b+d[1]+d[3],height:(a.y2-a.y1)*b+d[0]+d[2],x:f.x-d[3],y:f.y-d[0]}}};a.prototype.getProjectedBounds=function(){var b=this.chart.series.reduce(function(a,b){var c=b.getProjectedBounds&&
|
||||
b.getProjectedBounds();c&&!1!==b.options.affectsMapView&&a.push(c);return a},[]);return this.projection.bounds||a.compositeBounds(b)};a.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};a.prototype.getSVGTransform=function(){var a=this.playingField,b=a.x,d=a.y,f=a.width;a=a.height;var e=this.projection.forward(this.center),g=this.projection.hasCoordinates?-1:1,h=this.getScale();g*=h;return{scaleX:h,scaleY:g,translateX:b+f/2-e[0]*h,translateY:d+a/2-e[1]*g}};a.prototype.lonLatToPixels=
|
||||
function(a){if(a=this.lonLatToProjectedUnits(a))return this.projectedUnitsToPixels(a)};a.prototype.lonLatToProjectedUnits=function(a){var b=this.chart,c=b.mapTransforms;if(c){for(var f in c)if(Object.hasOwnProperty.call(c,f)&&c[f].hitZone){var e=b.transformFromLatLon(a,c[f]);if(e&&d(e,c[f].hitZone.coordinates[0]))return e}return b.transformFromLatLon(a,c["default"])}c=0;for(f=this.insets;c<f.length;c++)if(b=f[c],b.options.geoBounds&&d({x:a.lon,y:a.lat},b.options.geoBounds.coordinates[0]))return a=
|
||||
b.projection.forward([a.lon,a.lat]),a=b.projectedUnitsToPixels({x:a[0],y:a[1]}),this.pixelsToProjectedUnits(a);a=this.projection.forward([a.lon,a.lat]);if(!a.outside)return{x:a[0],y:a[1]}};a.prototype.projectedUnitsToLonLat=function(a){var b=this.chart,c=b.mapTransforms;if(c){for(var f in c)if(Object.hasOwnProperty.call(c,f)&&c[f].hitZone&&d(a,c[f].hitZone.coordinates[0]))return b.transformToLatLon(a,c[f]);return b.transformToLatLon(a,c["default"])}c=this.projectedUnitsToPixels(a);f=0;for(var e=this.insets;f<
|
||||
e.length;f++)if(b=e[f],b.hitZone&&d(c,b.hitZone.coordinates[0]))return a=b.pixelsToProjectedUnits(c),a=b.projection.inverse([a.x,a.y]),{lon:a[0],lat:a[1]};a=this.projection.inverse([a.x,a.y]);return{lon:a[0],lat:a[1]}};a.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};a.prototype.setView=function(a,b,d,f){void 0===d&&(d=!0);a&&(this.center=a);"number"===typeof b&&("number"===typeof this.minZoom&&(b=Math.max(b,this.minZoom)),
|
||||
"number"===typeof this.options.maxZoom&&(b=Math.min(b,this.options.maxZoom)),J(b)&&(this.zoom=b));var c=this.getProjectedBounds();if(c){a=this.projection.forward(this.center);var e=this.playingField;b=e.x;var g=e.y,h=e.width;e=e.height;var k=this.getScale(),m=this.projectedUnitsToPixels({x:c.x1,y:c.y1}),l=this.projectedUnitsToPixels({x:c.x2,y:c.y2});c=[(c.x1+c.x2)/2,(c.y1+c.y2)/2];var q=m.x,p=l.y;l=l.x;m=m.y;l-q<h?a[0]=c[0]:q<b&&l<b+h?a[0]+=Math.max(q-b,l-h-b)/k:l>b+h&&q>b&&(a[0]+=Math.min(l-h-b,
|
||||
q-b)/k);m-p<e?a[1]=c[1]:p<g&&m<g+e?a[1]-=Math.max(p-g,m-e-g)/k:m>g+e&&p>g&&(a[1]-=Math.min(m-e-g,p-g)/k);this.center=this.projection.inverse(a);this.insets.forEach(function(a){a.options.field&&(a.hitZone=a.getHitZone(),a.playingField=a.getField())});this.render()}n(this,"afterSetView");d&&this.redraw(f)};a.prototype.projectedUnitsToPixels=function(a){var b=this.getScale(),c=this.projection.forward(this.center),d=this.playingField;return{x:d.x+d.width/2-b*(c[0]-a.x),y:d.y+d.height/2+b*(c[1]-a.y)}};
|
||||
a.prototype.pixelsToLonLat=function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))};a.prototype.pixelsToProjectedUnits=function(a){var b=a.x;a=a.y;var c=this.getScale(),d=this.projection.forward(this.center),f=this.playingField;return{x:d[0]+(b-(f.x+f.width/2))/c,y:d[1]-(a-(f.y+f.height/2))/c}};a.prototype.setUpEvents=function(){var a=this,b=this.chart,d,e,h,k=function(c){var g=b.pointer.pinchDown,k=a.projection,l=b.mouseDownX,n=b.mouseDownY;1===g.length&&(l=g[0].chartX,n=g[0].chartY);
|
||||
if("number"===typeof l&&"number"===typeof n){var q=""+l+",".concat(n),p=c.originalEvent;g=p.chartX;p=p.chartY;q!==e&&(e=q,d=a.projection.forward(a.center),h=(a.projection.options.rotation||[0,0]).slice());q=(q=k.def&&k.def.bounds)&&f(q,a.playingField)||-Infinity;"Orthographic"===k.options.name&&(a.minZoom||Infinity)<1.1*q?(k=440/(a.getScale()*Math.min(b.plotWidth,b.plotHeight)),h&&(l=(l-g)*k-h[0],n=m(-h[1]-(n-p)*k,-80,80),g=a.zoom,a.update({projection:{rotation:[-l,-n]}},!1),a.zoom=g,b.redraw(!1))):
|
||||
(k=a.getScale(),n=a.projection.inverse([d[0]+(l-g)/k,d[1]-(n-p)/k]),a.setView(n,void 0,!0,!1));c.preventDefault()}};g(b,"pan",k);g(b,"touchpan",k);g(b,"selection",function(c){if(c.resetSelection)a.zoomBy();else{var d=c.x-b.plotLeft,f=c.y-b.plotTop,e=a.pixelsToProjectedUnits({x:d,y:f}),g=e.y;e=e.x;d=a.pixelsToProjectedUnits({x:d+c.width,y:f+c.height});a.fitToBounds({x1:e,y1:g,x2:d.x,y2:d.y},void 0,!0,c.originalEvent.touches?!1:void 0);/^touch/.test(c.originalEvent.type)||b.showResetZoom();c.preventDefault()}})};
|
||||
a.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};a.prototype.update=function(a,b,d){void 0===b&&(b=!0);var c=a.projection;c=c&&t.toString(c)!==t.toString(this.options.projection);var f=!1;u(!0,this.userOptions,a);u(!0,this.options,a);"insets"in a&&(this.insets.forEach(function(a){return a.destroy()}),this.insets.length=0,f=!0);if(c||f)this.chart.series.forEach(function(a){var b=a.transformGroups;a.clearBounds&&a.clearBounds();a.isDirty=
|
||||
!0;a.isDirtyData=!0;if(f&&b)for(;1<b.length;)(a=b.pop())&&a.destroy()}),c&&(this.projection=new t(this.options.projection)),f&&this.createInsets(),a.center||J(a.zoom)||this.fitToBounds(void 0,void 0,!1);(a.center||J(a.zoom))&&this.setView(this.options.center,a.zoom,!1);b&&this.chart.redraw(d)};a.prototype.zoomBy=function(a,b,d,f){var c=this.chart,e=this.projection.forward(this.center);b=b?this.projection.forward(b):[];var g=b[0],h=b[1];"number"===typeof a?(a=this.zoom+a,b=void 0,d&&(g=d[0],h=d[1],
|
||||
d=this.getScale(),g=g-c.plotLeft-c.plotWidth/2,c=h-c.plotTop-c.plotHeight/2,g=e[0]+g/d,h=e[1]+c/d),"number"===typeof g&&"number"===typeof h&&(d=1-Math.pow(2,this.zoom)/Math.pow(2,a),g=e[0]-g,c=e[1]-h,e[0]-=g*d,e[1]+=c*d,b=this.projection.inverse(e)),this.setView(b,a,void 0,f)):this.fitToBounds(void 0,void 0,void 0,f)};a.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);
|
||||
return a},u(a[0]))};return a}(),k=function(b){function c(c,d){var f=b.call(this,c.chart,d)||this;f.id=d.id;f.mapView=c;f.options=u(e,d);f.allBounds=[];f.options.geoBounds&&(c=c.projection.path(f.options.geoBounds),f.geoBoundsProjectedBox=a(c),f.geoBoundsProjectedPolygon=c.map(function(a){return[a[1]||0,a[2]||0]}));return f}z(c,b);c.prototype.getField=function(a){void 0===a&&(a=!0);var c=this.hitZone;if(c){var d=a?this.padding:[0,0,0,0];c=c.coordinates[0];var f=c.map(function(a){return a[0]}),e=c.map(function(a){return a[1]});
|
||||
c=Math.min.apply(0,f)+d[3];f=Math.max.apply(0,f)-d[1];var g=Math.min.apply(0,e)+d[0];d=Math.max.apply(0,e)-d[2];if(J(c)&&J(g))return{x:c,y:g,width:f-c,height:d-g}}return b.prototype.getField.call(this,a)};c.prototype.getHitZone=function(){var a=this.chart,b=this.mapView,c=this.options,d=(c.field||{}).coordinates;if(d){d=d[0];if("percent"===c.units){var f="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||u(a.plotBox,{x:0,y:0});d=d.map(function(a){return[A(""+a[0]+"%",f.width,f.x),A(""+a[1]+"%",f.height,
|
||||
f.y)]})}return{type:"Polygon",coordinates:[d]}}};c.prototype.getProjectedBounds=function(){return w.compositeBounds(this.allBounds)};c.prototype.isInside=function(a){var b=this.geoBoundsProjectedBox,c=this.geoBoundsProjectedPolygon;return!!(b&&a.x>=b.x1&&a.x<=b.x2&&a.y>=b.y1&&a.y<=b.y2&&c&&d(a,c))};c.prototype.render=function(){var a=this.chart,b=this.mapView,c=this.options,d=c.borderPath||c.field;if(d&&b.group){var f=!0;this.border||(this.border=a.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),
|
||||
f=!1);a.styledMode||this.border.attr({stroke:c.borderColor,"stroke-width":c.borderWidth});var e=Math.round(this.border.strokeWidth())%2/2,g="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||b.playingField;b=(d.coordinates||[]).reduce(function(b,d){return d.reduce(function(b,d,f){var h=d[0];d=d[1];"percent"===c.units&&(h=a.plotLeft+A(""+h+"%",g.width,g.x),d=a.plotTop+A(""+d+"%",g.height,g.y));h=Math.floor(h)+e;d=Math.floor(d)+e;b.push(0===f?["M",h,d]:["L",h,d]);return b},b)},[]);this.border[f?"animate":
|
||||
"attr"]({d:b})}};c.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(a){return a()})};c.prototype.setUpEvents=function(){};return c}(w);g(B,"afterInit",function(){this.mapView=new w(this,this.options.mapView)});return w});I(e,"Series/Map/MapSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Series/ColorMapComposition.js"],e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Chart/MapChart.js"],
|
||||
e["Series/Map/MapPoint.js"],e["Maps/MapView.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F,z,r,p,h,a){var d=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=
|
||||
null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),g=b.animObject;b=B.noop;var m=t.splitPath;t=p.seriesTypes;var n=t.column,G=t.scatter;t=a.extend;var J=a.find,x=a.fireEvent,C=a.getNestedProperty,u=a.isArray,l=a.isNumber,A=a.isObject,f=a.merge,w=a.objectEach,k=a.pick,D=a.splat;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.processedData=[];return b}d(b,a);b.prototype.animate=
|
||||
function(a){var b=this.chart,c=this.group,d=g(this.options.animation);b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.001,scaleY:.001}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1},d))};b.prototype.animateDrilldown=function(a){var b=this.chart,c=this.group;b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(c.animate({translateX:b.plotLeft,
|
||||
translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),b.drilldown&&b.drilldown.fadeInGroup(this.dataLabelsGroup)))};b.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};b.prototype.animateDrillupTo=function(a){n.prototype.animateDrillupTo.call(this,a)};b.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;
|
||||
delete a.insetIndex;delete a.projectedPath});delete this.bounds};b.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};b.prototype.drawMapDataLabels=function(){r.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=function(){var a=this,b=this,c=this.chart,d=this.group,f=this.transformGroups,e=void 0===f?[]:f,g=c.mapView,h=c.renderer;g&&(this.transformGroups=
|
||||
e,e[0]||(e[0]=h.g().add(d)),g.insets.forEach(function(a,b){e[b+1]||e.push(h.g().add(d))}),this.doFullTranslate()&&(this.points.forEach(function(b){var d=b.graphic,f=b.shapeArgs;b.group=e["number"===typeof b.insetIndex?b.insetIndex+1:0];d&&d.parentGroup!==b.group&&d.add(b.group);f&&c.hasRendered&&!c.styledMode&&(f.fill=a.pointAttribs(b,b.state).fill)}),n.prototype.drawPoints.apply(this),this.points.forEach(function(d){var f=d.graphic;if(f){var e=f.animate,g="";d.name&&(g+="highcharts-name-"+d.name.replace(/ /g,
|
||||
"-").toLowerCase());d.properties&&d.properties["hc-key"]&&(g+=" highcharts-key-"+d.properties["hc-key"].toString().toLowerCase());g&&f.addClass(g);c.styledMode&&f.css(a.pointAttribs(d,d.selected&&"select"||void 0));f.animate=function(a,d,g){var h=!1;if(a["stroke-width"]){var l=k(b.getStrokeWidth(b.options),1)/(c.mapView&&c.mapView.getScale()||1);"inherit"===f["stroke-width"]&&(f["stroke-width"]=l);"inherit"===a["stroke-width"]&&(a["stroke-width"]=l,h=!0)}return e.call(f,a,d,h?function(){f.attr({"stroke-width":"inherit"});
|
||||
g&&g.apply(this,arguments)}:g)}}})),e.forEach(function(b,d){var f=(0===d?g:g.insets[d-1]).getSVGTransform(),e=k(a.getStrokeWidth(a.options),1),l=f.scaleX,m=0<f.scaleY?1:-1;if(h.globalAnimation&&c.hasRendered){var n=Number(b.attr("translateX")),p=Number(b.attr("translateY")),q=Number(b.attr("scaleX"));b.attr({animator:0}).animate({animator:1},{step:function(a,c){a=q+(l-q)*c.pos;b.attr({translateX:n+(f.translateX-n)*c.pos,translateY:p+(f.translateY-p)*c.pos,scaleX:a,scaleY:a*m});b.element.setAttribute("stroke-width",
|
||||
e/a)}})}else b.attr(f),b.element.setAttribute("stroke-width",e/l)}),this.drawMapDataLabels())};b.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var a=this.chart.mapView,b=a.insets,c=a.projection,d=[];(this.points||[]).forEach(function(a){if(a.path||a.geometry){"string"===typeof a.path?a.path=m(a.path):u(a.path)&&"M"===a.path[0]&&(a.path=h.prototype.pathToSegments(a.path));if(!a.bounds){var f=a.getProjectedBounds(c);if(f){a.labelrank=k(a.labelrank,(f.x2-f.x1)*(f.y2-f.y1));
|
||||
var e=f.midX,g=f.midY;if(b&&l(e)&&l(g)){var n=J(b,function(a){return a.isInside({x:e,y:g})});n&&(delete a.projectedPath,(f=a.getProjectedBounds(n.projection))&&n.allBounds.push(f),a.insetIndex=b.indexOf(n))}a.bounds=f}}a.bounds&&void 0===a.insetIndex&&d.push(a.bounds)}});this.bounds=z.compositeBounds(d)}return this.bounds};b.prototype.getStrokeWidth=function(a){var b=this.pointAttrToOptions;return a[b&&b["stroke-width"]||"borderWidth"]};b.prototype.hasData=function(){return!!this.processedXData.length};
|
||||
b.prototype.pointAttribs=function(a,b){var c=a.series.chart,d=c.mapView;c=c.styledMode?this.colorAttribs(a):n.prototype.pointAttribs.call(this,a,b);var e=this.getStrokeWidth(a.options);b&&(a=f(this.options.states[b],a.options.states&&a.options.states[b]||{}),e=this.getStrokeWidth(a));e&&d&&(e/=d.getScale());a=this.getStrokeWidth(this.options);c.dashstyle&&d&&l(a)&&(e=a/d.getScale());c["stroke-width"]=k(e,"inherit");return c};b.prototype.updateData=function(){return this.processedData?!1:a.prototype.updateData.apply(this,
|
||||
arguments)};b.prototype.setData=function(b,c,d,f){void 0===c&&(c=!0);delete this.bounds;a.prototype.setData.call(this,b,!1,void 0,f);this.processData();this.generatePoints();c&&this.chart.redraw(d)};b.prototype.processData=function(){var a=this.options,b=a.data,c=this.chart.options.chart,d=this.joinBy,e=a.keys||this.pointArrayMap,g=[],h={},k=this.chart.mapView;k=k&&(A(a.mapData,!0)?k.getGeoMap(a.mapData):k.geoMap);var m=this.chart.mapTransforms;(this.chart.mapTransforms=m=c.mapTransforms||k&&k["hc-transform"]||
|
||||
m)&&w(m,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(u(a.mapData))var n=a.mapData;else k&&"FeatureCollection"===k.type&&(this.mapTitle=k.title,n=B.geojson(k,this.type,this));var p=this.processedData=[];b&&b.forEach(function(c,f){var g=0;if(l(c))p[f]={value:c};else if(u(c)){p[f]={};!a.keys&&c.length>e.length&&"string"===typeof c[0]&&(p[f]["hc-key"]=c[0],++g);for(var h=0;h<e.length;++h,++g)e[h]&&"undefined"!==typeof c[g]&&(0<e[h].indexOf(".")?F.prototype.setNestedProperty(p[f],
|
||||
c[g],e[h]):p[f][e[h]]=c[g])}else p[f]=b[f];d&&"_i"===d[0]&&(p[f]._i=f)});if(n){this.mapData=n;this.mapMap={};for(m=0;m<n.length;m++)c=n[m],k=c.properties,c._i=m,d[0]&&k&&k[d[0]]&&(c[d[0]]=k[d[0]]),h[c[d[0]]]=c;this.mapMap=h;if(d[1]){var q=d[1];p.forEach(function(a){a=C(q,a);h[a]&&g.push(h[a])})}if(a.allAreas){if(d[1]){var r=d[1];p.forEach(function(a){g.push(C(r,a))})}var t="|"+g.map(function(a){return a&&a[d[0]]}).join("|")+"|";n.forEach(function(a){d[0]&&-1!==t.indexOf("|"+a[d[0]]+"|")||p.push(f(a,
|
||||
{value:null}))})}}this.processedXData=Array(p.length)};b.prototype.setOptions=function(a){a=r.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=D(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this.doFullTranslate(),b=this.chart.mapView,c=b&&b.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!b||b.userOptions.center||l(b.userOptions.zoom)?this.getProjectedBounds():
|
||||
b.fitToBounds(void 0,void 0,!1));if(b){var d=b.getSVGTransform();this.points.forEach(function(f){var e=l(f.insetIndex)&&b.insets[f.insetIndex].getSVGTransform()||d;e&&f.bounds&&l(f.bounds.midX)&&l(f.bounds.midY)&&(f.plotX=f.bounds.midX*e.scaleX+e.translateX,f.plotY=f.bounds.midY*e.scaleY+e.translateY);a&&(f.shapeType="path",f.shapeArgs={d:F.getProjectedPath(f,c)})})}x(this,"afterTranslate")};b.defaultOptions=f(G.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var a=
|
||||
this.series.chart.numberFormatter,b=this.point.value;return l(b)?a(b,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return b}(G);t(a.prototype,{type:"map",axisTypes:e.seriesMembers.axisTypes,
|
||||
colorAttribs:e.seriesMembers.colorAttribs,colorKey:e.seriesMembers.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:v.drawRectangle,forceDL:!0,getCenter:y.getCenter,getExtremesFromAll:!0,getSymbol:b,isCartesian:!1,parallelArrays:e.seriesMembers.parallelArrays,pointArrayMap:e.seriesMembers.pointArrayMap,pointClass:F,preserveAspectRatio:!0,searchPoint:b,trackerGroups:e.seriesMembers.trackerGroups,useMapGeometry:!0});e.compose(a);p.registerSeriesType("map",a);"";return a});I(e,"Series/MapLine/MapLineSeries.js",
|
||||
[e["Series/Map/MapSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,p){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(e,p)};return function(e,p){function h(){this.constructor=e}b(e,p);e.prototype=null===p?Object.create(p):(h.prototype=p.prototype,new h)}}(),v=e.series,t=y.extend,F=y.merge;y=function(e){function r(){var b=
|
||||
null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}B(r,e);r.prototype.pointAttribs=function(e,h){e=b.prototype.pointAttribs.call(this,e,h);e.fill=this.options.fillColor;return e};r.defaultOptions=F(b.defaultOptions,{lineWidth:1,fillColor:"none"});return r}(b);t(y.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:v.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});e.registerSeriesType("mapline",y);"";
|
||||
return y});I(e,"Series/MapPoint/MapPointPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var y=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var p in e)e.hasOwnProperty(p)&&(b[p]=e[p])};return b(e,v)};return function(e,v){function t(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}(),B=e.isNumber;return function(b){function e(){var e=
|
||||
null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.series=void 0;return e}y(e,b);e.prototype.isValid=function(){return!!(this.options.geometry||B(this.x)&&B(this.y)||B(this.options.lon)&&B(this.options.lat))};return e}(b.seriesTypes.scatter.prototype.pointClass)});I(e,"Series/MapPoint/MapPointSeries.js",[e["Core/Globals.js"],e["Series/MapPoint/MapPointPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(a,
|
||||
d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function e(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}();b=b.noop;var t=y.seriesTypes.scatter,F=B.extend,z=B.fireEvent,r=B.isNumber,p=B.merge;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.options=void 0;
|
||||
a.points=void 0;return a}v(a,b);a.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};a.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var d=a.geometry,e=a.lon;a=a.lat;d=d&&"Point"===d.type&&d.coordinates;r(e)&&r(a)&&(d=[e,a]);if(d)return b.lonLatToProjectedUnits({lon:d[0],lat:d[1]})}};a.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();
|
||||
this.generatePoints();this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds());if(b){var e=b.projection.hasCoordinates;this.points.forEach(function(d){var g=d.x;g=void 0===g?void 0:g;var h=d.y;h=void 0===h?void 0:h;var m=a.projectPoint(d.options);m?(g=m.x,h=m.y):d.bounds&&(g=d.bounds.midX,h=d.bounds.midY);r(g)&&r(h)?(g=b.projectedUnitsToPixels({x:g,y:h}),d.plotX=g.x,d.plotY=e?g.y:a.chart.plotHeight-g.y):d.y=d.plotX=d.plotY=void 0;d.isInside=a.isPointInside(d);d.zone=
|
||||
a.zones.length?d.getZone():void 0})}z(this,"afterTranslate")};a.defaultOptions=p(t.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return a}(t);F(B.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:e,searchPoint:b,useMapGeometry:!0});y.registerSeriesType("mappoint",B);"";return B});I(e,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,
|
||||
className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});I(e,"Series/Bubble/BubbleLegendItem.js",[e["Core/Color/Color.js"],e["Core/FormatUtilities.js"],
|
||||
e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=b.parse,t=y.noop,F=B.arrayMax,z=B.arrayMin,r=B.isNumber,p=B.merge,h=B.pick,a=B.stableSort;b=function(){function b(a,b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=t;this.init(a,b)}b.prototype.init=function(a,b){this.options=a;this.visible=
|
||||
!0;this.chart=b.chart;this.legend=b};b.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};b.prototype.drawLegendSymbol=function(b){var d=this.chart,e=this.options,g=h(b.options.itemDistance,20),p=e.ranges,t=e.connectorDistance;this.fontMetrics=d.renderer.fontMetrics(e.labels.style.fontSize);p&&p.length&&r(p[0].value)?(a(p,function(a,b){return b.value-a.value}),this.ranges=p,this.setOptions(),this.render(),b=this.getMaxLabelSize(),p=this.ranges[0].radius,d=2*p,t=t-p+b.width,
|
||||
t=0<t?t:0,this.maxLabel=b,this.movementX="left"===e.labels.align?t:0,this.legendItemWidth=d+t+g,this.legendItemHeight=d+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};b.prototype.setOptions=function(){var a=this.ranges,b=this.options,d=this.chart.series[b.seriesIndex],e=this.legend.baseline,r={zIndex:b.zIndex,"stroke-width":b.borderWidth},t={zIndex:b.zIndex,"stroke-width":b.connectorWidth},z={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},u=d.options.marker.fillOpacity,
|
||||
l=this.chart.styledMode;a.forEach(function(g,f){l||(r.stroke=h(g.borderColor,b.borderColor,d.color),r.fill=h(g.color,b.color,1!==u?v(d.color).setOpacity(u).get("rgba"):d.color),t.stroke=h(g.connectorColor,b.connectorColor,d.color));a[f].radius=this.getRangeRadius(g.value);a[f]=p(a[f],{center:a[0].radius-a[f].radius+e});l||p(!0,a[f],{bubbleAttribs:p(r),connectorAttribs:p(t),labelAttribs:z})},this)};b.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,
|
||||
b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};b.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);
|
||||
this.hideOverlappingLabels()};b.prototype.renderRange=function(a){var b=this.options,d=b.labels,e=this.chart,g=e.series[b.seriesIndex],h=e.renderer,p=this.symbols;e=p.labels;var u=a.center,l=Math.abs(a.radius),r=b.connectorDistance||0,f=d.align,t=b.connectorWidth,k=this.ranges[0].radius||0,v=u-l-b.borderWidth/2+t/2,c=this.fontMetrics;c=c.f/2-(c.h-c.f)/2;var q=h.styledMode;r=this.legend.options.rtl||"left"===f?-r:r;"center"===f&&(r=0,b.connectorDistance=0,a.labelAttribs.align="center");f=v+b.labels.y;
|
||||
var z=k+r+b.labels.x;p.bubbleItems.push(h.circle(k,u+((v%1?1:.5)-(t%2?0:.5)),l).attr(q?{}:a.bubbleAttribs).addClass((q?"highcharts-color-"+g.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));p.connectors.push(h.path(h.crispLine([["M",k,v],["L",k+r,v]],b.connectorWidth)).attr(q?{}:a.connectorAttribs).addClass((q?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));
|
||||
a=h.text(this.formatLabel(a),z,f+c).attr(q?{}:a.labelAttribs).css(q?{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:z,y:f+c}};b.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};b.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var g=this.chart.numberFormatter;return b?
|
||||
e.format(b,a):d?d.call(a):g(a.value,1)};b.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};b.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,d,e=Number.MAX_VALUE,t=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&
|
||||
(d=a.zData.filter(r),d.length&&(e=h(a.options.zMin,Math.min(e,Math.max(z(d),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),t=h(a.options.zMax,Math.max(t,F(d)))))});var x=e===t?[{value:t}]:[{value:e},{value:(e+t)/2},{value:t,autoRanges:!0}];b.length&&b[0].radius&&x.reverse();x.forEach(function(a,d){b&&b[d]&&(x[d]=p(b[d],a))});return x};b.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,d=a.legend.options,e=d.floating,h=(d="horizontal"===d.layout)?
|
||||
a.legend.lastLineHeight:0,p=a.plotSizeX,r=a.plotSizeY,u=a.series[this.options.seriesIndex],l=u.getPxExtremes();a=Math.ceil(l.minPxSize);l=Math.ceil(l.maxPxSize);var t=Math.min(r,p);u=u.options.maxSize;if(e||!/%$/.test(u))b=l;else if(u=parseFloat(u),b=(t+h-b.h/2)*u/100/(u/100+1),d&&r-b>=p||!d&&p-b>=r)b=l;return[a,Math.ceil(b)]};b.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};b.prototype.correctSizes=function(){var a=this.legend,
|
||||
b=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return b}();"";return b});I(e,"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e,y,B){function v(a,b,e){var g=this.legend,h=0<=t(this);if(g&&g.options.enabled&&g.bubbleLegend&&
|
||||
g.options.bubbleLegend.autoRanges&&h){var m=g.bubbleLegend.options;h=g.bubbleLegend.predictBubbleSizes();g.bubbleLegend.updateRanges(h[0],h[1]);m.placed||(g.group.placed=!1,g.allItems.forEach(function(a){a.legendGroup.translateY=null}));g.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();m.placed||(a.setScale(),a.updateNames(),d(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});m.placed=!0;this.getMargins();a.call(this,b,e);g.bubbleLegend.correctSizes();p(g,F(g))}else a.call(this,
|
||||
b,e),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),p(g,F(g)))}function t(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1}function F(a){a=a.allItems;var b=[],d=a.length,e,g=0;for(e=0;e<d;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[d-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var h=b[b.length-1];for(g;g<=e;g++)a[g].itemHeight>h.height&&(h.height=a[g].itemHeight);
|
||||
h.step=e}return b}function z(a){var b=this.bubbleLegend,d=this.options,g=d.bubbleLegend,h=t(this.chart);b&&b.ranges&&b.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(b));0<=h&&d.enabled&&g.enabled&&(g.seriesIndex=h,this.bubbleLegend=new e(g,this),this.bubbleLegend.addToLegend(a.allItems))}function r(){var a=this.chart,b=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=t(a),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),
|
||||
d.bubbleLegend.visible=a),this.visible=b)}function p(a,b){var d=a.options.rtl,e,g,h,l=0;a.allItems.forEach(function(a,f){e=a.legendGroup.translateX;g=a._legendItemPos[1];if((h=a.movementX)||d&&a.ranges)h=d?e-a.options.maxSize/2:e+h,a.legendGroup.attr({translateX:h});f>b[l].step&&l++;a.legendGroup.attr({translateY:Math.round(g+b[l].height/2)});a._legendItemPos[1]=g+b[l].height/2})}var h=y.setOptions,a=B.addEvent,d=B.objectEach,g=B.wrap,m=[];return{compose:function(d,e,p){-1===m.indexOf(d)&&(m.push(d),
|
||||
h({legend:{bubbleLegend:b}}),g(d.prototype,"drawChartBox",v));-1===m.indexOf(e)&&(m.push(e),a(e,"afterGetAllItems",z));-1===m.indexOf(p)&&(m.push(p),a(p,"legendItemClick",r))}}});I(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var p in e)e.hasOwnProperty(p)&&
|
||||
(b[p]=e[p])};return b(e,v)};return function(e,v){function t(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}();y=y.extend;e=function(e){function t(){var b=null!==e&&e.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}B(t,e);t.prototype.haloPath=function(e){return b.prototype.haloPath.call(this,0===e?0:(this.marker?this.marker.radius||0:0)+e)};return t}(e.seriesTypes.scatter.prototype.pointClass);y(e.prototype,{ttBelow:!1});return e});
|
||||
I(e,"Series/Bubble/BubbleSeries.js",[e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t){function F(){var a=this,b=this.len,d=this.chart,e=this.isXAxis,g=e?"xData":"yData",h=this.min,m=this.max-h,c=0,p=b,n=b/m,r;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!d.options.chart.ignoreHiddenSeries)){r=a.allowZoomOutside=!0;var f=b[g];
|
||||
e&&((b.onPoint||b).getRadii(0,0,b),b.onPoint&&(b.radii=b.onPoint.radii));if(0<m)for(var k=f.length;k--;)if(G(f[k])&&a.dataMin<=f[k]&&f[k]<=a.max){var l=b.radii&&b.radii[k]||0;c=Math.min((f[k]-h)*n-l,c);p=Math.max((f[k]-h)*n+l,p)}}});r&&0<m&&!this.logarithmic&&(p-=b,n*=(b+Math.max(0,c)-Math.min(p,b))/b,[["min","userMin",c],["max","userMax",p]].forEach(function(b){"undefined"===typeof x(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/n)}))}var z=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||
|
||||
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),r=y.parse;y=B.noop;var p=v.series,h=v.seriesTypes;B=h.column.prototype;var a=h.scatter;h=t.addEvent;var d=t.arrayMax,g=t.arrayMin,m=t.clamp,n=t.extend,G=t.isNumber,J=t.merge,x=t.pick,C=[];t=function(e){function h(){var a=null!==
|
||||
e&&e.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}z(h,e);h.compose=function(a,d,e,g){b.compose(d,e,g);-1===C.indexOf(a)&&(C.push(a),a.prototype.beforePadding=F)};h.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),
|
||||
this.options.animation))},this)};h.prototype.getRadii=function(){var a=this,b=this.zData,d=this.yData,e=[],g=this.chart.bubbleZExtremes;var c=this.getPxExtremes();var h=c.minPxSize,l=c.maxPxSize;if(!g){var m=Number.MAX_VALUE,p=-Number.MAX_VALUE,n;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=(b.onPoint||b).getZExtremes())&&(m=Math.min(m||b.zMin,b.zMin),p=Math.max(p||b.zMax,b.zMax),n=!0)});n?(g={zMin:m,zMax:p},this.chart.bubbleZExtremes=
|
||||
g):g={zMin:0,zMax:0}}var r=0;for(c=b.length;r<c;r++){var u=b[r];e.push(this.getRadius(g.zMin,g.zMax,h,l,u,d&&d[r]))}this.radii=e};h.prototype.getRadius=function(a,b,d,e,g,c){var f=this.options,h="width"!==f.sizeBy,k=f.zThreshold,l=b-a,m=.5;if(null===c||null===g)return null;if(G(g)){f.sizeByAbsoluteValue&&(g=Math.abs(g-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(g<a)return d/2-1;0<l&&(m=(g-a)/l)}h&&0<=m&&(m=Math.sqrt(m));return Math.ceil(d+m*(e-d))/2};h.prototype.hasData=function(){return!!this.processedXData.length};
|
||||
h.prototype.pointAttribs=function(a,b){var d=this.options.marker.fillOpacity;a=p.prototype.pointAttribs.call(this,a,b);1!==d&&(a.fill=r(a.fill).setOpacity(d).get("rgba"));return a};h.prototype.translate=function(){e.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,d=this.getPxExtremes().minPxSize,e=a.length;e--;){var g=a[e],c=b?b[e]:0;G(c)&&c>=d/2?(g.marker=n(g.marker,{radius:c,width:2*c,height:2*c}),g.dlBox=
|
||||
{x:g.plotX-c,y:g.plotY-c,width:2*c,height:2*c}):(g.shapeArgs=g.dlBox=void 0,g.plotY=0,g.marker={width:0,height:0})}};h.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var d=/%$/.test(b);b=parseInt(b,10)}return d?a*b/100:b},d=b(x(this.options.minSize,8));b=Math.max(b(x(this.options.maxSize,"20%")),d);return{minPxSize:d,maxPxSize:b}};h.prototype.getZExtremes=function(){var a=this.options,b=(this.zData||[]).filter(G);
|
||||
if(b.length){var e=x(a.zMin,m(g(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=x(a.zMax,d(b));if(G(e)&&G(a))return{zMin:e,zMax:a}}};h.defaultOptions=J(a.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return G(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",
|
||||
softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return h}(a);n(t.prototype,{alignDataLabel:B.alignDataLabel,applyZones:y,bubblePadding:!0,buildKDTree:y,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});h(t,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});
|
||||
h(t,"remove",function(a){delete a.target.chart.bubbleZExtremes});v.registerSeriesType("bubble",t);"";"";return t});I(e,"Series/MapBubble/MapBubblePoint.js",[e["Series/Bubble/BubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y){var B=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var p in e)e.hasOwnProperty(p)&&(b[p]=e[p])};return b(e,v)};return function(e,
|
||||
v){function t(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}();e=e.seriesTypes.map.prototype.pointClass.prototype;y=y.extend;b=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}B(e,b);e.prototype.isValid=function(){return"number"===typeof this.z};return e}(b);y(b.prototype,{applyOptions:e.applyOptions,getProjectedBounds:e.getProjectedBounds});return b});I(e,"Series/MapBubble/MapBubbleSeries.js",[e["Series/Bubble/BubbleSeries.js"],
|
||||
e["Series/MapBubble/MapBubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,y,B){var v=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(e,a)};return function(e,a){function d(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),t=y.seriesTypes,F=t.map.prototype,
|
||||
z=t.mappoint.prototype;t=B.extend;var r=B.merge;B=function(e){function h(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}v(h,e);h.prototype.searchPoint=function(a,b){return this.searchKDTree({clientX:a.chartX-this.chart.plotLeft,plotY:a.chartY-this.chart.plotTop},b,a)};h.prototype.translate=function(){z.translate.call(this);this.getRadii();this.translateBubble()};h.defaultOptions=r(b.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",
|
||||
tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(b);t(B.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:F.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:e,processData:F.processData,projectPoint:z.projectPoint,setData:F.setData,setOptions:F.setOptions,updateData:F.updateData,useMapGeometry:!0,xyFromShape:!0});y.registerSeriesType("mapbubble",B);"";return B});I(e,"Series/Heatmap/HeatmapPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],
|
||||
function(b,e){var y=this&&this.__extends||function(){var b=function(e,p){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(e,p)};return function(e,p){function h(){this.constructor=e}b(e,p);e.prototype=null===p?Object.create(p):(h.prototype=p.prototype,new h)}}(),B=e.clamp,v=e.defined,t=e.extend,F=e.pick;b=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.options=void 0;
|
||||
e.series=void 0;e.value=void 0;e.x=void 0;e.y=void 0;return e}y(e,b);e.prototype.applyOptions=function(e,h){e=b.prototype.applyOptions.call(this,e,h);e.formatPrefix=e.isNull||null===e.value?"null":"point";return e};e.prototype.getCellAttributes=function(){var b=this.series,e=b.options,a=(e.colsize||1)/2,d=(e.rowsize||1)/2,g=b.xAxis,m=b.yAxis,n=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();var r=F(this.pointPadding,e.pointPadding,0),t={x1:B(Math.round(g.len-g.translate(this.x-
|
||||
a,!1,!0,!1,!0,-b)),-g.len,2*g.len),x2:B(Math.round(g.len-g.translate(this.x+a,!1,!0,!1,!0,-b)),-g.len,2*g.len),y1:B(Math.round(m.translate(this.y-d,!1,!0,!1,!0)),-m.len,2*m.len),y2:B(Math.round(m.translate(this.y+d,!1,!0,!1,!0)),-m.len,2*m.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",e=a+"2",g=Math.abs(t[d]-t[e]),f=n&&n.lineWidth||0,h=Math.abs(t[d]+t[e])/2;b=n&&n[b];v(b)&&b<g&&(b=b/2+f/2,t[d]=h-b,t[e]=h+b);r&&("y"===a&&(d=e,e=a+"1"),t[d]+=r,t[e]-=r)});return t};
|
||||
e.prototype.haloPath=function(b){if(!b)return[];var e=this.shapeArgs;return["M",e.x-b,e.y-b,"L",e.x-b,e.y+e.height+b,e.x+e.width+b,e.y+e.height+b,e.x+e.width+b,e.y-b,"Z"]};e.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return e}(b.seriesTypes.scatter.prototype.pointClass);t(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});I(e,"Series/Heatmap/HeatmapSeries.js",[e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Series/Heatmap/HeatmapPoint.js"],
|
||||
e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,y,B,v,t,F){var z=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,
|
||||
new e)}}(),r=v.series,p=v.seriesTypes,h=p.column,a=p.scatter,d=t.prototype.symbols,g=F.extend,m=F.fireEvent,n=F.isNumber,G=F.merge,I=F.pick;t=function(e){function h(){var a=null!==e&&e.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=NaN;return a}z(h,e);h.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)r.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&
|
||||
(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};h.prototype.getExtremes=function(){var a=r.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;n(b)&&(this.valueMin=b);n(a)&&(this.valueMax=a);return r.prototype.getExtremes.call(this)};h.prototype.getValidPoints=function(a,b){return r.prototype.getValidPoints.call(this,a,b,!0)};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.init=
|
||||
function(){r.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=I(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;d.ellipse=d.circle;a.marker&&(a.marker.r=a.borderRadius)};h.prototype.markerAttribs=function(a,b){var d=a.marker||{},e=this.options.marker||{},g=a.shapeArgs||{},h={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var l=e.states[b]||{};var c=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){h[a[0]]=(c[a[0]]||l[a[0]]||g[a[0]])+
|
||||
(c[a[0]+"Plus"]||l[a[0]+"Plus"]||0);h[a[1]]=g[a[1]]+(g[a[0]]-h[a[0]])/2})}return b?h:g};h.prototype.pointAttribs=function(a,d){var e=r.prototype.pointAttribs.call(this,a,d),f=this.options||{},g=this.chart.options.plotOptions||{},h=g.series||{},l=g.heatmap||{};g=a&&a.options.borderColor||f.borderColor||l.borderColor||h.borderColor;h=a&&a.options.borderWidth||f.borderWidth||l.borderWidth||h.borderWidth||e["stroke-width"];e.stroke=a&&a.marker&&a.marker.lineColor||f.marker&&f.marker.lineColor||g||this.color;
|
||||
e["stroke-width"]=h;d&&(a=G(f.states[d],f.marker&&f.marker.states[d],a&&a.options.states&&a.options.states[d]||{}),d=a.brightness,e.fill=a.color||b.parse(e.fill).brighten(d||0).get(),e.stroke=a.lineColor);return e};h.prototype.setClip=function(a){var b=this.chart;r.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};h.prototype.translate=function(){var a=this.options,b=a.marker&&
|
||||
a.marker.symbol||"rect",e=d[b]?b:"rect",f=-1!==["circle","square"].indexOf(e);this.generatePoints();this.points.forEach(function(h){var k=h.getCellAttributes(),l={};l.x=Math.min(k.x1,k.x2);l.y=Math.min(k.y1,k.y2);l.width=Math.max(Math.abs(k.x2-k.x1),0);l.height=Math.max(Math.abs(k.y2-k.y1),0);var c=h.hasImage=0===(h.marker&&h.marker.symbol||b||"").indexOf("url");if(f){var m=Math.abs(l.width-l.height);l.x=Math.min(k.x1,k.x2)+(l.width<l.height?0:m/2);l.y=Math.min(k.y1,k.y2)+(l.width<l.height?m/2:0);
|
||||
l.width=l.height=Math.min(l.width,l.height)}m={plotX:(k.x1+k.x2)/2,plotY:(k.y1+k.y2)/2,clientX:(k.x1+k.x2)/2,shapeType:"path",shapeArgs:G(!0,l,{d:d[e](l.x,l.y,l.width,l.height,{r:a.borderRadius})})};c&&(h.marker={width:l.width,height:l.height});g(h,m)});m(this,"afterTranslate")};h.defaultOptions=G(a.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return n(b)?a(b,-1):""},inside:!0,
|
||||
verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return h}(a);g(t.prototype,{axisTypes:e.seriesMembers.axisTypes,colorKey:e.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:e.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:y,trackerGroups:e.seriesMembers.trackerGroups,
|
||||
alignDataLabel:h.prototype.alignDataLabel,colorAttribs:e.seriesMembers.colorAttribs,drawLegendSymbol:B.drawRectangle,getSymbol:r.prototype.getSymbol});e.compose(t);v.registerSeriesType("heatmap",t);"";"";return t});I(e,"masters/modules/map.src.js",[e["Core/Globals.js"],e["Core/Axis/Color/ColorAxis.js"],e["Series/MapBubble/MapBubbleSeries.js"],e["Core/Chart/MapChart.js"],e["Maps/MapView.js"],e["Maps/Projection.js"]],function(b,e,y,B,v,t){b.ColorAxis=e;b.MapChart=B;b.mapChart=b.Map=B.mapChart;b.MapView=
|
||||
v;b.maps=B.maps;b.Projection=t;e.compose(b.Chart,b.Fx,b.Legend,b.Series);y.compose(b.Axis,b.Chart,b.Legend,b.Series)});I(e,"masters/highmaps.src.js",[e["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});e["masters/highmaps.src.js"]._modules=e;return e["masters/highmaps.src.js"]});
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4285
-3924
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,184 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* 2020 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* DataTables integration for Bootstrap 4. This requires Bootstrap 5 and
|
||||
* DataTables 1.10 or newer.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ || ! $.fn.dataTable ) {
|
||||
// Require DataTables, which attaches to jQuery, including
|
||||
// jQuery if needed and have a $ property so we can access the
|
||||
// jQuery object that is used
|
||||
$ = require('datatables.net')(root, $).$;
|
||||
}
|
||||
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document, undefined ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
dom:
|
||||
"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
|
||||
renderer: 'bootstrap'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( DataTable.ext.classes, {
|
||||
sWrapper: "dataTables_wrapper dt-bootstrap5",
|
||||
sFilterInput: "form-control form-control-sm",
|
||||
sLengthSelect: "form-select form-select-sm",
|
||||
sProcessing: "dataTables_processing card",
|
||||
sPageButton: "paginate_button page-item"
|
||||
} );
|
||||
|
||||
|
||||
/* Bootstrap paging button renderer */
|
||||
DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) {
|
||||
var api = new DataTable.Api( settings );
|
||||
var classes = settings.oClasses;
|
||||
var lang = settings.oLanguage.oPaginate;
|
||||
var aria = settings.oLanguage.oAria.paginate || {};
|
||||
var btnDisplay, btnClass, counter=0;
|
||||
|
||||
var attach = function( container, buttons ) {
|
||||
var i, ien, node, button;
|
||||
var clickHandler = function ( e ) {
|
||||
e.preventDefault();
|
||||
if ( !$(e.currentTarget).hasClass('disabled') && api.page() != e.data.action ) {
|
||||
api.page( e.data.action ).draw( 'page' );
|
||||
}
|
||||
};
|
||||
|
||||
for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
|
||||
button = buttons[i];
|
||||
|
||||
if ( Array.isArray( button ) ) {
|
||||
attach( container, button );
|
||||
}
|
||||
else {
|
||||
btnDisplay = '';
|
||||
btnClass = '';
|
||||
|
||||
switch ( button ) {
|
||||
case 'ellipsis':
|
||||
btnDisplay = '…';
|
||||
btnClass = 'disabled';
|
||||
break;
|
||||
|
||||
case 'first':
|
||||
btnDisplay = lang.sFirst;
|
||||
btnClass = button + (page > 0 ?
|
||||
'' : ' disabled');
|
||||
break;
|
||||
|
||||
case 'previous':
|
||||
btnDisplay = lang.sPrevious;
|
||||
btnClass = button + (page > 0 ?
|
||||
'' : ' disabled');
|
||||
break;
|
||||
|
||||
case 'next':
|
||||
btnDisplay = lang.sNext;
|
||||
btnClass = button + (page < pages-1 ?
|
||||
'' : ' disabled');
|
||||
break;
|
||||
|
||||
case 'last':
|
||||
btnDisplay = lang.sLast;
|
||||
btnClass = button + (page < pages-1 ?
|
||||
'' : ' disabled');
|
||||
break;
|
||||
|
||||
default:
|
||||
btnDisplay = button + 1;
|
||||
btnClass = page === button ?
|
||||
'active' : '';
|
||||
break;
|
||||
}
|
||||
|
||||
if ( btnDisplay ) {
|
||||
node = $('<li>', {
|
||||
'class': classes.sPageButton+' '+btnClass,
|
||||
'id': idx === 0 && typeof button === 'string' ?
|
||||
settings.sTableId +'_'+ button :
|
||||
null
|
||||
} )
|
||||
.append( $('<a>', {
|
||||
'href': '#',
|
||||
'aria-controls': settings.sTableId,
|
||||
'aria-label': aria[ button ],
|
||||
'data-dt-idx': counter,
|
||||
'tabindex': settings.iTabIndex,
|
||||
'class': 'page-link'
|
||||
} )
|
||||
.html( btnDisplay )
|
||||
)
|
||||
.appendTo( container );
|
||||
|
||||
settings.oApi._fnBindAction(
|
||||
node, {action: button}, clickHandler
|
||||
);
|
||||
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// IE9 throws an 'unknown error' if document.activeElement is used
|
||||
// inside an iframe or frame.
|
||||
var activeEl;
|
||||
|
||||
try {
|
||||
// Because this approach is destroying and recreating the paging
|
||||
// elements, focus is lost on the select button which is bad for
|
||||
// accessibility. So we want to restore focus once the draw has
|
||||
// completed
|
||||
activeEl = $(host).find(document.activeElement).data('dt-idx');
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
attach(
|
||||
$(host).empty().html('<ul class="pagination"/>').children('ul'),
|
||||
buttons
|
||||
);
|
||||
|
||||
if ( activeEl !== undefined ) {
|
||||
$(host).find( '[data-dt-idx='+activeEl+']' ).trigger('focus');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
@@ -0,0 +1,48 @@
|
||||
/*!
|
||||
Copyright 2014-2021 SpryMedia Ltd.
|
||||
|
||||
This source file is free software, available under the following license:
|
||||
MIT license - http://datatables.net/license/mit
|
||||
|
||||
This source file is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
||||
|
||||
For details please refer to: http://www.datatables.net
|
||||
Responsive 2.2.9
|
||||
2014-2021 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,k,m){b instanceof String&&(b=String(b));for(var n=b.length,p=0;p<n;p++){var y=b[p];if(k.call(m,y,p,b))return{i:p,v:y}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,k,m){if(b==Array.prototype||b==Object.prototype)return b;b[k]=m.value;return b};$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var k=0;k<b.length;++k){var m=b[k];if(m&&m.Math==Math)return m}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(b,k){var m=$jscomp.propertyToPolyfillSymbol[k];if(null==m)return b[k];m=b[m];return void 0!==m?m:b[k]};
|
||||
$jscomp.polyfill=function(b,k,m,n){k&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,k,m,n):$jscomp.polyfillUnisolated(b,k,m,n))};$jscomp.polyfillUnisolated=function(b,k,m,n){m=$jscomp.global;b=b.split(".");for(n=0;n<b.length-1;n++){var p=b[n];if(!(p in m))return;m=m[p]}b=b[b.length-1];n=m[b];k=k(n);k!=n&&null!=k&&$jscomp.defineProperty(m,b,{configurable:!0,writable:!0,value:k})};
|
||||
$jscomp.polyfillIsolated=function(b,k,m,n){var p=b.split(".");b=1===p.length;n=p[0];n=!b&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var y=0;y<p.length-1;y++){var z=p[y];if(!(z in n))return;n=n[z]}p=p[p.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&"es6"===m?n[p]:null;k=k(m);null!=k&&(b?$jscomp.defineProperty($jscomp.polyfills,p,{configurable:!0,writable:!0,value:k}):k!==m&&($jscomp.propertyToPolyfillSymbol[p]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(p):$jscomp.POLYFILL_PREFIX+p,p=
|
||||
$jscomp.propertyToPolyfillSymbol[p],$jscomp.defineProperty(n,p,{configurable:!0,writable:!0,value:k})))};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(k,m){return $jscomp.findInternal(this,k,m).v}},"es6","es3");
|
||||
(function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(k){return b(k,window,document)}):"object"===typeof exports?module.exports=function(k,m){k||(k=window);m&&m.fn.dataTable||(m=require("datatables.net")(k,m).$);return b(m,k,k.document)}:b(jQuery,window,document)})(function(b,k,m,n){function p(a,c,d){var f=c+"-"+d;if(A[f])return A[f];var g=[];a=a.cell(c,d).node().childNodes;c=0;for(d=a.length;c<d;c++)g.push(a[c]);return A[f]=g}function y(a,c,d){var f=c+"-"+
|
||||
d;if(A[f]){a=a.cell(c,d).node();d=A[f][0].parentNode.childNodes;c=[];for(var g=0,l=d.length;g<l;g++)c.push(d[g]);d=0;for(g=c.length;d<g;d++)a.appendChild(c[d]);A[f]=n}}var z=b.fn.dataTable,u=function(a,c){if(!z.versionCheck||!z.versionCheck("1.10.10"))throw"DataTables Responsive requires DataTables 1.10.10 or newer";this.s={dt:new z.Api(a),columns:[],current:[]};this.s.dt.settings()[0].responsive||(c&&"string"===typeof c.details?c.details={type:c.details}:c&&!1===c.details?c.details={type:!1}:c&&
|
||||
!0===c.details&&(c.details={type:"inline"}),this.c=b.extend(!0,{},u.defaults,z.defaults.responsive,c),a.responsive=this,this._constructor())};b.extend(u.prototype,{_constructor:function(){var a=this,c=this.s.dt,d=c.settings()[0],f=b(k).innerWidth();c.settings()[0]._responsive=this;b(k).on("resize.dtr orientationchange.dtr",z.util.throttle(function(){var g=b(k).innerWidth();g!==f&&(a._resize(),f=g)}));d.oApi._fnCallbackReg(d,"aoRowCreatedCallback",function(g,l,h){-1!==b.inArray(!1,a.s.current)&&b(">td, >th",
|
||||
g).each(function(e){e=c.column.index("toData",e);!1===a.s.current[e]&&b(this).css("display","none")})});c.on("destroy.dtr",function(){c.off(".dtr");b(c.table().body()).off(".dtr");b(k).off("resize.dtr orientationchange.dtr");c.cells(".dtr-control").nodes().to$().removeClass("dtr-control");b.each(a.s.current,function(g,l){!1===l&&a._setColumnVis(g,!0)})});this.c.breakpoints.sort(function(g,l){return g.width<l.width?1:g.width>l.width?-1:0});this._classLogic();this._resizeAuto();d=this.c.details;!1!==
|
||||
d.type&&(a._detailsInit(),c.on("column-visibility.dtr",function(){a._timer&&clearTimeout(a._timer);a._timer=setTimeout(function(){a._timer=null;a._classLogic();a._resizeAuto();a._resize(!0);a._redrawChildren()},100)}),c.on("draw.dtr",function(){a._redrawChildren()}),b(c.table().node()).addClass("dtr-"+d.type));c.on("column-reorder.dtr",function(g,l,h){a._classLogic();a._resizeAuto();a._resize(!0)});c.on("column-sizing.dtr",function(){a._resizeAuto();a._resize()});c.on("preXhr.dtr",function(){var g=
|
||||
[];c.rows().every(function(){this.child.isShown()&&g.push(this.id(!0))});c.one("draw.dtr",function(){a._resizeAuto();a._resize();c.rows(g).every(function(){a._detailsDisplay(this,!1)})})});c.on("draw.dtr",function(){a._controlClass()}).on("init.dtr",function(g,l,h){"dt"===g.namespace&&(a._resizeAuto(),a._resize(),b.inArray(!1,a.s.current)&&c.columns.adjust())});this._resize()},_columnsVisiblity:function(a){var c=this.s.dt,d=this.s.columns,f,g=d.map(function(t,v){return{columnIdx:v,priority:t.priority}}).sort(function(t,
|
||||
v){return t.priority!==v.priority?t.priority-v.priority:t.columnIdx-v.columnIdx}),l=b.map(d,function(t,v){return!1===c.column(v).visible()?"not-visible":t.auto&&null===t.minWidth?!1:!0===t.auto?"-":-1!==b.inArray(a,t.includeIn)}),h=0;var e=0;for(f=l.length;e<f;e++)!0===l[e]&&(h+=d[e].minWidth);e=c.settings()[0].oScroll;e=e.sY||e.sX?e.iBarWidth:0;h=c.table().container().offsetWidth-e-h;e=0;for(f=l.length;e<f;e++)d[e].control&&(h-=d[e].minWidth);var r=!1;e=0;for(f=g.length;e<f;e++){var q=g[e].columnIdx;
|
||||
"-"===l[q]&&!d[q].control&&d[q].minWidth&&(r||0>h-d[q].minWidth?(r=!0,l[q]=!1):l[q]=!0,h-=d[q].minWidth)}g=!1;e=0;for(f=d.length;e<f;e++)if(!d[e].control&&!d[e].never&&!1===l[e]){g=!0;break}e=0;for(f=d.length;e<f;e++)d[e].control&&(l[e]=g),"not-visible"===l[e]&&(l[e]=!1);-1===b.inArray(!0,l)&&(l[0]=!0);return l},_classLogic:function(){var a=this,c=this.c.breakpoints,d=this.s.dt,f=d.columns().eq(0).map(function(h){var e=this.column(h),r=e.header().className;h=d.settings()[0].aoColumns[h].responsivePriority;
|
||||
e=e.header().getAttribute("data-priority");h===n&&(h=e===n||null===e?1E4:1*e);return{className:r,includeIn:[],auto:!1,control:!1,never:r.match(/\bnever\b/)?!0:!1,priority:h}}),g=function(h,e){h=f[h].includeIn;-1===b.inArray(e,h)&&h.push(e)},l=function(h,e,r,q){if(!r)f[h].includeIn.push(e);else if("max-"===r)for(q=a._find(e).width,e=0,r=c.length;e<r;e++)c[e].width<=q&&g(h,c[e].name);else if("min-"===r)for(q=a._find(e).width,e=0,r=c.length;e<r;e++)c[e].width>=q&&g(h,c[e].name);else if("not-"===r)for(e=
|
||||
0,r=c.length;e<r;e++)-1===c[e].name.indexOf(q)&&g(h,c[e].name)};f.each(function(h,e){for(var r=h.className.split(" "),q=!1,t=0,v=r.length;t<v;t++){var B=r[t].trim();if("all"===B){q=!0;h.includeIn=b.map(c,function(w){return w.name});return}if("none"===B||h.never){q=!0;return}if("control"===B||"dtr-control"===B){q=!0;h.control=!0;return}b.each(c,function(w,D){w=D.name.split("-");var x=B.match(new RegExp("(min\\-|max\\-|not\\-)?("+w[0]+")(\\-[_a-zA-Z0-9])?"));x&&(q=!0,x[2]===w[0]&&x[3]==="-"+w[1]?l(e,
|
||||
D.name,x[1],x[2]+x[3]):x[2]!==w[0]||x[3]||l(e,D.name,x[1],x[2]))})}q||(h.auto=!0)});this.s.columns=f},_controlClass:function(){if("inline"===this.c.details.type){var a=this.s.dt,c=b.inArray(!0,this.s.current);a.cells(null,function(d){return d!==c},{page:"current"}).nodes().to$().filter(".dtr-control").removeClass("dtr-control");a.cells(null,c,{page:"current"}).nodes().to$().addClass("dtr-control")}},_detailsDisplay:function(a,c){var d=this,f=this.s.dt,g=this.c.details;if(g&&!1!==g.type){var l=g.display(a,
|
||||
c,function(){return g.renderer(f,a[0],d._detailsObj(a[0]))});!0!==l&&!1!==l||b(f.table().node()).triggerHandler("responsive-display.dt",[f,a,l,c])}},_detailsInit:function(){var a=this,c=this.s.dt,d=this.c.details;"inline"===d.type&&(d.target="td.dtr-control, th.dtr-control");c.on("draw.dtr",function(){a._tabIndexes()});a._tabIndexes();b(c.table().body()).on("keyup.dtr","td, th",function(g){13===g.keyCode&&b(this).data("dtr-keyboard")&&b(this).click()});var f=d.target;d="string"===typeof f?f:"td, th";
|
||||
if(f!==n||null!==f)b(c.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",d,function(g){if(b(c.table().node()).hasClass("collapsed")&&-1!==b.inArray(b(this).closest("tr").get(0),c.rows().nodes().toArray())){if("number"===typeof f){var l=0>f?c.columns().eq(0).length+f:f;if(c.cell(this).index().column!==l)return}l=c.row(b(this).closest("tr"));"click"===g.type?a._detailsDisplay(l,!1):"mousedown"===g.type?b(this).css("outline","none"):"mouseup"===g.type&&b(this).trigger("blur").css("outline","")}})},
|
||||
_detailsObj:function(a){var c=this,d=this.s.dt;return b.map(this.s.columns,function(f,g){if(!f.never&&!f.control)return f=d.settings()[0].aoColumns[g],{className:f.sClass,columnIndex:g,data:d.cell(a,g).render(c.c.orthogonal),hidden:d.column(g).visible()&&!c.s.current[g],rowIndex:a,title:null!==f.sTitle?f.sTitle:b(d.column(g).header()).text()}})},_find:function(a){for(var c=this.c.breakpoints,d=0,f=c.length;d<f;d++)if(c[d].name===a)return c[d]},_redrawChildren:function(){var a=this,c=this.s.dt;c.rows({page:"current"}).iterator("row",
|
||||
function(d,f){c.row(f);a._detailsDisplay(c.row(f),!0)})},_resize:function(a){var c=this,d=this.s.dt,f=b(k).innerWidth(),g=this.c.breakpoints,l=g[0].name,h=this.s.columns,e,r=this.s.current.slice();for(e=g.length-1;0<=e;e--)if(f<=g[e].width){l=g[e].name;break}var q=this._columnsVisiblity(l);this.s.current=q;g=!1;e=0;for(f=h.length;e<f;e++)if(!1===q[e]&&!h[e].never&&!h[e].control&&!1===!d.column(e).visible()){g=!0;break}b(d.table().node()).toggleClass("collapsed",g);var t=!1,v=0;d.columns().eq(0).each(function(B,
|
||||
w){!0===q[w]&&v++;if(a||q[w]!==r[w])t=!0,c._setColumnVis(B,q[w])});t&&(this._redrawChildren(),b(d.table().node()).trigger("responsive-resize.dt",[d,this.s.current]),0===d.page.info().recordsDisplay&&b("td",d.table().body()).eq(0).attr("colspan",v));c._controlClass()},_resizeAuto:function(){var a=this.s.dt,c=this.s.columns;if(this.c.auto&&-1!==b.inArray(!0,b.map(c,function(e){return e.auto}))){b.isEmptyObject(A)||b.each(A,function(e){e=e.split("-");y(a,1*e[0],1*e[1])});a.table().node();var d=a.table().node().cloneNode(!1),
|
||||
f=b(a.table().header().cloneNode(!1)).appendTo(d),g=b(a.table().body()).clone(!1,!1).empty().appendTo(d);d.style.width="auto";var l=a.columns().header().filter(function(e){return a.column(e).visible()}).to$().clone(!1).css("display","table-cell").css("width","auto").css("min-width",0);b(g).append(b(a.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display","");if(g=a.table().footer()){g=b(g.cloneNode(!1)).appendTo(d);var h=a.columns().footer().filter(function(e){return a.column(e).visible()}).to$().clone(!1).css("display",
|
||||
"table-cell");b("<tr/>").append(h).appendTo(g)}b("<tr/>").append(l).appendTo(f);"inline"===this.c.details.type&&b(d).addClass("dtr-inline collapsed");b(d).find("[name]").removeAttr("name");b(d).css("position","relative");d=b("<div/>").css({width:1,height:1,overflow:"hidden",clear:"both"}).append(d);d.insertBefore(a.table().node());l.each(function(e){e=a.column.index("fromVisible",e);c[e].minWidth=this.offsetWidth||0});d.remove()}},_responsiveOnlyHidden:function(){var a=this.s.dt;return b.map(this.s.current,
|
||||
function(c,d){return!1===a.column(d).visible()?!0:c})},_setColumnVis:function(a,c){var d=this.s.dt;c=c?"":"none";b(d.column(a).header()).css("display",c);b(d.column(a).footer()).css("display",c);d.column(a).nodes().to$().css("display",c);b.isEmptyObject(A)||d.cells(null,a).indexes().each(function(f){y(d,f.row,f.column)})},_tabIndexes:function(){var a=this.s.dt,c=a.cells({page:"current"}).nodes().to$(),d=a.settings()[0],f=this.c.details.target;c.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]");
|
||||
"number"===typeof f?a.cells(null,f,{page:"current"}).nodes().to$().attr("tabIndex",d.iTabIndex).data("dtr-keyboard",1):("td:first-child, th:first-child"===f&&(f=">td:first-child, >th:first-child"),b(f,a.rows({page:"current"}).nodes()).attr("tabIndex",d.iTabIndex).data("dtr-keyboard",1))}});u.breakpoints=[{name:"desktop",width:Infinity},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}];u.display={childRow:function(a,c,d){if(c){if(b(a.node()).hasClass("parent"))return a.child(d(),
|
||||
"child").show(),!0}else{if(a.child.isShown())return a.child(!1),b(a.node()).removeClass("parent"),!1;a.child(d(),"child").show();b(a.node()).addClass("parent");return!0}},childRowImmediate:function(a,c,d){if(!c&&a.child.isShown()||!a.responsive.hasHidden())return a.child(!1),b(a.node()).removeClass("parent"),!1;a.child(d(),"child").show();b(a.node()).addClass("parent");return!0},modal:function(a){return function(c,d,f){if(d)b("div.dtr-modal-content").empty().append(f());else{var g=function(){l.remove();
|
||||
b(m).off("keypress.dtr")},l=b('<div class="dtr-modal"/>').append(b('<div class="dtr-modal-display"/>').append(b('<div class="dtr-modal-content"/>').append(f())).append(b('<div class="dtr-modal-close">×</div>').click(function(){g()}))).append(b('<div class="dtr-modal-background"/>').click(function(){g()})).appendTo("body");b(m).on("keyup.dtr",function(h){27===h.keyCode&&(h.stopPropagation(),g())})}a&&a.header&&b("div.dtr-modal-content").prepend("<h2>"+a.header(c)+"</h2>")}}};var A={};u.renderer=
|
||||
{listHiddenNodes:function(){return function(a,c,d){var f=b('<ul data-dtr-index="'+c+'" class="dtr-details"/>'),g=!1;b.each(d,function(l,h){h.hidden&&(b("<li "+(h.className?'class="'+h.className+'"':"")+' data-dtr-index="'+h.columnIndex+'" data-dt-row="'+h.rowIndex+'" data-dt-column="'+h.columnIndex+'"><span class="dtr-title">'+h.title+"</span> </li>").append(b('<span class="dtr-data"/>').append(p(a,h.rowIndex,h.columnIndex))).appendTo(f),g=!0)});return g?f:!1}},listHidden:function(){return function(a,
|
||||
c,d){return(a=b.map(d,function(f){var g=f.className?'class="'+f.className+'"':"";return f.hidden?"<li "+g+' data-dtr-index="'+f.columnIndex+'" data-dt-row="'+f.rowIndex+'" data-dt-column="'+f.columnIndex+'"><span class="dtr-title">'+f.title+'</span> <span class="dtr-data">'+f.data+"</span></li>":""}).join(""))?b('<ul data-dtr-index="'+c+'" class="dtr-details"/>').append(a):!1}},tableAll:function(a){a=b.extend({tableClass:""},a);return function(c,d,f){c=b.map(f,function(g){return"<tr "+(g.className?
|
||||
'class="'+g.className+'"':"")+' data-dt-row="'+g.rowIndex+'" data-dt-column="'+g.columnIndex+'"><td>'+g.title+":</td> <td>"+g.data+"</td></tr>"}).join("");return b('<table class="'+a.tableClass+' dtr-details" width="100%"/>').append(c)}}};u.defaults={breakpoints:u.breakpoints,auto:!0,details:{display:u.display.childRow,renderer:u.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var C=b.fn.dataTable.Api;C.register("responsive()",function(){return this});C.register("responsive.index()",
|
||||
function(a){a=b(a);return{column:a.data("dtr-index"),row:a.parent().data("dtr-index")}});C.register("responsive.rebuild()",function(){return this.iterator("table",function(a){a._responsive&&a._responsive._classLogic()})});C.register("responsive.recalc()",function(){return this.iterator("table",function(a){a._responsive&&(a._responsive._resizeAuto(),a._responsive._resize())})});C.register("responsive.hasHidden()",function(){var a=this.context[0];return a._responsive?-1!==b.inArray(!1,a._responsive._responsiveOnlyHidden()):
|
||||
!1});C.registerPlural("columns().responsiveHidden()","column().responsiveHidden()",function(){return this.iterator("column",function(a,c){return a._responsive?a._responsive._responsiveOnlyHidden()[c]:!1},1)});u.version="2.2.9";b.fn.dataTable.Responsive=u;b.fn.DataTable.Responsive=u;b(m).on("preInit.dt.dtr",function(a,c,d){"dt"===a.namespace&&(b(c.nTable).hasClass("responsive")||b(c.nTable).hasClass("dt-responsive")||c.oInit.responsive||z.defaults.responsive)&&(a=c.oInit.responsive,!1!==a&&new u(c,
|
||||
b.isPlainObject(a)?a:{}))});return u});
|
||||
@@ -0,0 +1,44 @@
|
||||
/*!
|
||||
Copyright 2011-2021 SpryMedia Ltd.
|
||||
|
||||
This source file is free software, available under the following license:
|
||||
MIT license - http://datatables.net/license/mit
|
||||
|
||||
This source file is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
||||
|
||||
For details please refer to: http://www.datatables.net
|
||||
Scroller 2.0.5
|
||||
©2011-2021 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,f,g){c instanceof String&&(c=String(c));for(var h=c.length,k=0;k<h;k++){var m=c[k];if(f.call(g,m,k,c))return{i:k,v:m}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,f,g){if(c==Array.prototype||c==Object.prototype)return c;c[f]=g.value;return c};$jscomp.getGlobal=function(c){c=["object"==typeof globalThis&&globalThis,c,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var f=0;f<c.length;++f){var g=c[f];if(g&&g.Math==Math)return g}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(c,f){var g=$jscomp.propertyToPolyfillSymbol[f];if(null==g)return c[f];g=c[g];return void 0!==g?g:c[f]};
|
||||
$jscomp.polyfill=function(c,f,g,h){f&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(c,f,g,h):$jscomp.polyfillUnisolated(c,f,g,h))};$jscomp.polyfillUnisolated=function(c,f,g,h){g=$jscomp.global;c=c.split(".");for(h=0;h<c.length-1;h++){var k=c[h];if(!(k in g))return;g=g[k]}c=c[c.length-1];h=g[c];f=f(h);f!=h&&null!=f&&$jscomp.defineProperty(g,c,{configurable:!0,writable:!0,value:f})};
|
||||
$jscomp.polyfillIsolated=function(c,f,g,h){var k=c.split(".");c=1===k.length;h=k[0];h=!c&&h in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var m=0;m<k.length-1;m++){var q=k[m];if(!(q in h))return;h=h[q]}k=k[k.length-1];g=$jscomp.IS_SYMBOL_NATIVE&&"es6"===g?h[k]:null;f=f(g);null!=f&&(c?$jscomp.defineProperty($jscomp.polyfills,k,{configurable:!0,writable:!0,value:f}):f!==g&&($jscomp.propertyToPolyfillSymbol[k]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(k):$jscomp.POLYFILL_PREFIX+k,k=
|
||||
$jscomp.propertyToPolyfillSymbol[k],$jscomp.defineProperty(h,k,{configurable:!0,writable:!0,value:f})))};$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(f,g){return $jscomp.findInternal(this,f,g).v}},"es6","es3");
|
||||
(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(f){return c(f,window,document)}):"object"===typeof exports?module.exports=function(f,g){f||(f=window);g&&g.fn.dataTable||(g=require("datatables.net")(f,g).$);return c(g,f,f.document)}:c(jQuery,window,document)})(function(c,f,g,h){var k=c.fn.dataTable,m=function(a,b){this instanceof m?(b===h&&(b={}),a=c.fn.dataTable.Api(a),this.s={dt:a.settings()[0],dtApi:a,tableTop:0,tableBottom:0,redrawTop:0,redrawBottom:0,
|
||||
autoHeight:!0,viewportRows:0,stateTO:null,stateSaveThrottle:function(){},drawTO:null,heights:{jump:null,page:null,virtual:null,scroll:null,row:null,viewport:null,labelHeight:0,xbar:0},topRowFloat:0,scrollDrawDiff:null,loaderVisible:!1,forceReposition:!1,baseRowTop:0,baseScrollTop:0,mousedown:!1,lastScrollTop:0},this.s=c.extend(this.s,m.oDefaults,b),this.s.heights.row=this.s.rowHeight,this.dom={force:g.createElement("div"),label:c('<div class="dts_label">0</div>'),scroller:null,table:null,loader:null},
|
||||
this.s.dt.oScroller||(this.s.dt.oScroller=this,this.construct())):alert("Scroller warning: Scroller must be initialised with the 'new' keyword.")};c.extend(m.prototype,{measure:function(a){this.s.autoHeight&&this._calcRowHeight();var b=this.s.heights;b.row&&(b.viewport=this._parseHeight(c(this.dom.scroller).css("max-height")),this.s.viewportRows=parseInt(b.viewport/b.row,10)+1,this.s.dt._iDisplayLength=this.s.viewportRows*this.s.displayBuffer);var d=this.dom.label.outerHeight();b.xbar=this.dom.scroller.offsetHeight-
|
||||
this.dom.scroller.clientHeight;b.labelHeight=d;(a===h||a)&&this.s.dt.oInstance.fnDraw(!1)},pageInfo:function(){var a=this.dom.scroller.scrollTop,b=this.s.dt.fnRecordsDisplay(),d=Math.ceil(this.pixelsToRow(a+this.s.heights.viewport,!1,this.s.ani));return{start:Math.floor(this.pixelsToRow(a,!1,this.s.ani)),end:b<d?b-1:d-1}},pixelsToRow:function(a,b,d){a-=this.s.baseScrollTop;d=d?(this._domain("physicalToVirtual",this.s.baseScrollTop)+a)/this.s.heights.row:a/this.s.heights.row+this.s.baseRowTop;return b||
|
||||
b===h?parseInt(d,10):d},rowToPixels:function(a,b,d){a-=this.s.baseRowTop;d=d?this._domain("virtualToPhysical",this.s.baseScrollTop):this.s.baseScrollTop;d+=a*this.s.heights.row;return b||b===h?parseInt(d,10):d},scrollToRow:function(a,b){var d=this,e=!1,l=this.rowToPixels(a),n=a-(this.s.displayBuffer-1)/2*this.s.viewportRows;0>n&&(n=0);(l>this.s.redrawBottom||l<this.s.redrawTop)&&this.s.dt._iDisplayStart!==n&&(e=!0,l=this._domain("virtualToPhysical",a*this.s.heights.row),this.s.redrawTop<l&&l<this.s.redrawBottom&&
|
||||
(this.s.forceReposition=!0,b=!1));b===h||b?(this.s.ani=e,c(this.dom.scroller).animate({scrollTop:l},function(){setTimeout(function(){d.s.ani=!1},250)})):c(this.dom.scroller).scrollTop(l)},construct:function(){var a=this,b=this.s.dtApi;if(this.s.dt.oFeatures.bPaginate){this.dom.force.style.position="relative";this.dom.force.style.top="0px";this.dom.force.style.left="0px";this.dom.force.style.width="1px";this.dom.scroller=c("div."+this.s.dt.oClasses.sScrollBody,this.s.dt.nTableWrapper)[0];this.dom.scroller.appendChild(this.dom.force);
|
||||
this.dom.scroller.style.position="relative";this.dom.table=c(">table",this.dom.scroller)[0];this.dom.table.style.position="absolute";this.dom.table.style.top="0px";this.dom.table.style.left="0px";c(b.table().container()).addClass("dts DTS");this.s.loadingIndicator&&(this.dom.loader=c('<div class="dataTables_processing dts_loading">'+this.s.dt.oLanguage.sLoadingRecords+"</div>").css("display","none"),c(this.dom.scroller.parentNode).css("position","relative").append(this.dom.loader));this.dom.label.appendTo(this.dom.scroller);
|
||||
this.s.heights.row&&"auto"!=this.s.heights.row&&(this.s.autoHeight=!1);this.s.ingnoreScroll=!0;c(this.dom.scroller).on("scroll.dt-scroller",function(l){a._scroll.call(a)});c(this.dom.scroller).on("touchstart.dt-scroller",function(){a._scroll.call(a)});c(this.dom.scroller).on("mousedown.dt-scroller",function(){a.s.mousedown=!0}).on("mouseup.dt-scroller",function(){a.s.labelVisible=!1;a.s.mousedown=!1;a.dom.label.css("display","none")});c(f).on("resize.dt-scroller",function(){a.measure(!1);a._info()});
|
||||
var d=!0,e=b.state.loaded();b.on("stateSaveParams.scroller",function(l,n,p){d&&e?(p.scroller=e.scroller,d=!1):p.scroller={topRow:a.s.topRowFloat,baseScrollTop:a.s.baseScrollTop,baseRowTop:a.s.baseRowTop,scrollTop:a.s.lastScrollTop}});e&&e.scroller&&(this.s.topRowFloat=e.scroller.topRow,this.s.baseScrollTop=e.scroller.baseScrollTop,this.s.baseRowTop=e.scroller.baseRowTop);this.measure(!1);a.s.stateSaveThrottle=a.s.dt.oApi._fnThrottle(function(){a.s.dtApi.state.save()},500);b.on("init.scroller",function(){a.measure(!1);
|
||||
a.s.scrollType="jump";a._draw();b.on("draw.scroller",function(){a._draw()})});b.on("preDraw.dt.scroller",function(){a._scrollForce()});b.on("destroy.scroller",function(){c(f).off("resize.dt-scroller");c(a.dom.scroller).off(".dt-scroller");c(a.s.dt.nTable).off(".scroller");c(a.s.dt.nTableWrapper).removeClass("DTS");c("div.DTS_Loading",a.dom.scroller.parentNode).remove();a.dom.table.style.position="";a.dom.table.style.top="";a.dom.table.style.left=""})}else this.s.dt.oApi._fnLog(this.s.dt,0,"Pagination must be enabled for Scroller")},
|
||||
_calcRowHeight:function(){var a=this.s.dt,b=a.nTable,d=b.cloneNode(!1),e=c("<tbody/>").appendTo(d),l=c('<div class="'+a.oClasses.sWrapper+' DTS"><div class="'+a.oClasses.sScrollWrapper+'"><div class="'+a.oClasses.sScrollBody+'"></div></div></div>');c("tbody tr:lt(4)",b).clone().appendTo(e);var n=c("tr",e).length;if(1===n)e.prepend("<tr><td> </td></tr>"),e.append("<tr><td> </td></tr>");else for(;3>n;n++)e.append("<tr><td> </td></tr>");c("div."+a.oClasses.sScrollBody,l).append(d);a=this.s.dt.nHolding||
|
||||
b.parentNode;c(a).is(":visible")||(a="body");l.find("input").removeAttr("name");l.appendTo(a);this.s.heights.row=c("tr",e).eq(1).outerHeight();l.remove()},_draw:function(){var a=this,b=this.s.heights,d=this.dom.scroller.scrollTop,e=c(this.s.dt.nTable).height(),l=this.s.dt._iDisplayStart,n=this.s.dt._iDisplayLength,p=this.s.dt.fnRecordsDisplay();this.s.skip=!0;!this.s.dt.bSorted&&!this.s.dt.bFiltered||0!==l||this.s.dt._drawHold||(this.s.topRowFloat=0);d="jump"===this.s.scrollType?this._domain("virtualToPhysical",
|
||||
this.s.topRowFloat*b.row):d;this.s.baseScrollTop=d;this.s.baseRowTop=this.s.topRowFloat;var r=d-(this.s.topRowFloat-l)*b.row;0===l?r=0:l+n>=p&&(r=b.scroll-e);this.dom.table.style.top=r+"px";this.s.tableTop=r;this.s.tableBottom=e+this.s.tableTop;e=(d-this.s.tableTop)*this.s.boundaryScale;this.s.redrawTop=d-e;this.s.redrawBottom=d+e>b.scroll-b.viewport-b.row?b.scroll-b.viewport-b.row:d+e;this.s.skip=!1;this.s.dt.oFeatures.bStateSave&&null!==this.s.dt.oLoadedState&&"undefined"!=typeof this.s.dt.oLoadedState.scroller?
|
||||
((b=!this.s.dt.sAjaxSource&&!a.s.dt.ajax||this.s.dt.oFeatures.bServerSide?!1:!0)&&2==this.s.dt.iDraw||!b&&1==this.s.dt.iDraw)&&setTimeout(function(){c(a.dom.scroller).scrollTop(a.s.dt.oLoadedState.scroller.scrollTop);setTimeout(function(){a.s.ingnoreScroll=!1},0)},0):a.s.ingnoreScroll=!1;this.s.dt.oFeatures.bInfo&&setTimeout(function(){a._info.call(a)},0);c(this.s.dt.nTable).triggerHandler("position.dts.dt",r);this.dom.loader&&this.s.loaderVisible&&(this.dom.loader.css("display","none"),this.s.loaderVisible=
|
||||
!1)},_domain:function(a,b){var d=this.s.heights;if(d.virtual===d.scroll||1E4>b)return b;if("virtualToPhysical"===a&&b>=d.virtual-1E4)return a=d.virtual-b,d.scroll-a;if("physicalToVirtual"===a&&b>=d.scroll-1E4)return a=d.scroll-b,d.virtual-a;d=(d.virtual-1E4-1E4)/(d.scroll-1E4-1E4);var e=1E4-1E4*d;return"virtualToPhysical"===a?(b-e)/d:d*b+e},_info:function(){if(this.s.dt.oFeatures.bInfo){var a=this.s.dt,b=a.oLanguage,d=this.dom.scroller.scrollTop,e=Math.floor(this.pixelsToRow(d,!1,this.s.ani)+1),l=
|
||||
a.fnRecordsTotal(),n=a.fnRecordsDisplay();d=Math.ceil(this.pixelsToRow(d+this.s.heights.viewport,!1,this.s.ani));d=n<d?n:d;var p=a.fnFormatNumber(e),r=a.fnFormatNumber(d),t=a.fnFormatNumber(l),u=a.fnFormatNumber(n);p=0===a.fnRecordsDisplay()&&a.fnRecordsDisplay()==a.fnRecordsTotal()?b.sInfoEmpty+b.sInfoPostFix:0===a.fnRecordsDisplay()?b.sInfoEmpty+" "+b.sInfoFiltered.replace("_MAX_",t)+b.sInfoPostFix:a.fnRecordsDisplay()==a.fnRecordsTotal()?b.sInfo.replace("_START_",p).replace("_END_",r).replace("_MAX_",
|
||||
t).replace("_TOTAL_",u)+b.sInfoPostFix:b.sInfo.replace("_START_",p).replace("_END_",r).replace("_MAX_",t).replace("_TOTAL_",u)+" "+b.sInfoFiltered.replace("_MAX_",a.fnFormatNumber(a.fnRecordsTotal()))+b.sInfoPostFix;(b=b.fnInfoCallback)&&(p=b.call(a.oInstance,a,e,d,l,n,p));e=a.aanFeatures.i;if("undefined"!=typeof e)for(l=0,n=e.length;l<n;l++)c(e[l]).html(p);c(a.nTable).triggerHandler("info.dt")}},_parseHeight:function(a){var b,d=/^([+-]?(?:\d+(?:\.\d+)?|\.\d+))(px|em|rem|vh)$/.exec(a);if(null===d)return 0;
|
||||
a=parseFloat(d[1]);d=d[2];"px"===d?b=a:"vh"===d?b=a/100*c(f).height():"rem"===d?b=a*parseFloat(c(":root").css("font-size")):"em"===d&&(b=a*parseFloat(c("body").css("font-size")));return b?b:0},_scroll:function(){var a=this,b=this.s.heights,d=this.dom.scroller.scrollTop;if(!this.s.skip&&!this.s.ingnoreScroll&&d!==this.s.lastScrollTop)if(this.s.dt.bFiltered||this.s.dt.bSorted)this.s.lastScrollTop=0;else{this._info();clearTimeout(this.s.stateTO);this.s.stateTO=setTimeout(function(){a.s.dtApi.state.save()},
|
||||
250);this.s.scrollType=Math.abs(d-this.s.lastScrollTop)>b.viewport?"jump":"cont";this.s.topRowFloat="cont"===this.s.scrollType?this.pixelsToRow(d,!1,!1):this._domain("physicalToVirtual",d)/b.row;0>this.s.topRowFloat&&(this.s.topRowFloat=0);if(this.s.forceReposition||d<this.s.redrawTop||d>this.s.redrawBottom){var e=Math.ceil((this.s.displayBuffer-1)/2*this.s.viewportRows);e=parseInt(this.s.topRowFloat,10)-e;this.s.forceReposition=!1;0>=e?e=0:e+this.s.dt._iDisplayLength>this.s.dt.fnRecordsDisplay()?
|
||||
(e=this.s.dt.fnRecordsDisplay()-this.s.dt._iDisplayLength,0>e&&(e=0)):0!==e%2&&e++;this.s.targetTop=e;e!=this.s.dt._iDisplayStart&&(this.s.tableTop=c(this.s.dt.nTable).offset().top,this.s.tableBottom=c(this.s.dt.nTable).height()+this.s.tableTop,e=function(){a.s.dt._iDisplayStart=a.s.targetTop;a.s.dt.oApi._fnDraw(a.s.dt)},this.s.dt.oFeatures.bServerSide?(this.s.forceReposition=!0,clearTimeout(this.s.drawTO),this.s.drawTO=setTimeout(e,this.s.serverWait)):e(),this.dom.loader&&!this.s.loaderVisible&&
|
||||
(this.dom.loader.css("display","block"),this.s.loaderVisible=!0))}else this.s.topRowFloat=this.pixelsToRow(d,!1,!0);this.s.lastScrollTop=d;this.s.stateSaveThrottle();"jump"===this.s.scrollType&&this.s.mousedown&&(this.s.labelVisible=!0);this.s.labelVisible&&(b=(b.viewport-b.labelHeight-b.xbar)/b.scroll,this.dom.label.html(this.s.dt.fnFormatNumber(parseInt(this.s.topRowFloat,10)+1)).css("top",d+d*b).css("display","block"))}},_scrollForce:function(){var a=this.s.heights;a.virtual=a.row*this.s.dt.fnRecordsDisplay();
|
||||
a.scroll=a.virtual;1E6<a.scroll&&(a.scroll=1E6);this.dom.force.style.height=a.scroll>this.s.heights.row?a.scroll+"px":this.s.heights.row+"px"}});m.defaults={boundaryScale:.5,displayBuffer:9,loadingIndicator:!1,rowHeight:"auto",serverWait:200};m.oDefaults=m.defaults;m.version="2.0.5";c(g).on("preInit.dt.dtscroller",function(a,b){if("dt"===a.namespace){a=b.oInit.scroller;var d=k.defaults.scroller;if(a||d)d=c.extend({},a,d),!1!==a&&new m(b,d)}});c.fn.dataTable.Scroller=m;c.fn.DataTable.Scroller=m;var q=
|
||||
c.fn.dataTable.Api;q.register("scroller()",function(){return this});q.register("scroller().rowToPixels()",function(a,b,d){var e=this.context;if(e.length&&e[0].oScroller)return e[0].oScroller.rowToPixels(a,b,d)});q.register("scroller().pixelsToRow()",function(a,b,d){var e=this.context;if(e.length&&e[0].oScroller)return e[0].oScroller.pixelsToRow(a,b,d)});q.register(["scroller().scrollToRow()","scroller.toPosition()"],function(a,b){this.iterator("table",function(d){d.oScroller&&d.oScroller.scrollToRow(a,
|
||||
b)});return this});q.register("row().scrollTo()",function(a){var b=this;this.iterator("row",function(d,e){d.oScroller&&(e=b.rows({order:"applied",search:"applied"}).indexes().indexOf(e),d.oScroller.scrollToRow(e,a))});return this});q.register("scroller.measure()",function(a){this.iterator("table",function(b){b.oScroller&&b.oScroller.measure(a)});return this});q.register("scroller.page()",function(){var a=this.context;if(a.length&&a[0].oScroller)return a[0].oScroller.pageInfo()});return m});
|
||||
+187
@@ -0,0 +1,187 @@
|
||||
/*!
|
||||
Copyright 2008-2021 SpryMedia Ltd.
|
||||
|
||||
This source file is free software, available under the following license:
|
||||
MIT license - http://datatables.net/license
|
||||
|
||||
This source file is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
||||
|
||||
For details please refer to: http://www.datatables.net
|
||||
DataTables 1.11.5
|
||||
©2008-2021 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(l,z,A){l instanceof String&&(l=String(l));for(var q=l.length,E=0;E<q;E++){var P=l[E];if(z.call(A,P,E,l))return{i:E,v:P}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(l,z,A){if(l==Array.prototype||l==Object.prototype)return l;l[z]=A.value;return l};$jscomp.getGlobal=function(l){l=["object"==typeof globalThis&&globalThis,l,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var z=0;z<l.length;++z){var A=l[z];if(A&&A.Math==Math)return A}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(l,z){var A=$jscomp.propertyToPolyfillSymbol[z];if(null==A)return l[z];A=l[A];return void 0!==A?A:l[z]};
|
||||
$jscomp.polyfill=function(l,z,A,q){z&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(l,z,A,q):$jscomp.polyfillUnisolated(l,z,A,q))};$jscomp.polyfillUnisolated=function(l,z,A,q){A=$jscomp.global;l=l.split(".");for(q=0;q<l.length-1;q++){var E=l[q];if(!(E in A))return;A=A[E]}l=l[l.length-1];q=A[l];z=z(q);z!=q&&null!=z&&$jscomp.defineProperty(A,l,{configurable:!0,writable:!0,value:z})};
|
||||
$jscomp.polyfillIsolated=function(l,z,A,q){var E=l.split(".");l=1===E.length;q=E[0];q=!l&&q in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var P=0;P<E.length-1;P++){var ma=E[P];if(!(ma in q))return;q=q[ma]}E=E[E.length-1];A=$jscomp.IS_SYMBOL_NATIVE&&"es6"===A?q[E]:null;z=z(A);null!=z&&(l?$jscomp.defineProperty($jscomp.polyfills,E,{configurable:!0,writable:!0,value:z}):z!==A&&($jscomp.propertyToPolyfillSymbol[E]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(E):$jscomp.POLYFILL_PREFIX+E,
|
||||
E=$jscomp.propertyToPolyfillSymbol[E],$jscomp.defineProperty(q,E,{configurable:!0,writable:!0,value:z})))};$jscomp.polyfill("Array.prototype.find",function(l){return l?l:function(z,A){return $jscomp.findInternal(this,z,A).v}},"es6","es3");
|
||||
(function(l){"function"===typeof define&&define.amd?define(["jquery"],function(z){return l(z,window,document)}):"object"===typeof exports?module.exports=function(z,A){z||(z=window);A||(A="undefined"!==typeof window?require("jquery"):require("jquery")(z));return l(A,z,z.document)}:window.DataTable=l(jQuery,window,document)})(function(l,z,A,q){function E(a){var b,c,d={};l.each(a,function(e,h){(b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" ")&&(c=e.replace(b[0],
|
||||
b[2].toLowerCase()),d[c]=e,"o"===b[1]&&E(a[e]))});a._hungarianMap=d}function P(a,b,c){a._hungarianMap||E(a);var d;l.each(b,function(e,h){d=a._hungarianMap[e];d===q||!c&&b[d]!==q||("o"===d.charAt(0)?(b[d]||(b[d]={}),l.extend(!0,b[d],b[e]),P(a[d],b[d],c)):b[d]=b[e])})}function ma(a){var b=u.defaults.oLanguage,c=b.sDecimal;c&&Xa(c);if(a){var d=a.sZeroRecords;!a.sEmptyTable&&d&&"No data available in table"===b.sEmptyTable&&X(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&d&&"Loading..."===b.sLoadingRecords&&
|
||||
X(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&c!==a&&Xa(a)}}function zb(a){S(a,"ordering","bSort");S(a,"orderMulti","bSortMulti");S(a,"orderClasses","bSortClasses");S(a,"orderCellsTop","bSortCellsTop");S(a,"order","aaSorting");S(a,"orderFixed","aaSortingFixed");S(a,"paging","bPaginate");S(a,"pagingType","sPaginationType");S(a,"pageLength","iDisplayLength");S(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":
|
||||
"");"boolean"===typeof a.scrollX&&(a.scrollX=a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&P(u.models.oSearch,a[b])}function Ab(a){S(a,"orderable","bSortable");S(a,"orderData","aDataSort");S(a,"orderSequence","asSorting");S(a,"orderDataType","sortDataType");var b=a.aDataSort;"number"!==typeof b||Array.isArray(b)||(a.aDataSort=[b])}function Bb(a){if(!u.__browser){var b={};u.__browser=b;var c=l("<div/>").css({position:"fixed",top:0,left:-1*l(z).scrollLeft(),height:1,
|
||||
width:1,overflow:"hidden"}).append(l("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(l("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}l.extend(a.oBrowser,u.__browser);a.oScroll.iBarWidth=u.__browser.barWidth}
|
||||
function Cb(a,b,c,d,e,h){var f=!1;if(c!==q){var g=c;f=!0}for(;d!==e;)a.hasOwnProperty(d)&&(g=f?b(g,a[d],d,a):a[d],f=!0,d+=h);return g}function Ya(a,b){var c=u.defaults.column,d=a.aoColumns.length;c=l.extend({},u.models.oColumn,c,{nTh:b?b:A.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=l.extend({},u.models.oSearch,c[d]);Ga(a,d,l(b).data())}function Ga(a,b,c){b=a.aoColumns[b];
|
||||
var d=a.oClasses,e=l(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=e.attr("width")||null;var h=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);h&&(b.sWidthOrig=h[1])}c!==q&&null!==c&&(Ab(c),P(u.defaults.column,c,!0),c.mDataProp===q||c.mData||(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),c.sClass&&e.addClass(c.sClass),l.extend(b,c),X(b,c,"sWidth","sWidthOrig"),c.iDataSort!==q&&(b.aDataSort=[c.iDataSort]),X(b,c,"aDataSort"));var f=b.mData,g=na(f),
|
||||
k=b.mRender?na(b.mRender):null;c=function(m){return"string"===typeof m&&-1!==m.indexOf("@")};b._bAttrSrc=l.isPlainObject(f)&&(c(f.sort)||c(f.type)||c(f.filter));b._setter=null;b.fnGetData=function(m,n,p){var t=g(m,n,q,p);return k&&n?k(t,n,m,p):t};b.fnSetData=function(m,n,p){return ha(f)(m,n,p)};"number"!==typeof f&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==l.inArray("asc",b.asSorting);c=-1!==l.inArray("desc",b.asSorting);b.bSortable&&(a||c)?a&&!c?
|
||||
(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI):(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI="")}function sa(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Za(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;""===b.sY&&""===b.sX||Ha(a);F(a,null,"column-sizing",[a])}function ta(a,b){a=Ia(a,"bVisible");
|
||||
return"number"===typeof a[b]?a[b]:null}function ua(a,b){a=Ia(a,"bVisible");b=l.inArray(b,a);return-1!==b?b:null}function oa(a){var b=0;l.each(a.aoColumns,function(c,d){d.bVisible&&"none"!==l(d.nTh).css("display")&&b++});return b}function Ia(a,b){var c=[];l.map(a.aoColumns,function(d,e){d[b]&&c.push(e)});return c}function $a(a){var b=a.aoColumns,c=a.aoData,d=u.ext.type.detect,e,h,f;var g=0;for(e=b.length;g<e;g++){var k=b[g];var m=[];if(!k.sType&&k._sManualType)k.sType=k._sManualType;else if(!k.sType){var n=
|
||||
0;for(h=d.length;n<h;n++){var p=0;for(f=c.length;p<f;p++){m[p]===q&&(m[p]=T(a,p,g,"type"));var t=d[n](m[p],a);if(!t&&n!==d.length-1)break;if("html"===t&&!Z(m[p]))break}if(t){k.sType=t;break}}k.sType||(k.sType="string")}}}function Db(a,b,c,d){var e,h,f,g=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){var k=b[e];var m=k.targets!==q?k.targets:k.aTargets;Array.isArray(m)||(m=[m]);var n=0;for(h=m.length;n<h;n++)if("number"===typeof m[n]&&0<=m[n]){for(;g.length<=m[n];)Ya(a);d(m[n],k)}else if("number"===typeof m[n]&&
|
||||
0>m[n])d(g.length+m[n],k);else if("string"===typeof m[n]){var p=0;for(f=g.length;p<f;p++)("_all"==m[n]||l(g[p].nTh).hasClass(m[n]))&&d(p,k)}}if(c)for(e=0,a=c.length;e<a;e++)d(e,c[e])}function ia(a,b,c,d){var e=a.aoData.length,h=l.extend(!0,{},u.models.oRow,{src:c?"dom":"data",idx:e});h._aData=b;a.aoData.push(h);for(var f=a.aoColumns,g=0,k=f.length;g<k;g++)f[g].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==q&&(a.aIds[b]=h);!c&&a.oFeatures.bDeferRender||ab(a,e,c,d);return e}function Ja(a,
|
||||
b){var c;b instanceof l||(b=l(b));return b.map(function(d,e){c=bb(a,e);return ia(a,c.data,e,c.cells)})}function T(a,b,c,d){"search"===d?d="filter":"order"===d&&(d="sort");var e=a.iDraw,h=a.aoColumns[c],f=a.aoData[b]._aData,g=h.sDefaultContent,k=h.fnGetData(f,d,{settings:a,row:b,col:c});if(k===q)return a.iDrawError!=e&&null===g&&(da(a,0,"Requested unknown parameter "+("function"==typeof h.mData?"{function}":"'"+h.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),g;if((k===f||null===k)&&null!==
|
||||
g&&d!==q)k=g;else if("function"===typeof k)return k.call(f);if(null===k&&"display"===d)return"";"filter"===d&&(a=u.ext.type.search,a[h.sType]&&(k=a[h.sType](k)));return k}function Eb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}function cb(a){return l.map(a.match(/(\\.|[^\.])+/g)||[""],function(b){return b.replace(/\\\./g,".")})}function db(a){return U(a.aoData,"_aData")}function Ka(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}
|
||||
function La(a,b,c){for(var d=-1,e=0,h=a.length;e<h;e++)a[e]==b?d=e:a[e]>b&&a[e]--; -1!=d&&c===q&&a.splice(d,1)}function va(a,b,c,d){var e=a.aoData[b],h,f=function(k,m){for(;k.childNodes.length;)k.removeChild(k.firstChild);k.innerHTML=T(a,b,m,"display")};if("dom"!==c&&(c&&"auto"!==c||"dom"!==e.src)){var g=e.anCells;if(g)if(d!==q)f(g[d],d);else for(c=0,h=g.length;c<h;c++)f(g[c],c)}else e._aData=bb(a,e,d,d===q?q:e._aData).data;e._aSortData=null;e._aFilterData=null;f=a.aoColumns;if(d!==q)f[d].sType=null;
|
||||
else{c=0;for(h=f.length;c<h;c++)f[c].sType=null;eb(a,e)}}function bb(a,b,c,d){var e=[],h=b.firstChild,f,g=0,k,m=a.aoColumns,n=a._rowReadObject;d=d!==q?d:n?{}:[];var p=function(x,w){if("string"===typeof x){var r=x.indexOf("@");-1!==r&&(r=x.substring(r+1),ha(x)(d,w.getAttribute(r)))}},t=function(x){if(c===q||c===g)f=m[g],k=x.innerHTML.trim(),f&&f._bAttrSrc?(ha(f.mData._)(d,k),p(f.mData.sort,x),p(f.mData.type,x),p(f.mData.filter,x)):n?(f._setter||(f._setter=ha(f.mData)),f._setter(d,k)):d[g]=k;g++};if(h)for(;h;){var v=
|
||||
h.nodeName.toUpperCase();if("TD"==v||"TH"==v)t(h),e.push(h);h=h.nextSibling}else for(e=b.anCells,h=0,v=e.length;h<v;h++)t(e[h]);(b=b.firstChild?b:b.nTr)&&(b=b.getAttribute("id"))&&ha(a.rowId)(d,b);return{data:d,cells:e}}function ab(a,b,c,d){var e=a.aoData[b],h=e._aData,f=[],g,k;if(null===e.nTr){var m=c||A.createElement("tr");e.nTr=m;e.anCells=f;m._DT_RowIndex=b;eb(a,e);var n=0;for(g=a.aoColumns.length;n<g;n++){var p=a.aoColumns[n];e=(k=c?!1:!0)?A.createElement(p.sCellType):d[n];e._DT_CellIndex={row:b,
|
||||
column:n};f.push(e);if(k||!(!p.mRender&&p.mData===n||l.isPlainObject(p.mData)&&p.mData._===n+".display"))e.innerHTML=T(a,b,n,"display");p.sClass&&(e.className+=" "+p.sClass);p.bVisible&&!c?m.appendChild(e):!p.bVisible&&c&&e.parentNode.removeChild(e);p.fnCreatedCell&&p.fnCreatedCell.call(a.oInstance,e,T(a,b,n),h,b,n)}F(a,"aoRowCreatedCallback",null,[m,h,b,f])}}function eb(a,b){var c=b.nTr,d=b._aData;if(c){if(a=a.rowIdFn(d))c.id=a;d.DT_RowClass&&(a=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?Ma(b.__rowc.concat(a)):
|
||||
a,l(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&l(c).attr(d.DT_RowAttr);d.DT_RowData&&l(c).data(d.DT_RowData)}}function Fb(a){var b,c,d=a.nTHead,e=a.nTFoot,h=0===l("th, td",d).length,f=a.oClasses,g=a.aoColumns;h&&(c=l("<tr/>").appendTo(d));var k=0;for(b=g.length;k<b;k++){var m=g[k];var n=l(m.nTh).addClass(m.sClass);h&&n.appendTo(c);a.oFeatures.bSort&&(n.addClass(m.sSortingClass),!1!==m.bSortable&&(n.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),fb(a,m.nTh,
|
||||
k)));m.sTitle!=n[0].innerHTML&&n.html(m.sTitle);gb(a,"header")(a,n,m,f)}h&&wa(a.aoHeader,d);l(d).children("tr").children("th, td").addClass(f.sHeaderTH);l(e).children("tr").children("th, td").addClass(f.sFooterTH);if(null!==e)for(a=a.aoFooter[0],k=0,b=a.length;k<b;k++)m=g[k],m.nTf=a[k].cell,m.sClass&&l(m.nTf).addClass(m.sClass)}function xa(a,b,c){var d,e,h=[],f=[],g=a.aoColumns.length;if(b){c===q&&(c=!1);var k=0;for(d=b.length;k<d;k++){h[k]=b[k].slice();h[k].nTr=b[k].nTr;for(e=g-1;0<=e;e--)a.aoColumns[e].bVisible||
|
||||
c||h[k].splice(e,1);f.push([])}k=0;for(d=h.length;k<d;k++){if(a=h[k].nTr)for(;e=a.firstChild;)a.removeChild(e);e=0;for(b=h[k].length;e<b;e++){var m=g=1;if(f[k][e]===q){a.appendChild(h[k][e].cell);for(f[k][e]=1;h[k+g]!==q&&h[k][e].cell==h[k+g][e].cell;)f[k+g][e]=1,g++;for(;h[k][e+m]!==q&&h[k][e].cell==h[k][e+m].cell;){for(c=0;c<g;c++)f[k+c][e+m]=1;m++}l(h[k][e].cell).attr("rowspan",g).attr("colspan",m)}}}}}function ja(a,b){var c="ssp"==Q(a),d=a.iInitDisplayStart;d!==q&&-1!==d&&(a._iDisplayStart=c?
|
||||
d:d>=a.fnRecordsDisplay()?0:d,a.iInitDisplayStart=-1);c=F(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==l.inArray(!1,c))V(a,!1);else{c=[];var e=0;d=a.asStripeClasses;var h=d.length,f=a.oLanguage,g="ssp"==Q(a),k=a.aiDisplay,m=a._iDisplayStart,n=a.fnDisplayEnd();a.bDrawing=!0;if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,V(a,!1);else if(!g)a.iDraw++;else if(!a.bDestroying&&!b){Gb(a);return}if(0!==k.length)for(b=g?a.aoData.length:n,f=g?0:m;f<b;f++){g=k[f];var p=a.aoData[g];null===p.nTr&&ab(a,g);var t=
|
||||
p.nTr;if(0!==h){var v=d[e%h];p._sRowStripe!=v&&(l(t).removeClass(p._sRowStripe).addClass(v),p._sRowStripe=v)}F(a,"aoRowCallback",null,[t,p._aData,e,f,g]);c.push(t);e++}else e=f.sZeroRecords,1==a.iDraw&&"ajax"==Q(a)?e=f.sLoadingRecords:f.sEmptyTable&&0===a.fnRecordsTotal()&&(e=f.sEmptyTable),c[0]=l("<tr/>",{"class":h?d[0]:""}).append(l("<td />",{valign:"top",colSpan:oa(a),"class":a.oClasses.sRowEmpty}).html(e))[0];F(a,"aoHeaderCallback","header",[l(a.nTHead).children("tr")[0],db(a),m,n,k]);F(a,"aoFooterCallback",
|
||||
"footer",[l(a.nTFoot).children("tr")[0],db(a),m,n,k]);d=l(a.nTBody);d.children().detach();d.append(l(c));F(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function ka(a,b){var c=a.oFeatures,d=c.bFilter;c.bSort&&Hb(a);d?ya(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;ja(a);a._drawHold=!1}function Ib(a){var b=a.oClasses,c=l(a.nTable);c=l("<div/>").insertBefore(c);var d=a.oFeatures,e=l("<div/>",{id:a.sTableId+"_wrapper",
|
||||
"class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var h=a.sDom.split(""),f,g,k,m,n,p,t=0;t<h.length;t++){f=null;g=h[t];if("<"==g){k=l("<div/>")[0];m=h[t+1];if("'"==m||'"'==m){n="";for(p=2;h[t+p]!=m;)n+=h[t+p],p++;"H"==n?n=b.sJUIHeader:"F"==n&&(n=b.sJUIFooter);-1!=n.indexOf(".")?(m=n.split("."),k.id=m[0].substr(1,m[0].length-1),k.className=m[1]):"#"==n.charAt(0)?k.id=n.substr(1,n.length-1):k.className=n;t+=p}e.append(k);
|
||||
e=l(k)}else if(">"==g)e=e.parent();else if("l"==g&&d.bPaginate&&d.bLengthChange)f=Jb(a);else if("f"==g&&d.bFilter)f=Kb(a);else if("r"==g&&d.bProcessing)f=Lb(a);else if("t"==g)f=Mb(a);else if("i"==g&&d.bInfo)f=Nb(a);else if("p"==g&&d.bPaginate)f=Ob(a);else if(0!==u.ext.feature.length)for(k=u.ext.feature,p=0,m=k.length;p<m;p++)if(g==k[p].cFeature){f=k[p].fnInit(a);break}f&&(k=a.aanFeatures,k[g]||(k[g]=[]),k[g].push(f),e.append(f))}c.replaceWith(e);a.nHolding=null}function wa(a,b){b=l(b).children("tr");
|
||||
var c,d,e;a.splice(0,a.length);var h=0;for(e=b.length;h<e;h++)a.push([]);h=0;for(e=b.length;h<e;h++){var f=b[h];for(c=f.firstChild;c;){if("TD"==c.nodeName.toUpperCase()||"TH"==c.nodeName.toUpperCase()){var g=1*c.getAttribute("colspan");var k=1*c.getAttribute("rowspan");g=g&&0!==g&&1!==g?g:1;k=k&&0!==k&&1!==k?k:1;var m=0;for(d=a[h];d[m];)m++;var n=m;var p=1===g?!0:!1;for(d=0;d<g;d++)for(m=0;m<k;m++)a[h+m][n+d]={cell:c,unique:p},a[h+m].nTr=f}c=c.nextSibling}}}function Na(a,b,c){var d=[];c||(c=a.aoHeader,
|
||||
b&&(c=[],wa(c,b)));b=0;for(var e=c.length;b<e;b++)for(var h=0,f=c[b].length;h<f;h++)!c[b][h].unique||d[h]&&a.bSortCellsTop||(d[h]=c[b][h].cell);return d}function Oa(a,b,c){F(a,"aoServerParams","serverParams",[b]);if(b&&Array.isArray(b)){var d={},e=/(.*?)\[\]$/;l.each(b,function(n,p){(n=p.name.match(e))?(n=n[0],d[n]||(d[n]=[]),d[n].push(p.value)):d[p.name]=p.value});b=d}var h=a.ajax,f=a.oInstance,g=function(n){var p=a.jqXHR?a.jqXHR.status:null;if(null===n||"number"===typeof p&&204==p)n={},za(a,n,[]);
|
||||
(p=n.error||n.sError)&&da(a,0,p);a.json=n;F(a,null,"xhr",[a,n,a.jqXHR]);c(n)};if(l.isPlainObject(h)&&h.data){var k=h.data;var m="function"===typeof k?k(b,a):k;b="function"===typeof k&&m?m:l.extend(!0,b,m);delete h.data}m={data:b,success:g,dataType:"json",cache:!1,type:a.sServerMethod,error:function(n,p,t){t=F(a,null,"xhr",[a,null,a.jqXHR]);-1===l.inArray(!0,t)&&("parsererror"==p?da(a,0,"Invalid JSON response",1):4===n.readyState&&da(a,0,"Ajax error",7));V(a,!1)}};a.oAjaxData=b;F(a,null,"preXhr",[a,
|
||||
b]);a.fnServerData?a.fnServerData.call(f,a.sAjaxSource,l.map(b,function(n,p){return{name:p,value:n}}),g,a):a.sAjaxSource||"string"===typeof h?a.jqXHR=l.ajax(l.extend(m,{url:h||a.sAjaxSource})):"function"===typeof h?a.jqXHR=h.call(f,b,g,a):(a.jqXHR=l.ajax(l.extend(m,h)),h.data=k)}function Gb(a){a.iDraw++;V(a,!0);Oa(a,Pb(a),function(b){Qb(a,b)})}function Pb(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,h=a.aoPreSearchCols,f=[],g=pa(a);var k=a._iDisplayStart;var m=!1!==d.bPaginate?
|
||||
a._iDisplayLength:-1;var n=function(x,w){f.push({name:x,value:w})};n("sEcho",a.iDraw);n("iColumns",c);n("sColumns",U(b,"sName").join(","));n("iDisplayStart",k);n("iDisplayLength",m);var p={draw:a.iDraw,columns:[],order:[],start:k,length:m,search:{value:e.sSearch,regex:e.bRegex}};for(k=0;k<c;k++){var t=b[k];var v=h[k];m="function"==typeof t.mData?"function":t.mData;p.columns.push({data:m,name:t.sName,searchable:t.bSearchable,orderable:t.bSortable,search:{value:v.sSearch,regex:v.bRegex}});n("mDataProp_"+
|
||||
k,m);d.bFilter&&(n("sSearch_"+k,v.sSearch),n("bRegex_"+k,v.bRegex),n("bSearchable_"+k,t.bSearchable));d.bSort&&n("bSortable_"+k,t.bSortable)}d.bFilter&&(n("sSearch",e.sSearch),n("bRegex",e.bRegex));d.bSort&&(l.each(g,function(x,w){p.order.push({column:w.col,dir:w.dir});n("iSortCol_"+x,w.col);n("sSortDir_"+x,w.dir)}),n("iSortingCols",g.length));b=u.ext.legacy.ajax;return null===b?a.sAjaxSource?f:p:b?f:p}function Qb(a,b){var c=function(f,g){return b[f]!==q?b[f]:b[g]},d=za(a,b),e=c("sEcho","draw"),h=
|
||||
c("iTotalRecords","recordsTotal");c=c("iTotalDisplayRecords","recordsFiltered");if(e!==q){if(1*e<a.iDraw)return;a.iDraw=1*e}d||(d=[]);Ka(a);a._iRecordsTotal=parseInt(h,10);a._iRecordsDisplay=parseInt(c,10);e=0;for(h=d.length;e<h;e++)ia(a,d[e]);a.aiDisplay=a.aiDisplayMaster.slice();ja(a,!0);a._bInitComplete||Pa(a,b);V(a,!1)}function za(a,b,c){a=l.isPlainObject(a.ajax)&&a.ajax.dataSrc!==q?a.ajax.dataSrc:a.sAjaxDataProp;if(!c)return"data"===a?b.aaData||b[a]:""!==a?na(a)(b):b;ha(a)(b,c)}function Kb(a){var b=
|
||||
a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,h=a.aanFeatures,f='<input type="search" class="'+b.sFilterInput+'"/>',g=d.sSearch;g=g.match(/_INPUT_/)?g.replace("_INPUT_",f):g+f;b=l("<div/>",{id:h.f?null:c+"_filter","class":b.sFilter}).append(l("<label/>").append(g));var k=function(n){var p=this.value?this.value:"";e.return&&"Enter"!==n.key||p==e.sSearch||(ya(a,{sSearch:p,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive,"return":e.return}),a._iDisplayStart=0,ja(a))};h=
|
||||
null!==a.searchDelay?a.searchDelay:"ssp"===Q(a)?400:0;var m=l("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",h?hb(k,h):k).on("mouseup",function(n){setTimeout(function(){k.call(m[0],n)},10)}).on("keypress.DT",function(n){if(13==n.keyCode)return!1}).attr("aria-controls",c);l(a.nTable).on("search.dt.DT",function(n,p){if(a===p)try{m[0]!==A.activeElement&&m.val(e.sSearch)}catch(t){}});return b[0]}function ya(a,b,c){var d=a.oPreviousSearch,
|
||||
e=a.aoPreSearchCols,h=function(g){d.sSearch=g.sSearch;d.bRegex=g.bRegex;d.bSmart=g.bSmart;d.bCaseInsensitive=g.bCaseInsensitive;d.return=g.return},f=function(g){return g.bEscapeRegex!==q?!g.bEscapeRegex:g.bRegex};$a(a);if("ssp"!=Q(a)){Rb(a,b.sSearch,c,f(b),b.bSmart,b.bCaseInsensitive,b.return);h(b);for(b=0;b<e.length;b++)Sb(a,e[b].sSearch,b,f(e[b]),e[b].bSmart,e[b].bCaseInsensitive);Tb(a)}else h(b);a.bFiltered=!0;F(a,null,"search",[a])}function Tb(a){for(var b=u.ext.search,c=a.aiDisplay,d,e,h=0,f=
|
||||
b.length;h<f;h++){for(var g=[],k=0,m=c.length;k<m;k++)e=c[k],d=a.aoData[e],b[h](a,d._aFilterData,e,d._aData,k)&&g.push(e);c.length=0;l.merge(c,g)}}function Sb(a,b,c,d,e,h){if(""!==b){var f=[],g=a.aiDisplay;d=ib(b,d,e,h);for(e=0;e<g.length;e++)b=a.aoData[g[e]]._aFilterData[c],d.test(b)&&f.push(g[e]);a.aiDisplay=f}}function Rb(a,b,c,d,e,h){e=ib(b,d,e,h);var f=a.oPreviousSearch.sSearch,g=a.aiDisplayMaster;h=[];0!==u.ext.search.length&&(c=!0);var k=Ub(a);if(0>=b.length)a.aiDisplay=g.slice();else{if(k||
|
||||
c||d||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c<b.length;c++)e.test(a.aoData[b[c]]._sFilterRow)&&h.push(b[c]);a.aiDisplay=h}}function ib(a,b,c,d){a=b?a:jb(a);c&&(a="^(?=.*?"+l.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(e){if('"'===e.charAt(0)){var h=e.match(/^"(.*)"$/);e=h?h[1]:e}return e.replace('"',"")}).join(")(?=.*?")+").*$");return new RegExp(a,d?"i":"")}function Ub(a){var b=a.aoColumns,c,d;var e=!1;var h=0;for(c=a.aoData.length;h<c;h++){var f=
|
||||
a.aoData[h];if(!f._aFilterData){var g=[];e=0;for(d=b.length;e<d;e++){var k=b[e];k.bSearchable?(k=T(a,h,e,"filter"),null===k&&(k=""),"string"!==typeof k&&k.toString&&(k=k.toString())):k="";k.indexOf&&-1!==k.indexOf("&")&&(Qa.innerHTML=k,k=tc?Qa.textContent:Qa.innerText);k.replace&&(k=k.replace(/[\r\n\u2028]/g,""));g.push(k)}f._aFilterData=g;f._sFilterRow=g.join(" ");e=!0}}return e}function Vb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function Wb(a){return{sSearch:a.search,
|
||||
bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function Nb(a){var b=a.sTableId,c=a.aanFeatures.i,d=l("<div/>",{"class":a.oClasses.sInfo,id:c?null:b+"_info"});c||(a.aoDrawCallback.push({fn:Xb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),l(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Xb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+1,e=a.fnDisplayEnd(),h=a.fnRecordsTotal(),f=a.fnRecordsDisplay(),g=
|
||||
f?c.sInfo:c.sInfoEmpty;f!==h&&(g+=" "+c.sInfoFiltered);g+=c.sInfoPostFix;g=Yb(a,g);c=c.fnInfoCallback;null!==c&&(g=c.call(a.oInstance,a,d,e,h,f,g));l(b).html(g)}}function Yb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,h=a.fnRecordsDisplay(),f=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,h)).replace(/_PAGE_/g,c.call(a,f?1:Math.ceil(d/e))).replace(/_PAGES_/g,
|
||||
c.call(a,f?1:Math.ceil(h/e)))}function Aa(a){var b=a.iInitDisplayStart,c=a.aoColumns;var d=a.oFeatures;var e=a.bDeferLoading;if(a.bInitialised){Ib(a);Fb(a);xa(a,a.aoHeader);xa(a,a.aoFooter);V(a,!0);d.bAutoWidth&&Za(a);var h=0;for(d=c.length;h<d;h++){var f=c[h];f.sWidth&&(f.nTh.style.width=K(f.sWidth))}F(a,null,"preInit",[a]);ka(a);c=Q(a);if("ssp"!=c||e)"ajax"==c?Oa(a,[],function(g){var k=za(a,g);for(h=0;h<k.length;h++)ia(a,k[h]);a.iInitDisplayStart=b;ka(a);V(a,!1);Pa(a,g)},a):(V(a,!1),Pa(a))}else setTimeout(function(){Aa(a)},
|
||||
200)}function Pa(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&sa(a);F(a,null,"plugin-init",[a,b]);F(a,"aoInitComplete","init",[a,b])}function kb(a,b){b=parseInt(b,10);a._iDisplayLength=b;lb(a);F(a,null,"length",[a,b])}function Jb(a){var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=Array.isArray(d[0]),h=e?d[0]:d;d=e?d[1]:d;e=l("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect});for(var f=0,g=h.length;f<g;f++)e[0][f]=new Option("number"===typeof d[f]?a.fnFormatNumber(d[f]):d[f],
|
||||
h[f]);var k=l("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(k[0].id=c+"_length");k.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));l("select",k).val(a._iDisplayLength).on("change.DT",function(m){kb(a,l(this).val());ja(a)});l(a.nTable).on("length.dt.DT",function(m,n,p){a===n&&l("select",k).val(p)});return k[0]}function Ob(a){var b=a.sPaginationType,c=u.ext.pager[b],d="function"===typeof c,e=function(f){ja(f)};b=l("<div/>").addClass(a.oClasses.sPaging+b)[0];
|
||||
var h=a.aanFeatures;d||c.fnInit(a,b,e);h.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(f){if(d){var g=f._iDisplayStart,k=f._iDisplayLength,m=f.fnRecordsDisplay(),n=-1===k;g=n?0:Math.ceil(g/k);k=n?1:Math.ceil(m/k);m=c(g,k);var p;n=0;for(p=h.p.length;n<p;n++)gb(f,"pageButton")(f,h.p[n],n,m,g,k)}else c.fnUpdate(f,e)},sName:"pagination"}));return b}function Ra(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,h=a.fnRecordsDisplay();0===h||-1===e?d=0:"number"===typeof b?(d=b*e,d>h&&
|
||||
(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<h&&(d+=e):"last"==b?d=Math.floor((h-1)/e)*e:da(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(F(a,null,"page",[a]),c&&ja(a));return b}function Lb(a){return l("<div/>",{id:a.aanFeatures.r?null:a.sTableId+"_processing","class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function V(a,b){a.oFeatures.bProcessing&&l(a.aanFeatures.r).css("display",b?"block":"none");
|
||||
F(a,null,"processing",[a,b])}function Mb(a){var b=l(a.nTable),c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,h=a.oClasses,f=b.children("caption"),g=f.length?f[0]._captionSide:null,k=l(b[0].cloneNode(!1)),m=l(b[0].cloneNode(!1)),n=b.children("tfoot");n.length||(n=null);k=l("<div/>",{"class":h.sScrollWrapper}).append(l("<div/>",{"class":h.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?d?K(d):null:"100%"}).append(l("<div/>",{"class":h.sScrollHeadInner}).css({"box-sizing":"content-box",
|
||||
width:c.sXInner||"100%"}).append(k.removeAttr("id").css("margin-left",0).append("top"===g?f:null).append(b.children("thead"))))).append(l("<div/>",{"class":h.sScrollBody}).css({position:"relative",overflow:"auto",width:d?K(d):null}).append(b));n&&k.append(l("<div/>",{"class":h.sScrollFoot}).css({overflow:"hidden",border:0,width:d?d?K(d):null:"100%"}).append(l("<div/>",{"class":h.sScrollFootInner}).append(m.removeAttr("id").css("margin-left",0).append("bottom"===g?f:null).append(b.children("tfoot")))));
|
||||
b=k.children();var p=b[0];h=b[1];var t=n?b[2]:null;if(d)l(h).on("scroll.DT",function(v){v=this.scrollLeft;p.scrollLeft=v;n&&(t.scrollLeft=v)});l(h).css("max-height",e);c.bCollapse||l(h).css("height",e);a.nScrollHead=p;a.nScrollBody=h;a.nScrollFoot=t;a.aoDrawCallback.push({fn:Ha,sName:"scrolling"});return k[0]}function Ha(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY;b=b.iBarWidth;var h=l(a.nScrollHead),f=h[0].style,g=h.children("div"),k=g[0].style,m=g.children("table");g=a.nScrollBody;var n=l(g),p=
|
||||
g.style,t=l(a.nScrollFoot).children("div"),v=t.children("table"),x=l(a.nTHead),w=l(a.nTable),r=w[0],C=r.style,G=a.nTFoot?l(a.nTFoot):null,aa=a.oBrowser,L=aa.bScrollOversize;U(a.aoColumns,"nTh");var O=[],I=[],H=[],ea=[],Y,Ba=function(D){D=D.style;D.paddingTop="0";D.paddingBottom="0";D.borderTopWidth="0";D.borderBottomWidth="0";D.height=0};var fa=g.scrollHeight>g.clientHeight;if(a.scrollBarVis!==fa&&a.scrollBarVis!==q)a.scrollBarVis=fa,sa(a);else{a.scrollBarVis=fa;w.children("thead, tfoot").remove();
|
||||
if(G){var ba=G.clone().prependTo(w);var la=G.find("tr");ba=ba.find("tr")}var mb=x.clone().prependTo(w);x=x.find("tr");fa=mb.find("tr");mb.find("th, td").removeAttr("tabindex");c||(p.width="100%",h[0].style.width="100%");l.each(Na(a,mb),function(D,W){Y=ta(a,D);W.style.width=a.aoColumns[Y].sWidth});G&&ca(function(D){D.style.width=""},ba);h=w.outerWidth();""===c?(C.width="100%",L&&(w.find("tbody").height()>g.offsetHeight||"scroll"==n.css("overflow-y"))&&(C.width=K(w.outerWidth()-b)),h=w.outerWidth()):
|
||||
""!==d&&(C.width=K(d),h=w.outerWidth());ca(Ba,fa);ca(function(D){var W=z.getComputedStyle?z.getComputedStyle(D).width:K(l(D).width());H.push(D.innerHTML);O.push(W)},fa);ca(function(D,W){D.style.width=O[W]},x);l(fa).css("height",0);G&&(ca(Ba,ba),ca(function(D){ea.push(D.innerHTML);I.push(K(l(D).css("width")))},ba),ca(function(D,W){D.style.width=I[W]},la),l(ba).height(0));ca(function(D,W){D.innerHTML='<div class="dataTables_sizing">'+H[W]+"</div>";D.childNodes[0].style.height="0";D.childNodes[0].style.overflow=
|
||||
"hidden";D.style.width=O[W]},fa);G&&ca(function(D,W){D.innerHTML='<div class="dataTables_sizing">'+ea[W]+"</div>";D.childNodes[0].style.height="0";D.childNodes[0].style.overflow="hidden";D.style.width=I[W]},ba);Math.round(w.outerWidth())<Math.round(h)?(la=g.scrollHeight>g.offsetHeight||"scroll"==n.css("overflow-y")?h+b:h,L&&(g.scrollHeight>g.offsetHeight||"scroll"==n.css("overflow-y"))&&(C.width=K(la-b)),""!==c&&""===d||da(a,1,"Possible column misalignment",6)):la="100%";p.width=K(la);f.width=K(la);
|
||||
G&&(a.nScrollFoot.style.width=K(la));!e&&L&&(p.height=K(r.offsetHeight+b));c=w.outerWidth();m[0].style.width=K(c);k.width=K(c);d=w.height()>g.clientHeight||"scroll"==n.css("overflow-y");e="padding"+(aa.bScrollbarLeft?"Left":"Right");k[e]=d?b+"px":"0px";G&&(v[0].style.width=K(c),t[0].style.width=K(c),t[0].style[e]=d?b+"px":"0px");w.children("colgroup").insertBefore(w.children("thead"));n.trigger("scroll");!a.bSorted&&!a.bFiltered||a._drawHold||(g.scrollTop=0)}}function ca(a,b,c){for(var d=0,e=0,h=
|
||||
b.length,f,g;e<h;){f=b[e].firstChild;for(g=c?c[e].firstChild:null;f;)1===f.nodeType&&(c?a(f,g,d):a(f,d),d++),f=f.nextSibling,g=c?g.nextSibling:null;e++}}function Za(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,h=d.sX,f=d.sXInner,g=c.length,k=Ia(a,"bVisible"),m=l("th",a.nTHead),n=b.getAttribute("width"),p=b.parentNode,t=!1,v,x=a.oBrowser;d=x.bScrollOversize;(v=b.style.width)&&-1!==v.indexOf("%")&&(n=v);for(v=0;v<k.length;v++){var w=c[k[v]];null!==w.sWidth&&(w.sWidth=Zb(w.sWidthOrig,p),t=!0)}if(d||
|
||||
!t&&!h&&!e&&g==oa(a)&&g==m.length)for(v=0;v<g;v++)k=ta(a,v),null!==k&&(c[k].sWidth=K(m.eq(v).width()));else{g=l(b).clone().css("visibility","hidden").removeAttr("id");g.find("tbody tr").remove();var r=l("<tr/>").appendTo(g.find("tbody"));g.find("thead, tfoot").remove();g.append(l(a.nTHead).clone()).append(l(a.nTFoot).clone());g.find("tfoot th, tfoot td").css("width","");m=Na(a,g.find("thead")[0]);for(v=0;v<k.length;v++)w=c[k[v]],m[v].style.width=null!==w.sWidthOrig&&""!==w.sWidthOrig?K(w.sWidthOrig):
|
||||
"",w.sWidthOrig&&h&&l(m[v]).append(l("<div/>").css({width:w.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(v=0;v<k.length;v++)t=k[v],w=c[t],l($b(a,t)).clone(!1).append(w.sContentPadding).appendTo(r);l("[name]",g).removeAttr("name");w=l("<div/>").css(h||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(g).appendTo(p);h&&f?g.width(f):h?(g.css("width","auto"),g.removeAttr("width"),g.width()<p.clientWidth&&n&&g.width(p.clientWidth)):e?g.width(p.clientWidth):
|
||||
n&&g.width(n);for(v=e=0;v<k.length;v++)p=l(m[v]),f=p.outerWidth()-p.width(),p=x.bBounding?Math.ceil(m[v].getBoundingClientRect().width):p.outerWidth(),e+=p,c[k[v]].sWidth=K(p-f);b.style.width=K(e);w.remove()}n&&(b.style.width=K(n));!n&&!h||a._reszEvt||(b=function(){l(z).on("resize.DT-"+a.sInstance,hb(function(){sa(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0)}function Zb(a,b){if(!a)return 0;a=l("<div/>").css("width",K(a)).appendTo(b||A.body);b=a[0].offsetWidth;a.remove();return b}function $b(a,b){var c=
|
||||
ac(a,b);if(0>c)return null;var d=a.aoData[c];return d.nTr?d.anCells[b]:l("<td/>").html(T(a,c,b,"display"))[0]}function ac(a,b){for(var c,d=-1,e=-1,h=0,f=a.aoData.length;h<f;h++)c=T(a,h,b,"display")+"",c=c.replace(uc,""),c=c.replace(/ /g," "),c.length>d&&(d=c.length,e=h);return e}function K(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function pa(a){var b=[],c=a.aoColumns;var d=a.aaSortingFixed;var e=l.isPlainObject(d);var h=[];var f=function(n){n.length&&
|
||||
!Array.isArray(n[0])?h.push(n):l.merge(h,n)};Array.isArray(d)&&f(d);e&&d.pre&&f(d.pre);f(a.aaSorting);e&&d.post&&f(d.post);for(a=0;a<h.length;a++){var g=h[a][0];f=c[g].aDataSort;d=0;for(e=f.length;d<e;d++){var k=f[d];var m=c[k].sType||"string";h[a]._idx===q&&(h[a]._idx=l.inArray(h[a][1],c[k].asSorting));b.push({src:g,col:k,dir:h[a][1],index:h[a]._idx,type:m,formatter:u.ext.type.order[m+"-pre"]})}}return b}function Hb(a){var b,c=[],d=u.ext.type.order,e=a.aoData,h=0,f=a.aiDisplayMaster;$a(a);var g=
|
||||
pa(a);var k=0;for(b=g.length;k<b;k++){var m=g[k];m.formatter&&h++;bc(a,m.col)}if("ssp"!=Q(a)&&0!==g.length){k=0;for(b=f.length;k<b;k++)c[f[k]]=k;h===g.length?f.sort(function(n,p){var t,v=g.length,x=e[n]._aSortData,w=e[p]._aSortData;for(t=0;t<v;t++){var r=g[t];var C=x[r.col];var G=w[r.col];C=C<G?-1:C>G?1:0;if(0!==C)return"asc"===r.dir?C:-C}C=c[n];G=c[p];return C<G?-1:C>G?1:0}):f.sort(function(n,p){var t,v=g.length,x=e[n]._aSortData,w=e[p]._aSortData;for(t=0;t<v;t++){var r=g[t];var C=x[r.col];var G=
|
||||
w[r.col];r=d[r.type+"-"+r.dir]||d["string-"+r.dir];C=r(C,G);if(0!==C)return C}C=c[n];G=c[p];return C<G?-1:C>G?1:0})}a.bSorted=!0}function cc(a){var b=a.aoColumns,c=pa(a);a=a.oLanguage.oAria;for(var d=0,e=b.length;d<e;d++){var h=b[d];var f=h.asSorting;var g=h.ariaTitle||h.sTitle.replace(/<.*?>/g,"");var k=h.nTh;k.removeAttribute("aria-sort");h.bSortable&&(0<c.length&&c[0].col==d?(k.setAttribute("aria-sort","asc"==c[0].dir?"ascending":"descending"),h=f[c[0].index+1]||f[0]):h=f[0],g+="asc"===h?a.sSortAscending:
|
||||
a.sSortDescending);k.setAttribute("aria-label",g)}}function nb(a,b,c,d){var e=a.aaSorting,h=a.aoColumns[b].asSorting,f=function(g,k){var m=g._idx;m===q&&(m=l.inArray(g[1],h));return m+1<h.length?m+1:k?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=l.inArray(b,U(e,"0")),-1!==c?(b=f(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=h[b],e[c]._idx=b)):(e.push([b,h[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=f(e[0]),e.length=1,e[0][1]=h[b],
|
||||
e[0]._idx=b):(e.length=0,e.push([b,h[0]]),e[0]._idx=0);ka(a);"function"==typeof d&&d(a)}function fb(a,b,c,d){var e=a.aoColumns[c];ob(b,{},function(h){!1!==e.bSortable&&(a.oFeatures.bProcessing?(V(a,!0),setTimeout(function(){nb(a,c,h.shiftKey,d);"ssp"!==Q(a)&&V(a,!1)},0)):nb(a,c,h.shiftKey,d))})}function Sa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=pa(a),e=a.oFeatures,h;if(e.bSort&&e.bSortClasses){e=0;for(h=b.length;e<h;e++){var f=b[e].src;l(U(a.aoData,"anCells",f)).removeClass(c+(2>e?e+1:3))}e=
|
||||
0;for(h=d.length;e<h;e++)f=d[e].src,l(U(a.aoData,"anCells",f)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function bc(a,b){var c=a.aoColumns[b],d=u.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,ua(a,b)));for(var h,f=u.ext.type.order[c.sType+"-pre"],g=0,k=a.aoData.length;g<k;g++)if(c=a.aoData[g],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)h=d?e[g]:T(a,g,b,"sort"),c._aSortData[b]=f?f(h):h}function Ca(a){if(!a._bLoadingState){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,
|
||||
order:l.extend(!0,[],a.aaSorting),search:Vb(a.oPreviousSearch),columns:l.map(a.aoColumns,function(c,d){return{visible:c.bVisible,search:Vb(a.aoPreSearchCols[d])}})};a.oSavedState=b;F(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oFeatures.bStateSave&&!a.bDestroying&&a.fnStateSaveCallback.call(a.oInstance,a,b)}}function dc(a,b,c){if(a.oFeatures.bStateSave)return b=a.fnStateLoadCallback.call(a.oInstance,a,function(d){pb(a,d,c)}),b!==q&&pb(a,b,c),!0;c()}function pb(a,b,c){var d,e=a.aoColumns;a._bLoadingState=
|
||||
!0;var h=a._bInitComplete?new u.Api(a):null;if(b&&b.time){var f=F(a,"aoStateLoadParams","stateLoadParams",[a,b]);if(-1!==l.inArray(!1,f))a._bLoadingState=!1;else if(f=a.iStateDuration,0<f&&b.time<+new Date-1E3*f)a._bLoadingState=!1;else if(b.columns&&e.length!==b.columns.length)a._bLoadingState=!1;else{a.oLoadedState=l.extend(!0,{},b);b.start!==q&&(null===h?(a._iDisplayStart=b.start,a.iInitDisplayStart=b.start):Ra(a,b.start/b.length));b.length!==q&&(a._iDisplayLength=b.length);b.order!==q&&(a.aaSorting=
|
||||
[],l.each(b.order,function(k,m){a.aaSorting.push(m[0]>=e.length?[0,m[1]]:m)}));b.search!==q&&l.extend(a.oPreviousSearch,Wb(b.search));if(b.columns){f=0;for(d=b.columns.length;f<d;f++){var g=b.columns[f];g.visible!==q&&(h?h.column(f).visible(g.visible,!1):e[f].bVisible=g.visible);g.search!==q&&l.extend(a.aoPreSearchCols[f],Wb(g.search))}h&&h.columns.adjust()}a._bLoadingState=!1;F(a,"aoStateLoaded","stateLoaded",[a,b])}}else a._bLoadingState=!1;c()}function Ta(a){var b=u.settings;a=l.inArray(a,U(b,
|
||||
"nTable"));return-1!==a?b[a]:null}function da(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)z.console&&console.log&&console.log(c);else if(b=u.ext,b=b.sErrMode||b.errMode,a&&F(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function X(a,b,c,d){Array.isArray(c)?l.each(c,function(e,h){Array.isArray(h)?X(a,b,h[0],h[1]):
|
||||
X(a,b,h)}):(d===q&&(d=c),b[c]!==q&&(a[d]=b[c]))}function qb(a,b,c){var d;for(d in b)if(b.hasOwnProperty(d)){var e=b[d];l.isPlainObject(e)?(l.isPlainObject(a[d])||(a[d]={}),l.extend(!0,a[d],e)):c&&"data"!==d&&"aaData"!==d&&Array.isArray(e)?a[d]=e.slice():a[d]=e}return a}function ob(a,b,c){l(a).on("click.DT",b,function(d){l(a).trigger("blur");c(d)}).on("keypress.DT",b,function(d){13===d.which&&(d.preventDefault(),c(d))}).on("selectstart.DT",function(){return!1})}function R(a,b,c,d){c&&a[b].push({fn:c,
|
||||
sName:d})}function F(a,b,c,d){var e=[];b&&(e=l.map(a[b].slice().reverse(),function(h,f){return h.fn.apply(a.oInstance,d)}));null!==c&&(b=l.Event(c+".dt"),l(a.nTable).trigger(b,d),e.push(b.result));return e}function lb(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function gb(a,b){a=a.renderer;var c=u.ext.renderer[b];return l.isPlainObject(a)&&a[b]?c[a[b]]||c._:"string"===typeof a?c[a]||c._:c._}function Q(a){return a.oFeatures.bServerSide?
|
||||
"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Da(a,b){var c=ec.numbers_length,d=Math.floor(c/2);b<=c?a=qa(0,b):a<=d?(a=qa(0,c-2),a.push("ellipsis"),a.push(b-1)):(a>=b-1-d?a=qa(b-(c-2),b):(a=qa(a-d+2,a+d-1),a.push("ellipsis"),a.push(b-1)),a.splice(0,0,"ellipsis"),a.splice(0,0,0));a.DT_el="span";return a}function Xa(a){l.each({num:function(b){return Ua(b,a)},"num-fmt":function(b){return Ua(b,a,rb)},"html-num":function(b){return Ua(b,a,Va)},"html-num-fmt":function(b){return Ua(b,a,Va,rb)}},function(b,
|
||||
c){M.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(M.type.search[b+a]=M.type.search.html)})}function fc(a){return function(){var b=[Ta(this[u.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return u.ext.internal[a].apply(this,b)}}var u=function(a,b){if(this instanceof u)return l(a).DataTable(b);b=a;this.$=function(f,g){return this.api(!0).$(f,g)};this._=function(f,g){return this.api(!0).rows(f,g).data()};this.api=function(f){return f?new B(Ta(this[M.iApiIndex])):new B(this)};this.fnAddData=
|
||||
function(f,g){var k=this.api(!0);f=Array.isArray(f)&&(Array.isArray(f[0])||l.isPlainObject(f[0]))?k.rows.add(f):k.row.add(f);(g===q||g)&&k.draw();return f.flatten().toArray()};this.fnAdjustColumnSizing=function(f){var g=this.api(!0).columns.adjust(),k=g.settings()[0],m=k.oScroll;f===q||f?g.draw(!1):(""!==m.sX||""!==m.sY)&&Ha(k)};this.fnClearTable=function(f){var g=this.api(!0).clear();(f===q||f)&&g.draw()};this.fnClose=function(f){this.api(!0).row(f).child.hide()};this.fnDeleteRow=function(f,g,k){var m=
|
||||
this.api(!0);f=m.rows(f);var n=f.settings()[0],p=n.aoData[f[0][0]];f.remove();g&&g.call(this,n,p);(k===q||k)&&m.draw();return p};this.fnDestroy=function(f){this.api(!0).destroy(f)};this.fnDraw=function(f){this.api(!0).draw(f)};this.fnFilter=function(f,g,k,m,n,p){n=this.api(!0);null===g||g===q?n.search(f,k,m,p):n.column(g).search(f,k,m,p);n.draw()};this.fnGetData=function(f,g){var k=this.api(!0);if(f!==q){var m=f.nodeName?f.nodeName.toLowerCase():"";return g!==q||"td"==m||"th"==m?k.cell(f,g).data():
|
||||
k.row(f).data()||null}return k.data().toArray()};this.fnGetNodes=function(f){var g=this.api(!0);return f!==q?g.row(f).node():g.rows().nodes().flatten().toArray()};this.fnGetPosition=function(f){var g=this.api(!0),k=f.nodeName.toUpperCase();return"TR"==k?g.row(f).index():"TD"==k||"TH"==k?(f=g.cell(f).index(),[f.row,f.columnVisible,f.column]):null};this.fnIsOpen=function(f){return this.api(!0).row(f).child.isShown()};this.fnOpen=function(f,g,k){return this.api(!0).row(f).child(g,k).show().child()[0]};
|
||||
this.fnPageChange=function(f,g){f=this.api(!0).page(f);(g===q||g)&&f.draw(!1)};this.fnSetColumnVis=function(f,g,k){f=this.api(!0).column(f).visible(g);(k===q||k)&&f.columns.adjust().draw()};this.fnSettings=function(){return Ta(this[M.iApiIndex])};this.fnSort=function(f){this.api(!0).order(f).draw()};this.fnSortListener=function(f,g,k){this.api(!0).order.listener(f,g,k)};this.fnUpdate=function(f,g,k,m,n){var p=this.api(!0);k===q||null===k?p.row(g).data(f):p.cell(g,k).data(f);(n===q||n)&&p.columns.adjust();
|
||||
(m===q||m)&&p.draw();return 0};this.fnVersionCheck=M.fnVersionCheck;var c=this,d=b===q,e=this.length;d&&(b={});this.oApi=this.internal=M.internal;for(var h in u.ext.internal)h&&(this[h]=fc(h));this.each(function(){var f={},g=1<e?qb(f,b,!0):b,k=0,m;f=this.getAttribute("id");var n=!1,p=u.defaults,t=l(this);if("table"!=this.nodeName.toLowerCase())da(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{zb(p);Ab(p.column);P(p,p,!0);P(p.column,p.column,!0);P(p,l.extend(g,t.data()),!0);var v=
|
||||
u.settings;k=0;for(m=v.length;k<m;k++){var x=v[k];if(x.nTable==this||x.nTHead&&x.nTHead.parentNode==this||x.nTFoot&&x.nTFoot.parentNode==this){var w=g.bRetrieve!==q?g.bRetrieve:p.bRetrieve;if(d||w)return x.oInstance;if(g.bDestroy!==q?g.bDestroy:p.bDestroy){x.oInstance.fnDestroy();break}else{da(x,0,"Cannot reinitialise DataTable",3);return}}if(x.sTableId==this.id){v.splice(k,1);break}}if(null===f||""===f)this.id=f="DataTables_Table_"+u.ext._unique++;var r=l.extend(!0,{},u.models.oSettings,{sDestroyWidth:t[0].style.width,
|
||||
sInstance:f,sTableId:f});r.nTable=this;r.oApi=c.internal;r.oInit=g;v.push(r);r.oInstance=1===c.length?c:t.dataTable();zb(g);ma(g.oLanguage);g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=Array.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]);g=qb(l.extend(!0,{},p),g);X(r.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));X(r,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod",
|
||||
"aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]);X(r.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);X(r.oLanguage,g,"fnInfoCallback");
|
||||
R(r,"aoDrawCallback",g.fnDrawCallback,"user");R(r,"aoServerParams",g.fnServerParams,"user");R(r,"aoStateSaveParams",g.fnStateSaveParams,"user");R(r,"aoStateLoadParams",g.fnStateLoadParams,"user");R(r,"aoStateLoaded",g.fnStateLoaded,"user");R(r,"aoRowCallback",g.fnRowCallback,"user");R(r,"aoRowCreatedCallback",g.fnCreatedRow,"user");R(r,"aoHeaderCallback",g.fnHeaderCallback,"user");R(r,"aoFooterCallback",g.fnFooterCallback,"user");R(r,"aoInitComplete",g.fnInitComplete,"user");R(r,"aoPreDrawCallback",
|
||||
g.fnPreDrawCallback,"user");r.rowIdFn=na(g.rowId);Bb(r);var C=r.oClasses;l.extend(C,u.ext.classes,g.oClasses);t.addClass(C.sTable);r.iInitDisplayStart===q&&(r.iInitDisplayStart=g.iDisplayStart,r._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(r.bDeferLoading=!0,f=Array.isArray(g.iDeferLoading),r._iRecordsDisplay=f?g.iDeferLoading[0]:g.iDeferLoading,r._iRecordsTotal=f?g.iDeferLoading[1]:g.iDeferLoading);var G=r.oLanguage;l.extend(!0,G,g.oLanguage);G.sUrl?(l.ajax({dataType:"json",url:G.sUrl,
|
||||
success:function(I){P(p.oLanguage,I);ma(I);l.extend(!0,G,I);F(r,null,"i18n",[r]);Aa(r)},error:function(){Aa(r)}}),n=!0):F(r,null,"i18n",[r]);null===g.asStripeClasses&&(r.asStripeClasses=[C.sStripeOdd,C.sStripeEven]);f=r.asStripeClasses;var aa=t.children("tbody").find("tr").eq(0);-1!==l.inArray(!0,l.map(f,function(I,H){return aa.hasClass(I)}))&&(l("tbody tr",this).removeClass(f.join(" ")),r.asDestroyStripes=f.slice());f=[];v=this.getElementsByTagName("thead");0!==v.length&&(wa(r.aoHeader,v[0]),f=Na(r));
|
||||
if(null===g.aoColumns)for(v=[],k=0,m=f.length;k<m;k++)v.push(null);else v=g.aoColumns;k=0;for(m=v.length;k<m;k++)Ya(r,f?f[k]:null);Db(r,g.aoColumnDefs,v,function(I,H){Ga(r,I,H)});if(aa.length){var L=function(I,H){return null!==I.getAttribute("data-"+H)?H:null};l(aa[0]).children("th, td").each(function(I,H){var ea=r.aoColumns[I];if(ea.mData===I){var Y=L(H,"sort")||L(H,"order");H=L(H,"filter")||L(H,"search");if(null!==Y||null!==H)ea.mData={_:I+".display",sort:null!==Y?I+".@data-"+Y:q,type:null!==Y?
|
||||
I+".@data-"+Y:q,filter:null!==H?I+".@data-"+H:q},Ga(r,I)}})}var O=r.oFeatures;f=function(){if(g.aaSorting===q){var I=r.aaSorting;k=0;for(m=I.length;k<m;k++)I[k][1]=r.aoColumns[k].asSorting[0]}Sa(r);O.bSort&&R(r,"aoDrawCallback",function(){if(r.bSorted){var Y=pa(r),Ba={};l.each(Y,function(fa,ba){Ba[ba.src]=ba.dir});F(r,null,"order",[r,Y,Ba]);cc(r)}});R(r,"aoDrawCallback",function(){(r.bSorted||"ssp"===Q(r)||O.bDeferRender)&&Sa(r)},"sc");I=t.children("caption").each(function(){this._captionSide=l(this).css("caption-side")});
|
||||
var H=t.children("thead");0===H.length&&(H=l("<thead/>").appendTo(t));r.nTHead=H[0];var ea=t.children("tbody");0===ea.length&&(ea=l("<tbody/>").insertAfter(H));r.nTBody=ea[0];H=t.children("tfoot");0===H.length&&0<I.length&&(""!==r.oScroll.sX||""!==r.oScroll.sY)&&(H=l("<tfoot/>").appendTo(t));0===H.length||0===H.children().length?t.addClass(C.sNoFooter):0<H.length&&(r.nTFoot=H[0],wa(r.aoFooter,r.nTFoot));if(g.aaData)for(k=0;k<g.aaData.length;k++)ia(r,g.aaData[k]);else(r.bDeferLoading||"dom"==Q(r))&&
|
||||
Ja(r,l(r.nTBody).children("tr"));r.aiDisplay=r.aiDisplayMaster.slice();r.bInitialised=!0;!1===n&&Aa(r)};R(r,"aoDrawCallback",Ca,"state_save");g.bStateSave?(O.bStateSave=!0,dc(r,g,f)):f()}});c=null;return this},M,y,J,sb={},gc=/[\r\n\u2028]/g,Va=/<.*?>/g,vc=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,wc=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,rb=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Z=function(a){return a&&!0!==a&&"-"!==a?!1:!0},hc=
|
||||
function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},ic=function(a,b){sb[b]||(sb[b]=new RegExp(jb(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(sb[b],"."):a},tb=function(a,b,c){var d="string"===typeof a;if(Z(a))return!0;b&&d&&(a=ic(a,b));c&&d&&(a=a.replace(rb,""));return!isNaN(parseFloat(a))&&isFinite(a)},jc=function(a,b,c){return Z(a)?!0:Z(a)||"string"===typeof a?tb(a.replace(Va,""),b,c)?!0:null:null},U=function(a,b,c){var d=[],e=0,h=a.length;if(c!==q)for(;e<
|
||||
h;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<h;e++)a[e]&&d.push(a[e][b]);return d},Ea=function(a,b,c,d){var e=[],h=0,f=b.length;if(d!==q)for(;h<f;h++)a[b[h]][c]&&e.push(a[b[h]][c][d]);else for(;h<f;h++)e.push(a[b[h]][c]);return e},qa=function(a,b){var c=[];if(b===q){b=0;var d=a}else d=b,b=a;for(a=b;a<d;a++)c.push(a);return c},kc=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},Ma=function(a){a:{if(!(2>a.length)){var b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d<
|
||||
e;d++){if(b[d]===c){b=!1;break a}c=b[d]}}b=!0}if(b)return a.slice();b=[];e=a.length;var h,f=0;d=0;a:for(;d<e;d++){c=a[d];for(h=0;h<f;h++)if(b[h]===c)continue a;b.push(c);f++}return b},lc=function(a,b){if(Array.isArray(b))for(var c=0;c<b.length;c++)lc(a,b[c]);else a.push(b);return a},mc=function(a,b){b===q&&(b=0);return-1!==this.indexOf(a,b)};Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});Array.prototype.includes||(Array.prototype.includes=mc);
|
||||
String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")});String.prototype.includes||(String.prototype.includes=mc);u.util={throttle:function(a,b){var c=b!==q?b:200,d,e;return function(){var h=this,f=+new Date,g=arguments;d&&f<d+c?(clearTimeout(e),e=setTimeout(function(){d=q;a.apply(h,g)},c)):(d=f,a.apply(h,g))}},escapeRegex:function(a){return a.replace(wc,"\\$1")},set:function(a){if(l.isPlainObject(a))return u.util.set(a._);if(null===
|
||||
a)return function(){};if("function"===typeof a)return function(c,d,e){a(c,"set",d,e)};if("string"!==typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(c,d){c[a]=d};var b=function(c,d,e){e=cb(e);var h=e[e.length-1];for(var f,g,k=0,m=e.length-1;k<m;k++){if("__proto__"===e[k]||"constructor"===e[k])throw Error("Cannot set prototype values");f=e[k].match(Fa);g=e[k].match(ra);if(f){e[k]=e[k].replace(Fa,"");c[e[k]]=[];h=e.slice();h.splice(0,k+1);f=h.join(".");if(Array.isArray(d))for(g=
|
||||
0,m=d.length;g<m;g++)h={},b(h,d[g],f),c[e[k]].push(h);else c[e[k]]=d;return}g&&(e[k]=e[k].replace(ra,""),c=c[e[k]](d));if(null===c[e[k]]||c[e[k]]===q)c[e[k]]={};c=c[e[k]]}if(h.match(ra))c[h.replace(ra,"")](d);else c[h.replace(Fa,"")]=d};return function(c,d){return b(c,d,a)}},get:function(a){if(l.isPlainObject(a)){var b={};l.each(a,function(d,e){e&&(b[d]=u.util.get(e))});return function(d,e,h,f){var g=b[e]||b._;return g!==q?g(d,e,h,f):d}}if(null===a)return function(d){return d};if("function"===typeof a)return function(d,
|
||||
e,h,f){return a(d,e,h,f)};if("string"!==typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(d,e){return d[a]};var c=function(d,e,h){if(""!==h){var f=cb(h);for(var g=0,k=f.length;g<k;g++){h=f[g].match(Fa);var m=f[g].match(ra);if(h){f[g]=f[g].replace(Fa,"");""!==f[g]&&(d=d[f[g]]);m=[];f.splice(0,g+1);f=f.join(".");if(Array.isArray(d))for(g=0,k=d.length;g<k;g++)m.push(c(d[g],e,f));d=h[0].substring(1,h[0].length-1);d=""===d?m:m.join(d);break}else if(m){f[g]=f[g].replace(ra,
|
||||
"");d=d[f[g]]();continue}if(null===d||d[f[g]]===q)return q;d=d[f[g]]}}return d};return function(d,e){return c(d,e,a)}}};var S=function(a,b,c){a[b]!==q&&(a[c]=a[b])},Fa=/\[.*?\]$/,ra=/\(\)$/,na=u.util.get,ha=u.util.set,jb=u.util.escapeRegex,Qa=l("<div>")[0],tc=Qa.textContent!==q,uc=/<.*?>/g,hb=u.util.throttle,nc=[],N=Array.prototype,xc=function(a){var b,c=u.settings,d=l.map(c,function(h,f){return h.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase()){var e=
|
||||
l.inArray(a,d);return-1!==e?[c[e]]:null}if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?b=l(a):a instanceof l&&(b=a)}else return[];if(b)return b.map(function(h){e=l.inArray(this,d);return-1!==e?c[e]:null}).toArray()};var B=function(a,b){if(!(this instanceof B))return new B(a,b);var c=[],d=function(f){(f=xc(f))&&c.push.apply(c,f)};if(Array.isArray(a))for(var e=0,h=a.length;e<h;e++)d(a[e]);else d(a);this.context=Ma(c);b&&l.merge(this,b);this.selector={rows:null,
|
||||
cols:null,opts:null};B.extend(this,this,nc)};u.Api=B;l.extend(B.prototype,{any:function(){return 0!==this.count()},concat:N.concat,context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new B(b[a],this[a]):null},filter:function(a){var b=[];if(N.filter)b=N.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);
|
||||
return new B(this.context,b)},flatten:function(){var a=[];return new B(this.context,a.concat.apply(a,this.toArray()))},join:N.join,indexOf:N.indexOf||function(a,b){b=b||0;for(var c=this.length;b<c;b++)if(this[b]===a)return b;return-1},iterator:function(a,b,c,d){var e=[],h,f,g=this.context,k,m=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);var n=0;for(h=g.length;n<h;n++){var p=new B(g[n]);if("table"===b){var t=c.call(p,g[n],n);t!==q&&e.push(t)}else if("columns"===b||"rows"===b)t=c.call(p,g[n],
|
||||
this[n],n),t!==q&&e.push(t);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){var v=this[n];"column-rows"===b&&(k=Wa(g[n],m.opts));var x=0;for(f=v.length;x<f;x++)t=v[x],t="cell"===b?c.call(p,g[n],t.row,t.column,n,x):c.call(p,g[n],t,n,x,k),t!==q&&e.push(t)}}return e.length||d?(a=new B(g,a?e.concat.apply([],e):e),b=a.selector,b.rows=m.rows,b.cols=m.cols,b.opts=m.opts,a):this},lastIndexOf:N.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,
|
||||
map:function(a){var b=[];if(N.map)b=N.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new B(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:N.pop,push:N.push,reduce:N.reduce||function(a,b){return Cb(this,a,b,0,this.length,1)},reduceRight:N.reduceRight||function(a,b){return Cb(this,a,b,this.length-1,-1,-1)},reverse:N.reverse,selector:null,shift:N.shift,slice:function(){return new B(this.context,this)},sort:N.sort,
|
||||
splice:N.splice,toArray:function(){return N.slice.call(this)},to$:function(){return l(this)},toJQuery:function(){return l(this)},unique:function(){return new B(this.context,Ma(this))},unshift:N.unshift});B.extend=function(a,b,c){if(c.length&&b&&(b instanceof B||b.__dt_wrapper)){var d,e=function(g,k,m){return function(){var n=k.apply(g,arguments);B.extend(n,n,m.methodExt);return n}};var h=0;for(d=c.length;h<d;h++){var f=c[h];b[f.name]="function"===f.type?e(a,f.val,f):"object"===f.type?{}:f.val;b[f.name].__dt_wrapper=
|
||||
!0;B.extend(a,b[f.name],f.propExt)}}};B.register=y=function(a,b){if(Array.isArray(a))for(var c=0,d=a.length;c<d;c++)B.register(a[c],b);else{d=a.split(".");var e=nc,h;a=0;for(c=d.length;a<c;a++){var f=(h=-1!==d[a].indexOf("()"))?d[a].replace("()",""):d[a];a:{var g=0;for(var k=e.length;g<k;g++)if(e[g].name===f){g=e[g];break a}g=null}g||(g={name:f,val:{},methodExt:[],propExt:[],type:"object"},e.push(g));a===c-1?(g.val=b,g.type="function"===typeof b?"function":l.isPlainObject(b)?"object":"other"):e=h?
|
||||
g.methodExt:g.propExt}}};B.registerPlural=J=function(a,b,c){B.register(a,c);B.register(b,function(){var d=c.apply(this,arguments);return d===this?this:d instanceof B?d.length?Array.isArray(d[0])?new B(d.context,d[0]):d[0]:q:d})};var oc=function(a,b){if(Array.isArray(a))return l.map(a,function(d){return oc(d,b)});if("number"===typeof a)return[b[a]];var c=l.map(b,function(d,e){return d.nTable});return l(c).filter(a).map(function(d){d=l.inArray(this,c);return b[d]}).toArray()};y("tables()",function(a){return a!==
|
||||
q&&null!==a?new B(oc(a,this.context)):this});y("table()",function(a){a=this.tables(a);var b=a.context;return b.length?new B(b[0]):a});J("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});J("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});J("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});J("tables().footer()","table().footer()",
|
||||
function(){return this.iterator("table",function(a){return a.nTFoot},1)});J("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});y("draw()",function(a){return this.iterator("table",function(b){"page"===a?ja(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),ka(b,!1===a))})});y("page()",function(a){return a===q?this.page.info().page:this.iterator("table",function(b){Ra(b,a)})});y("page.info()",function(a){if(0===this.context.length)return q;
|
||||
a=this.context[0];var b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===Q(a)}});y("page.len()",function(a){return a===q?0!==this.context.length?this.context[0]._iDisplayLength:q:this.iterator("table",function(b){kb(b,a)})});var pc=function(a,b,c){if(c){var d=new B(a);d.one("draw",function(){c(d.ajax.json())})}if("ssp"==
|
||||
Q(a))ka(a,b);else{V(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();Oa(a,[],function(h){Ka(a);h=za(a,h);for(var f=0,g=h.length;f<g;f++)ia(a,h[f]);ka(a,b);V(a,!1)})}};y("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});y("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});y("ajax.reload()",function(a,b){return this.iterator("table",function(c){pc(c,!1===b,a)})});y("ajax.url()",function(a){var b=this.context;if(a===q){if(0===b.length)return q;
|
||||
b=b[0];return b.ajax?l.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(c){l.isPlainObject(c.ajax)?c.ajax.url=a:c.ajax=a})});y("ajax.url().load()",function(a,b){return this.iterator("table",function(c){pc(c,!1===b,a)})});var ub=function(a,b,c,d,e){var h=[],f,g,k;var m=typeof b;b&&"string"!==m&&"function"!==m&&b.length!==q||(b=[b]);m=0;for(g=b.length;m<g;m++){var n=b[m]&&b[m].split&&!b[m].match(/[\[\(:]/)?b[m].split(","):[b[m]];var p=0;for(k=n.length;p<k;p++)(f=
|
||||
c("string"===typeof n[p]?n[p].trim():n[p]))&&f.length&&(h=h.concat(f))}a=M.selector[a];if(a.length)for(m=0,g=a.length;m<g;m++)h=a[m](d,e,h);return Ma(h)},vb=function(a){a||(a={});a.filter&&a.search===q&&(a.search=a.filter);return l.extend({search:"none",order:"current",page:"all"},a)},wb=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Wa=function(a,b){var c=[],d=a.aiDisplay;var e=a.aiDisplayMaster;
|
||||
var h=b.search;var f=b.order;b=b.page;if("ssp"==Q(a))return"removed"===h?[]:qa(0,e.length);if("current"==b)for(f=a._iDisplayStart,a=a.fnDisplayEnd();f<a;f++)c.push(d[f]);else if("current"==f||"applied"==f)if("none"==h)c=e.slice();else if("applied"==h)c=d.slice();else{if("removed"==h){var g={};f=0;for(a=d.length;f<a;f++)g[d[f]]=null;c=l.map(e,function(k){return g.hasOwnProperty(k)?null:k})}}else if("index"==f||"original"==f)for(f=0,a=a.aoData.length;f<a;f++)"none"==h?c.push(f):(e=l.inArray(f,d),(-1===
|
||||
e&&"removed"==h||0<=e&&"applied"==h)&&c.push(f));return c},yc=function(a,b,c){var d;return ub("row",b,function(e){var h=hc(e),f=a.aoData;if(null!==h&&!c)return[h];d||(d=Wa(a,c));if(null!==h&&-1!==l.inArray(h,d))return[h];if(null===e||e===q||""===e)return d;if("function"===typeof e)return l.map(d,function(k){var m=f[k];return e(k,m._aData,m.nTr)?k:null});if(e.nodeName){h=e._DT_RowIndex;var g=e._DT_CellIndex;if(h!==q)return f[h]&&f[h].nTr===e?[h]:[];if(g)return f[g.row]&&f[g.row].nTr===e.parentNode?
|
||||
[g.row]:[];h=l(e).closest("*[data-dt-row]");return h.length?[h.data("dt-row")]:[]}if("string"===typeof e&&"#"===e.charAt(0)&&(h=a.aIds[e.replace(/^#/,"")],h!==q))return[h.idx];h=kc(Ea(a.aoData,d,"nTr"));return l(h).filter(e).map(function(){return this._DT_RowIndex}).toArray()},a,c)};y("rows()",function(a,b){a===q?a="":l.isPlainObject(a)&&(b=a,a="");b=vb(b);var c=this.iterator("table",function(d){return yc(d,a,b)},1);c.selector.rows=a;c.selector.opts=b;return c});y("rows().nodes()",function(){return this.iterator("row",
|
||||
function(a,b){return a.aoData[b].nTr||q},1)});y("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return Ea(a.aoData,b,"_aData")},1)});J("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){b=b.aoData[c];return"search"===a?b._aFilterData:b._aSortData},1)});J("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){va(b,c,a)})});J("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,
|
||||
b){return b},1)});J("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,d=0,e=c.length;d<e;d++)for(var h=0,f=this[d].length;h<f;h++){var g=c[d].rowIdFn(c[d].aoData[this[d][h]]._aData);b.push((!0===a?"#":"")+g)}return new B(c,b)});J("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,c,d){var e=b.aoData,h=e[c],f,g;e.splice(c,1);var k=0;for(f=e.length;k<f;k++){var m=e[k];var n=m.anCells;null!==m.nTr&&(m.nTr._DT_RowIndex=k);if(null!==n)for(m=0,g=n.length;m<
|
||||
g;m++)n[m]._DT_CellIndex.row=k}La(b.aiDisplayMaster,c);La(b.aiDisplay,c);La(a[d],c,!1);0<b._iRecordsDisplay&&b._iRecordsDisplay--;lb(b);c=b.rowIdFn(h._aData);c!==q&&delete b.aIds[c]});this.iterator("table",function(b){for(var c=0,d=b.aoData.length;c<d;c++)b.aoData[c].idx=c});return this});y("rows.add()",function(a){var b=this.iterator("table",function(d){var e,h=[];var f=0;for(e=a.length;f<e;f++){var g=a[f];g.nodeName&&"TR"===g.nodeName.toUpperCase()?h.push(Ja(d,g)[0]):h.push(ia(d,g))}return h},1),
|
||||
c=this.rows(-1);c.pop();l.merge(c,b);return c});y("row()",function(a,b){return wb(this.rows(a,b))});y("row().data()",function(a){var b=this.context;if(a===q)return b.length&&this.length?b[0].aoData[this[0]]._aData:q;var c=b[0].aoData[this[0]];c._aData=a;Array.isArray(a)&&c.nTr&&c.nTr.id&&ha(b[0].rowId)(a,c.nTr.id);va(b[0],this[0],"data");return this});y("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});y("row.add()",function(a){a instanceof
|
||||
l&&a.length&&(a=a[0]);var b=this.iterator("table",function(c){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?Ja(c,a)[0]:ia(c,a)});return this.row(b[0])});l(A).on("plugin-init.dt",function(a,b){a=new B(b);a.on("stateSaveParams",function(d,e,h){d=e.rowIdFn;e=e.aoData;for(var f=[],g=0;g<e.length;g++)e[g]._detailsShow&&f.push("#"+d(e[g]._aData));h.childRows=f});var c=a.state.loaded();c&&c.childRows&&a.rows(l.map(c.childRows,function(d){return d.replace(/:/g,"\\:")})).every(function(){F(b,null,"requestChild",
|
||||
[this])})});var zc=function(a,b,c,d){var e=[],h=function(f,g){if(Array.isArray(f)||f instanceof l)for(var k=0,m=f.length;k<m;k++)h(f[k],g);else f.nodeName&&"tr"===f.nodeName.toLowerCase()?e.push(f):(k=l("<tr><td></td></tr>").addClass(g),l("td",k).addClass(g).html(f)[0].colSpan=oa(a),e.push(k[0]))};h(c,d);b._details&&b._details.detach();b._details=l(e);b._detailsShow&&b._details.insertAfter(b.nTr)},qc=u.util.throttle(function(a){Ca(a[0])},500),xb=function(a,b){var c=a.context;c.length&&(a=c[0].aoData[b!==
|
||||
q?b:a[0]])&&a._details&&(a._details.remove(),a._detailsShow=q,a._details=q,l(a.nTr).removeClass("dt-hasChild"),qc(c))},rc=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];d._details&&((d._detailsShow=b)?(d._details.insertAfter(d.nTr),l(d.nTr).addClass("dt-hasChild")):(d._details.detach(),l(d.nTr).removeClass("dt-hasChild")),F(c[0],null,"childRow",[b,a.row(a[0])]),Ac(c[0]),qc(c))}},Ac=function(a){var b=new B(a),c=a.aoData;b.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");
|
||||
0<U(c,"_details").length&&(b.on("draw.dt.DT_details",function(d,e){a===e&&b.rows({page:"current"}).eq(0).each(function(h){h=c[h];h._detailsShow&&h._details.insertAfter(h.nTr)})}),b.on("column-visibility.dt.DT_details",function(d,e,h,f){if(a===e)for(e=oa(e),h=0,f=c.length;h<f;h++)d=c[h],d._details&&d._details.children("td[colspan]").attr("colspan",e)}),b.on("destroy.dt.DT_details",function(d,e){if(a===e)for(d=0,e=c.length;d<e;d++)c[d]._details&&xb(b,d)}))};y("row().child()",function(a,b){var c=this.context;
|
||||
if(a===q)return c.length&&this.length?c[0].aoData[this[0]]._details:q;!0===a?this.child.show():!1===a?xb(this):c.length&&this.length&&zc(c[0],c[0].aoData[this[0]],a,b);return this});y(["row().child.show()","row().child().show()"],function(a){rc(this,!0);return this});y(["row().child.hide()","row().child().hide()"],function(){rc(this,!1);return this});y(["row().child.remove()","row().child().remove()"],function(){xb(this);return this});y("row().child.isShown()",function(){var a=this.context;return a.length&&
|
||||
this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var Bc=/^([^:]+):(name|visIdx|visible)$/,sc=function(a,b,c,d,e){c=[];d=0;for(var h=e.length;d<h;d++)c.push(T(a,e[d],b));return c},Cc=function(a,b,c){var d=a.aoColumns,e=U(d,"sName"),h=U(d,"nTh");return ub("column",b,function(f){var g=hc(f);if(""===f)return qa(d.length);if(null!==g)return[0<=g?g:d.length+g];if("function"===typeof f){var k=Wa(a,c);return l.map(d,function(p,t){return f(t,sc(a,t,0,0,k),h[t])?t:null})}var m="string"===typeof f?f.match(Bc):
|
||||
"";if(m)switch(m[2]){case "visIdx":case "visible":g=parseInt(m[1],10);if(0>g){var n=l.map(d,function(p,t){return p.bVisible?t:null});return[n[n.length+g]]}return[ta(a,g)];case "name":return l.map(e,function(p,t){return p===m[1]?t:null});default:return[]}if(f.nodeName&&f._DT_CellIndex)return[f._DT_CellIndex.column];g=l(h).filter(f).map(function(){return l.inArray(this,h)}).toArray();if(g.length||!f.nodeName)return g;g=l(f).closest("*[data-dt-column]");return g.length?[g.data("dt-column")]:[]},a,c)};
|
||||
y("columns()",function(a,b){a===q?a="":l.isPlainObject(a)&&(b=a,a="");b=vb(b);var c=this.iterator("table",function(d){return Cc(d,a,b)},1);c.selector.cols=a;c.selector.opts=b;return c});J("columns().header()","column().header()",function(a,b){return this.iterator("column",function(c,d){return c.aoColumns[d].nTh},1)});J("columns().footer()","column().footer()",function(a,b){return this.iterator("column",function(c,d){return c.aoColumns[d].nTf},1)});J("columns().data()","column().data()",function(){return this.iterator("column-rows",
|
||||
sc,1)});J("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});J("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,h){return Ea(b.aoData,h,"search"===a?"_aFilterData":"_aSortData",c)},1)});J("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return Ea(a.aoData,e,"anCells",b)},1)});J("columns().visible()","column().visible()",
|
||||
function(a,b){var c=this,d=this.iterator("column",function(e,h){if(a===q)return e.aoColumns[h].bVisible;var f=e.aoColumns,g=f[h],k=e.aoData,m;if(a!==q&&g.bVisible!==a){if(a){var n=l.inArray(!0,U(f,"bVisible"),h+1);f=0;for(m=k.length;f<m;f++){var p=k[f].nTr;e=k[f].anCells;p&&p.insertBefore(e[h],e[n]||null)}}else l(U(e.aoData,"anCells",h)).detach();g.bVisible=a}});a!==q&&this.iterator("table",function(e){xa(e,e.aoHeader);xa(e,e.aoFooter);e.aiDisplay.length||l(e.nTBody).find("td[colspan]").attr("colspan",
|
||||
oa(e));Ca(e);c.iterator("column",function(h,f){F(h,null,"column-visibility",[h,f,a,b])});(b===q||b)&&c.columns.adjust()});return d});J("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?ua(b,c):c},1)});y("columns.adjust()",function(){return this.iterator("table",function(a){sa(a)},1)});y("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return ta(c,b);if("fromData"===
|
||||
a||"toVisible"===a)return ua(c,b)}});y("column()",function(a,b){return wb(this.columns(a,b))});var Dc=function(a,b,c){var d=a.aoData,e=Wa(a,c),h=kc(Ea(d,e,"anCells")),f=l(lc([],h)),g,k=a.aoColumns.length,m,n,p,t,v,x;return ub("cell",b,function(w){var r="function"===typeof w;if(null===w||w===q||r){m=[];n=0;for(p=e.length;n<p;n++)for(g=e[n],t=0;t<k;t++)v={row:g,column:t},r?(x=d[g],w(v,T(a,g,t),x.anCells?x.anCells[t]:null)&&m.push(v)):m.push(v);return m}if(l.isPlainObject(w))return w.column!==q&&w.row!==
|
||||
q&&-1!==l.inArray(w.row,e)?[w]:[];r=f.filter(w).map(function(C,G){return{row:G._DT_CellIndex.row,column:G._DT_CellIndex.column}}).toArray();if(r.length||!w.nodeName)return r;x=l(w).closest("*[data-dt-row]");return x.length?[{row:x.data("dt-row"),column:x.data("dt-column")}]:[]},a,c)};y("cells()",function(a,b,c){l.isPlainObject(a)&&(a.row===q?(c=a,a=null):(c=b,b=null));l.isPlainObject(b)&&(c=b,b=null);if(null===b||b===q)return this.iterator("table",function(n){return Dc(n,a,vb(c))});var d=c?{page:c.page,
|
||||
order:c.order,search:c.search}:{},e=this.columns(b,d),h=this.rows(a,d),f,g,k,m;d=this.iterator("table",function(n,p){n=[];f=0;for(g=h[p].length;f<g;f++)for(k=0,m=e[p].length;k<m;k++)n.push({row:h[p][f],column:e[p][k]});return n},1);d=c&&c.selected?this.cells(d,c):d;l.extend(d.selector,{cols:b,rows:a,opts:c});return d});J("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:q},1)});y("cells().data()",function(){return this.iterator("cell",
|
||||
function(a,b,c){return T(a,b,c)},1)});J("cells().cache()","cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});J("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return T(b,c,d,a)},1)});J("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:ua(a,c)}},1)});J("cells().invalidate()","cell().invalidate()",
|
||||
function(a){return this.iterator("cell",function(b,c,d){va(b,c,a,d)})});y("cell()",function(a,b,c){return wb(this.cells(a,b,c))});y("cell().data()",function(a){var b=this.context,c=this[0];if(a===q)return b.length&&c.length?T(b[0],c[0].row,c[0].column):q;Eb(b[0],c[0].row,c[0].column,a);va(b[0],c[0].row,"data",c[0].column);return this});y("order()",function(a,b){var c=this.context;if(a===q)return 0!==c.length?c[0].aaSorting:q;"number"===typeof a?a=[[a,b]]:a.length&&!Array.isArray(a[0])&&(a=Array.prototype.slice.call(arguments));
|
||||
return this.iterator("table",function(d){d.aaSorting=a.slice()})});y("order.listener()",function(a,b,c){return this.iterator("table",function(d){fb(d,a,b,c)})});y("order.fixed()",function(a){if(!a){var b=this.context;b=b.length?b[0].aaSortingFixed:q;return Array.isArray(b)?{pre:b}:b}return this.iterator("table",function(c){c.aaSortingFixed=l.extend(!0,{},a)})});y(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];l.each(b[d],function(h,
|
||||
f){e.push([f,a])});c.aaSorting=e})});y("search()",function(a,b,c,d){var e=this.context;return a===q?0!==e.length?e[0].oPreviousSearch.sSearch:q:this.iterator("table",function(h){h.oFeatures.bFilter&&ya(h,l.extend({},h.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});J("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,h){var f=e.aoPreSearchCols;if(a===q)return f[h].sSearch;e.oFeatures.bFilter&&
|
||||
(l.extend(f[h],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),ya(e,e.oPreviousSearch,1))})});y("state()",function(){return this.context.length?this.context[0].oSavedState:null});y("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});y("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});y("state.save()",function(){return this.iterator("table",function(a){Ca(a)})});
|
||||
u.versionCheck=u.fnVersionCheck=function(a){var b=u.version.split(".");a=a.split(".");for(var c,d,e=0,h=a.length;e<h;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};u.isDataTable=u.fnIsDataTable=function(a){var b=l(a).get(0),c=!1;if(a instanceof u.Api)return!0;l.each(u.settings,function(d,e){d=e.nScrollHead?l("table",e.nScrollHead)[0]:null;var h=e.nScrollFoot?l("table",e.nScrollFoot)[0]:null;if(e.nTable===b||d===b||h===b)c=!0});return c};u.tables=u.fnTables=function(a){var b=
|
||||
!1;l.isPlainObject(a)&&(b=a.api,a=a.visible);var c=l.map(u.settings,function(d){if(!a||a&&l(d.nTable).is(":visible"))return d.nTable});return b?new B(c):c};u.camelToHungarian=P;y("$()",function(a,b){b=this.rows(b).nodes();b=l(b);return l([].concat(b.filter(a).toArray(),b.find(a).toArray()))});l.each(["on","one","off"],function(a,b){y(b+"()",function(){var c=Array.prototype.slice.call(arguments);c[0]=l.map(c[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var d=l(this.tables().nodes());
|
||||
d[b].apply(d,c);return this})});y("clear()",function(){return this.iterator("table",function(a){Ka(a)})});y("settings()",function(){return new B(this.context,this.context)});y("init()",function(){var a=this.context;return a.length?a[0].oInit:null});y("data()",function(){return this.iterator("table",function(a){return U(a.aoData,"_aData")}).flatten()});y("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,h=b.nTBody,f=b.nTHead,
|
||||
g=b.nTFoot,k=l(e);h=l(h);var m=l(b.nTableWrapper),n=l.map(b.aoData,function(t){return t.nTr}),p;b.bDestroying=!0;F(b,"aoDestroyCallback","destroy",[b]);a||(new B(b)).columns().visible(!0);m.off(".DT").find(":not(tbody *)").off(".DT");l(z).off(".DT-"+b.sInstance);e!=f.parentNode&&(k.children("thead").detach(),k.append(f));g&&e!=g.parentNode&&(k.children("tfoot").detach(),k.append(g));b.aaSorting=[];b.aaSortingFixed=[];Sa(b);l(n).removeClass(b.asStripeClasses.join(" "));l("th, td",f).removeClass(d.sSortable+
|
||||
" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);h.children().detach();h.append(n);f=a?"remove":"detach";k[f]();m[f]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),k.css("width",b.sDestroyWidth).removeClass(d.sTable),(p=b.asDestroyStripes.length)&&h.children().each(function(t){l(this).addClass(b.asDestroyStripes[t%p])}));c=l.inArray(b,u.settings);-1!==c&&u.settings.splice(c,1)})});l.each(["column","row","cell"],function(a,b){y(b+"s().every()",function(c){var d=this.selector.opts,e=
|
||||
this;return this.iterator(b,function(h,f,g,k,m){c.call(e[b](f,"cell"===b?g:d,"cell"===b?d:q),f,g,k,m)})})});y("i18n()",function(a,b,c){var d=this.context[0];a=na(a)(d.oLanguage);a===q&&(a=b);c!==q&&l.isPlainObject(a)&&(a=a[c]!==q?a[c]:a._);return a.replace("%d",c)});u.version="1.11.5";u.settings=[];u.models={};u.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0,"return":!1};u.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",
|
||||
src:null,idx:-1};u.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};u.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,
|
||||
25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,
|
||||
fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},
|
||||
fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",
|
||||
sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:l.extend({},u.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};E(u.defaults);u.defaults.column={aDataSort:null,
|
||||
iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};E(u.defaults.column);u.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,
|
||||
iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],
|
||||
aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,jqXHR:null,json:q,oAjaxData:q,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,
|
||||
bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Q(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Q(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,h=
|
||||
e.bPaginate;return e.bServerSide?!1===h||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!h||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};u.ext=M={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:u.fnVersionCheck,
|
||||
iApiIndex:0,oJUIClasses:{},sVersion:u.version};l.extend(M,{afnFiltering:M.search,aTypes:M.type.detect,ofnSearch:M.type.search,oSort:M.type.order,afnSortData:M.order,aoFeatures:M.feature,oApi:M.internal,oStdClasses:M.classes,oPagination:M.pager});l.extend(u.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",
|
||||
sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",
|
||||
sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var ec=u.ext.pager;l.extend(ec,{simple:function(a,b){return["previous","next"]},full:function(a,b){return["first","previous","next","last"]},numbers:function(a,b){return[Da(a,b)]},simple_numbers:function(a,b){return["previous",Da(a,b),"next"]},
|
||||
full_numbers:function(a,b){return["first","previous",Da(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",Da(a,b),"last"]},_numbers:Da,numbers_length:7});l.extend(!0,u.ext.renderer,{pageButton:{_:function(a,b,c,d,e,h){var f=a.oClasses,g=a.oLanguage.oPaginate,k=a.oLanguage.oAria.paginate||{},m,n,p=0,t=function(x,w){var r,C=f.sPageButtonDisabled,G=function(I){Ra(a,I.data.action,!0)};var aa=0;for(r=w.length;aa<r;aa++){var L=w[aa];if(Array.isArray(L)){var O=l("<"+(L.DT_el||"div")+"/>").appendTo(x);
|
||||
t(O,L)}else{m=null;n=L;O=a.iTabIndex;switch(L){case "ellipsis":x.append('<span class="ellipsis">…</span>');break;case "first":m=g.sFirst;0===e&&(O=-1,n+=" "+C);break;case "previous":m=g.sPrevious;0===e&&(O=-1,n+=" "+C);break;case "next":m=g.sNext;if(0===h||e===h-1)O=-1,n+=" "+C;break;case "last":m=g.sLast;if(0===h||e===h-1)O=-1,n+=" "+C;break;default:m=a.fnFormatNumber(L+1),n=e===L?f.sPageButtonActive:""}null!==m&&(O=l("<a>",{"class":f.sPageButton+" "+n,"aria-controls":a.sTableId,"aria-label":k[L],
|
||||
"data-dt-idx":p,tabindex:O,id:0===c&&"string"===typeof L?a.sTableId+"_"+L:null}).html(m).appendTo(x),ob(O,{action:L},G),p++)}}};try{var v=l(b).find(A.activeElement).data("dt-idx")}catch(x){}t(l(b).empty(),d);v!==q&&l(b).find("[data-dt-idx="+v+"]").trigger("focus")}}});l.extend(u.ext.type.detect,[function(a,b){b=b.oLanguage.sDecimal;return tb(a,b)?"num"+b:null},function(a,b){if(a&&!(a instanceof Date)&&!vc.test(a))return null;b=Date.parse(a);return null!==b&&!isNaN(b)||Z(a)?"date":null},function(a,
|
||||
b){b=b.oLanguage.sDecimal;return tb(a,b,!0)?"num-fmt"+b:null},function(a,b){b=b.oLanguage.sDecimal;return jc(a,b)?"html-num"+b:null},function(a,b){b=b.oLanguage.sDecimal;return jc(a,b,!0)?"html-num-fmt"+b:null},function(a,b){return Z(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);l.extend(u.ext.type.search,{html:function(a){return Z(a)?a:"string"===typeof a?a.replace(gc," ").replace(Va,""):""},string:function(a){return Z(a)?a:"string"===typeof a?a.replace(gc," "):a}});var Ua=function(a,
|
||||
b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=ic(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};l.extend(M.type.order,{"date-pre":function(a){a=Date.parse(a);return isNaN(a)?-Infinity:a},"html-pre":function(a){return Z(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return Z(a)?"":"string"===typeof a?a.toLowerCase():a.toString?a.toString():""},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<
|
||||
b?1:a>b?-1:0}});Xa("");l.extend(!0,u.ext.renderer,{header:{_:function(a,b,c,d){l(a.nTable).on("order.dt.DT",function(e,h,f,g){a===h&&(e=c.idx,b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass("asc"==g[e]?d.sSortAsc:"desc"==g[e]?d.sSortDesc:c.sSortingClass))})},jqueryui:function(a,b,c,d){l("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(l("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);l(a.nTable).on("order.dt.DT",function(e,h,f,g){a===h&&(e=c.idx,b.removeClass(d.sSortAsc+
|
||||
" "+d.sSortDesc).addClass("asc"==g[e]?d.sSortAsc:"desc"==g[e]?d.sSortDesc:c.sSortingClass),b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass("asc"==g[e]?d.sSortJUIAsc:"desc"==g[e]?d.sSortJUIDesc:c.sSortingClassJUI))})}}});var yb=function(a){Array.isArray(a)&&(a=a.join(","));return"string"===typeof a?a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):a};u.render=
|
||||
{number:function(a,b,c,d,e){return{display:function(h){if("number"!==typeof h&&"string"!==typeof h)return h;var f=0>h?"-":"",g=parseFloat(h);if(isNaN(g))return yb(h);g=g.toFixed(c);h=Math.abs(g);g=parseInt(h,10);h=c?b+(h-g).toFixed(c).substring(2):"";0===g&&0===parseFloat(h)&&(f="");return f+(d||"")+g.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+h+(e||"")}}},text:function(){return{display:yb,filter:yb}}};l.extend(u.ext.internal,{_fnExternApiFunc:fc,_fnBuildAjax:Oa,_fnAjaxUpdate:Gb,_fnAjaxParameters:Pb,
|
||||
_fnAjaxUpdateDraw:Qb,_fnAjaxDataSrc:za,_fnAddColumn:Ya,_fnColumnOptions:Ga,_fnAdjustColumnSizing:sa,_fnVisibleToColumnIndex:ta,_fnColumnIndexToVisible:ua,_fnVisbleColumns:oa,_fnGetColumns:Ia,_fnColumnTypes:$a,_fnApplyColumnDefs:Db,_fnHungarianMap:E,_fnCamelToHungarian:P,_fnLanguageCompat:ma,_fnBrowserDetect:Bb,_fnAddData:ia,_fnAddTr:Ja,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==q?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return l.inArray(c,a.aoData[b].anCells)},_fnGetCellData:T,
|
||||
_fnSetCellData:Eb,_fnSplitObjNotation:cb,_fnGetObjectDataFn:na,_fnSetObjectDataFn:ha,_fnGetDataMaster:db,_fnClearTable:Ka,_fnDeleteIndex:La,_fnInvalidate:va,_fnGetRowElements:bb,_fnCreateTr:ab,_fnBuildHead:Fb,_fnDrawHead:xa,_fnDraw:ja,_fnReDraw:ka,_fnAddOptionsHtml:Ib,_fnDetectHeader:wa,_fnGetUniqueThs:Na,_fnFeatureHtmlFilter:Kb,_fnFilterComplete:ya,_fnFilterCustom:Tb,_fnFilterColumn:Sb,_fnFilter:Rb,_fnFilterCreateSearch:ib,_fnEscapeRegex:jb,_fnFilterData:Ub,_fnFeatureHtmlInfo:Nb,_fnUpdateInfo:Xb,
|
||||
_fnInfoMacros:Yb,_fnInitialise:Aa,_fnInitComplete:Pa,_fnLengthChange:kb,_fnFeatureHtmlLength:Jb,_fnFeatureHtmlPaginate:Ob,_fnPageChange:Ra,_fnFeatureHtmlProcessing:Lb,_fnProcessingDisplay:V,_fnFeatureHtmlTable:Mb,_fnScrollDraw:Ha,_fnApplyToChildren:ca,_fnCalculateColumnWidths:Za,_fnThrottle:hb,_fnConvertToWidth:Zb,_fnGetWidestNode:$b,_fnGetMaxLenString:ac,_fnStringToCss:K,_fnSortFlatten:pa,_fnSort:Hb,_fnSortAria:cc,_fnSortListener:nb,_fnSortAttachListener:fb,_fnSortingClasses:Sa,_fnSortData:bc,_fnSaveState:Ca,
|
||||
_fnLoadState:dc,_fnImplementState:pb,_fnSettingsFromNode:Ta,_fnLog:da,_fnMap:X,_fnBindAction:ob,_fnCallbackReg:R,_fnCallbackFire:F,_fnLengthOverflow:lb,_fnRenderer:gb,_fnDataSource:Q,_fnRowAttributes:eb,_fnExtend:qb,_fnCalculateEnd:function(){}});l.fn.dataTable=u;u.$=l;l.fn.dataTableSettings=u.settings;l.fn.dataTableExt=u.ext;l.fn.DataTable=function(a){return l(this).dataTable(a).api()};l.each(u,function(a,b){l.fn.DataTable[a]=b});return u});
|
||||
@@ -0,0 +1,94 @@
|
||||
/*! Bootstrap 5 integration for DataTables' Responsive
|
||||
* ©2021 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net-bs5', 'datatables.net-responsive'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ || ! $.fn.dataTable ) {
|
||||
$ = require('datatables.net-bs5')(root, $).$;
|
||||
}
|
||||
|
||||
if ( ! $.fn.dataTable.Responsive ) {
|
||||
require('datatables.net-responsive')(root, $);
|
||||
}
|
||||
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document, undefined ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
var _display = DataTable.Responsive.display;
|
||||
var _original = _display.modal;
|
||||
var _modal = $(
|
||||
'<div class="modal fade dtr-bs-modal" role="dialog">'+
|
||||
'<div class="modal-dialog" role="document">'+
|
||||
'<div class="modal-content">'+
|
||||
'<div class="modal-header">'+
|
||||
'<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>'+
|
||||
'</div>'+
|
||||
'<div class="modal-body"/>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'
|
||||
);
|
||||
var modal;
|
||||
|
||||
// Need to wait for the document to be ready for Boostrap 5 to be able to initialise to modal
|
||||
$(function () {
|
||||
modal = new coreui.Modal(_modal[0]);
|
||||
//modal = new bootstrap.Modal(_modal[0]);
|
||||
});
|
||||
|
||||
_display.modal = function ( options ) {
|
||||
return function ( row, update, render ) {
|
||||
if ( ! $.fn.modal ) {
|
||||
_original( row, update, render );
|
||||
}
|
||||
else {
|
||||
if ( ! update ) {
|
||||
if ( options && options.header ) {
|
||||
var header = _modal.find('div.modal-header');
|
||||
var button = header.find('button').detach();
|
||||
|
||||
header
|
||||
.empty()
|
||||
.append( '<h4 class="modal-title">'+options.header( row )+'</h4>' )
|
||||
.append( button );
|
||||
}
|
||||
|
||||
_modal.find( 'div.modal-body' )
|
||||
.empty()
|
||||
.append( render() );
|
||||
|
||||
_modal
|
||||
.appendTo( 'body' )
|
||||
.modal();
|
||||
|
||||
modal.show();
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
return DataTable.Responsive;
|
||||
}));
|
||||
@@ -1,19 +1,19 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /assets/js/fonia3.js
|
||||
Desc. : JS - Fonia Custom Class v3
|
||||
Module : /assets/js/fonia4.js
|
||||
Desc. : JS - Fonia Custom Class v4
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : June 19th, 2009.
|
||||
Last Modified : February 2nd, 2021.
|
||||
Last Modified : May 3rd, 2022.
|
||||
|
||||
(c) 2009 - 2021, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2009 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
'use strict';
|
||||
|
||||
var FoniaJS = {
|
||||
version: "3.0.0",
|
||||
version: "4.0.0",
|
||||
APP_ID: 0,
|
||||
APP_SID: "",
|
||||
WEB_HOST: "",
|
||||
@@ -24,16 +24,14 @@ var FoniaJS = {
|
||||
phpversion: "",
|
||||
locales: [],
|
||||
deflocal: "",
|
||||
_amenu: [
|
||||
_amenu: [//compatible, remove then !
|
||||
["A", "butAdd", "Tambah", "primary"],
|
||||
["B", "butPDF", "PDF", "info"],
|
||||
["C", "butCancel", "Batal", "danger"],
|
||||
["D", "butDel", "Hapus", "warning"],
|
||||
["E", "butEdit", "Ubah", "primary"],
|
||||
["F", "butFind", "Cari", "info"],
|
||||
["G", "butCicil", "Cicil", "info"],
|
||||
["I", "butInfo", "Info", "info"],
|
||||
["J", "butLunas", "Lunas", "info"],
|
||||
["K", "butLock", "Kunci", "info"],
|
||||
["L", "butExcel", "Excel", "info"],
|
||||
["M", "butSend", "Kirim", "info"],
|
||||
@@ -60,21 +58,6 @@ var FoniaJS = {
|
||||
["SB", "butSBelum", "Belum", "secondary"],
|
||||
],
|
||||
|
||||
toastr_options: {//oke
|
||||
closeButton: true,
|
||||
debug: false,
|
||||
newestOnTop: true,
|
||||
positionClass: 'toast-top-right',
|
||||
preventDuplicates: false,
|
||||
showDuration: '300',
|
||||
hideDuration: 1000,
|
||||
timeOut: '5000',
|
||||
showEasing: 'swing',
|
||||
hideEasing: 'linear',
|
||||
showMethod: 'fadeIn',
|
||||
hideMethod: 'fadeOut',
|
||||
onclick: null
|
||||
},
|
||||
setConfig: function(key, skey) {//oke
|
||||
var _hasil, _adata = null;
|
||||
if (typeof(key) === 'string' && key !== '') {
|
||||
@@ -122,19 +105,12 @@ var FoniaJS = {
|
||||
url: this.WEB_PATH + "apps/php/" + apop.php,
|
||||
sendParam: ["data=default"],
|
||||
onSuccess: function(txt) {
|
||||
this.showWindowDetail(apop.kode, apop.title, txt, apop.width, apop.button, 'false', function(){
|
||||
this.showWindowDetail(apop.kode, apop.title, txt, apop.width, apop.button, 'static', function(){
|
||||
if (typeof window[apop.func]['loading'] === 'function') window[apop.func]['loading'](q);
|
||||
});
|
||||
}.bind(this)
|
||||
}).send();
|
||||
} else {
|
||||
var _bread = '</ol>';
|
||||
$.each(apop.bread, function(i, val){
|
||||
_bread = '<li class="breadcrumb-item'+(i==0?' active':'')+'">'+val+'</li>' + _bread;
|
||||
});
|
||||
_bread = '<ol class="breadcrumb border-0 m-0">' + _bread;
|
||||
$("#pageTitle").html(apop.title);
|
||||
$("#pageBread").html(_bread);
|
||||
//$("#pageToolbarTop").html(this.genToolButton(apop.button));
|
||||
$("#pageToolbarBot").html(this.genToolButton(apop.button));
|
||||
new Request({
|
||||
@@ -152,11 +128,10 @@ var FoniaJS = {
|
||||
|
||||
loadMenu: function() {//oke
|
||||
$(".mlink").click(function(e) {
|
||||
e.stopPropagation();
|
||||
var parmenu = $(this).parent('.dropdown-menu');
|
||||
var sbar = $(this).closest('#sidebar');
|
||||
var linkid = $(this).attr('id').replace("Link", "");
|
||||
if (parmenu) $(parmenu).dropdown('toggle');
|
||||
FoniaJS.callMenu(linkid);
|
||||
if (sbar.length > 0) { (coreui.Sidebar.getInstance(sbar)).hide(); }
|
||||
});
|
||||
if ($("#HomeLink").length) {
|
||||
$("#HomeLink").click(function() {
|
||||
@@ -182,26 +157,32 @@ var FoniaJS = {
|
||||
}
|
||||
},
|
||||
showInfo: function(message, wtime) {//oke
|
||||
if (wtime) this.toastr_options.hideDuration = wtime;
|
||||
toastr.info(message, '', this.toastr_options);
|
||||
var _tmpto = $('<div class="toast align-items-center text-white bg-info border-0" role="alert" aria-live="assertive" aria-atomic="true" data-coreui-delay="'+(wtime?wtime:3000)+'"><div class="d-flex"><div class="toast-body me-2">'+message+'</div><button type="button" class="btn-close me-2 m-auto" data-coreui-dismiss="toast" aria-label="Close"></button></div></div>').appendTo('#div-toast');
|
||||
_tmpto.on('hidden.coreui.toast', function(e){
|
||||
$(this).remove();
|
||||
});
|
||||
(new coreui.Toast(_tmpto)).show();
|
||||
},
|
||||
showError: function(message, wtime) {//oke
|
||||
if (wtime) this.toastr_options.hideDuration = wtime;
|
||||
toastr.error(message, '', this.toastr_options);
|
||||
var _tmpto = $('<div class="toast align-items-center text-white bg-danger border-0" role="alert" aria-live="assertive" aria-atomic="true" data-coreui-delay="'+(wtime?wtime:3000)+'"><div class="d-flex"><div class="toast-body me-2">'+message+'</div><button type="button" class="btn-close me-2 m-auto" data-coreui-dismiss="toast" aria-label="Close"></button></div></div>').appendTo('#div-toast');
|
||||
_tmpto.on('hidden.coreui.toast', function(e){
|
||||
$(this).remove();
|
||||
});
|
||||
(new coreui.Toast(_tmpto)).show();
|
||||
},
|
||||
showInfoLocale: function(tobj, wtime) {//oke
|
||||
showInfoLocale: function(tobj, wtime) {
|
||||
this.showInfo(this.locale(tobj), wtime);
|
||||
},
|
||||
showErrorLocale: function(tobj, wtime) {//oke
|
||||
showErrorLocale: function(tobj, wtime) {
|
||||
this.showError(this.locale(tobj), wtime);
|
||||
},
|
||||
showAuth: function(fungcall, ocall, tmsg, bnotsuper, buserover) {//oke
|
||||
showAuth: function(fungcall, ocall, tmsg, bnotsuper, buserover) {
|
||||
var _breq = (ocall == null) ? false : true;
|
||||
var _bsuper = (bnotsuper == null) ? true : !bnotsuper;
|
||||
var _buover = (buserover == null) ? false : buserover;
|
||||
var _tsid = parseInt(Math.random() * 99999999);
|
||||
var _ceksuper = null;
|
||||
var _isi = new String('<div class="row mb-1" id="Auth_SP1"><div class="col-sm-6 col-lg-5">Username</div><div class="col-sm-6 col-lg-7"><input type="text" class="form-control" id="UID" name="UID" value="'+((_bsuper==false)?this.User.ID:'')+'" required="true"></div></div><div class="row mb-1" id="Auth_SP2"><div class="col-sm-6 col-lg-5">Password</div><div class="col-sm-6 col-lg-7"><input type="password" class="form-control" id="PWD" name="PWD" value="" required="true"></div></div><div class="row mb-1 d-none" id="Auth_SP3"><div class="col-12 text-center"><p>'+this.locale("Fonia.auth_wait_msg")+'</p></div></div><hr class="my-2"><div class="row mt-1"><div class="col-4"><button type="button" class="btn btn-outline-primary shadow-none" id="butSReq">Request</button></div><div class="col-8 text-right"><button type="button" class="btn btn-danger mr-2" id="butSBatal" data-dismiss="modal">Batal</button><button type="button" class="btn btn-success" id="butSOK">OK</button></div></div>');
|
||||
var _isi = new String('<div class="row mb-1" id="Auth_SP1"><div class="col-sm-6 col-lg-5">Username</div><div class="col-sm-6 col-lg-7"><input type="text" class="form-control" id="UID" name="UID" value="'+((_bsuper==false)?this.User.ID:'')+'" required="true"></div></div><div class="row mb-1" id="Auth_SP2"><div class="col-sm-6 col-lg-5">Password</div><div class="col-sm-6 col-lg-7"><input type="password" class="form-control" id="PWD" name="PWD" value="" required="true"></div></div><div class="row mb-1 d-none" id="Auth_SP3"><div class="col-12 text-center"><p>'+this.locale("Fonia.auth_wait_msg")+'</p></div></div><hr class="my-2"><div class="row mt-1"><div class="col-4"><button type="button" class="btn btn-outline-primary shadow-none" id="butSReq">Request</button></div><div class="col-8 text-end"><button type="button" class="btn btn-danger me-2" id="butSBatal" data-coreui-dismiss="modal">Batal</button><button type="button" class="btn btn-success" id="butSOK">OK</button></div></div>');
|
||||
this.winSAuth = this.showWindow('SAuth', ((this.AUTH_LEVEL < 9 && _bsuper == true) ? this.locale("Fonia.auth_super") : this.locale("Fonia.auth_user")), _isi, 200, '', function(){
|
||||
$('#butSOK').click(function() {
|
||||
$('#butSOK').prop('disabled', true);
|
||||
@@ -283,51 +264,84 @@ var FoniaJS = {
|
||||
}.bind(this));
|
||||
},
|
||||
genWinToolBut: function(menu) {//oke
|
||||
var smenu = '';
|
||||
if (typeof menu === 'object'){
|
||||
var ma = ' me-sm-2'; smenu = '<div class="col-12 col-sm-6 my-0 mx-sm-0 text-center text-sm-start">';
|
||||
$.each(menu, function(i, atom) {
|
||||
if (Object.keys(atom).length === 0) {
|
||||
smenu += '</div><div class="col-12 col-sm-6 my-0 mx-sm-0 text-center text-sm-end">';
|
||||
ma = ' ms-sm-2';
|
||||
} else {
|
||||
if (atom.i == 'butTutup') { atom.v='Tutup', atom.c='danger', atom.d='' };
|
||||
if (atom.i == 'butBatal') { atom.v='Batal', atom.c='danger', atom.d='' };
|
||||
var _xt = (typeof atom?.d !== 'undefined') ? ' data-coreui-dismiss="modal"' : '';
|
||||
smenu += '<button type="button" class="btn btn-'+(atom?.c ?? 'info')+' mb-2 mb-sm-0'+ma+' col-10 col-sm-auto" id="'+atom.i+'"'+_xt+'>' + atom.v + '</button>';
|
||||
}
|
||||
});
|
||||
smenu += '</div>';
|
||||
return smenu;
|
||||
}
|
||||
//compatible, remove then !
|
||||
var tom = menu.split(",");
|
||||
var amenu = this._amenu;
|
||||
if (tom.length > 0) {
|
||||
var tmp_menu = '<div>', ma = 'mr-2';
|
||||
var ma = 'me-2'; smenu = '<div>';
|
||||
$.each(tom, function(i, vtom) {
|
||||
if (vtom == "_") {
|
||||
tmp_menu += '</div><div>';
|
||||
ma = 'ml-2';
|
||||
smenu += '</div><div>';
|
||||
ma = 'ms-2';
|
||||
} else {
|
||||
$.each(amenu, function(i, subm) {
|
||||
if (vtom == subm[0]) {
|
||||
var _xt = (-1!==$.inArray(vtom, ['C','WC','WK','WC2','WK2'])) ? ' data-dismiss="modal"' : '';
|
||||
tmp_menu += '<button type="button" class="btn btn-'+subm[3]+' '+ma+'" id="'+subm[1]+'"'+_xt+'>' + subm[2] + '</button>';
|
||||
var _xt = (-1!==$.inArray(vtom, ['C','WC','WK','WC2','WK2'])) ? ' data-coreui-dismiss="modal"' : '';
|
||||
smenu += '<button type="button" class="btn btn-'+subm[3]+' '+ma+'" id="'+subm[1]+'"'+_xt+'>' + subm[2] + '</button>';
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
return tmp_menu + '</div>';
|
||||
} else {
|
||||
return "";
|
||||
smenu += '</div>';
|
||||
}
|
||||
return smenu;
|
||||
},
|
||||
genToolButton: function(menu) {//oke
|
||||
var smenu = '';
|
||||
if (typeof menu === 'object'){
|
||||
var ma = ' me-sm-2'; smenu = '<div class="row mt-2 my-sm-2 justify-content-sm-between"><div class="col-sm-6 text-center text-sm-start">';
|
||||
$.each(menu, function(i, atom) {
|
||||
if (Object.keys(atom).length === 0) {
|
||||
smenu += '</div><div class="col-sm-6 text-center text-sm-end">';
|
||||
ma = ' ms-sm-2';
|
||||
} else {
|
||||
if (atom.i == 'butTutup') { atom.v='Tutup', atom.c='danger', atom.d='' };
|
||||
if (atom.i == 'butBatal') { atom.v='Batal', atom.c='danger', atom.d='' };
|
||||
var _xt = "";//(typeof atom?.d !== 'undefined') ? ' data-coreui-dismiss="modal"' : '';
|
||||
smenu += '<button type="button" class="btn btn-'+(atom?.c ?? 'info')+' mb-2 mb-sm-0'+ma+' col-10 col-sm-3" id="'+atom.i+'"'+_xt+'>' + atom.v + '</button>';
|
||||
}
|
||||
});
|
||||
smenu += '</div></div>';
|
||||
return smenu;
|
||||
}
|
||||
//compatible, remove then !
|
||||
var tom = menu.split(",");
|
||||
var amenu = this._amenu;
|
||||
if (tom.length > 0) {
|
||||
var tmp_menu = '<div class="row mb-2">';
|
||||
smenu = '<div class="row mb-2">';
|
||||
$.each(tom, function(i, vtom) {
|
||||
if (vtom == "_") {
|
||||
tmp_menu += '<div class="d-none d-lg-block col-6 col-md-2 col-xl-2 mb-3"> </div>';
|
||||
smenu += '<div class="d-none d-lg-block col-6 col-md-2 col-xl-2 mb-3"> </div>';
|
||||
} else {
|
||||
$.each(amenu, function(i, subm) {
|
||||
if (vtom == subm[0]) {
|
||||
tmp_menu += '<div class="col-6 col-md-3 col-xl-2 mb-3"><button type="button" class="btn btn-block btn-outline-'+subm[3]+'" id="'+subm[1]+'">' + subm[2] + '</button></div>';
|
||||
smenu += '<div class="col-6 col-md-3 col-xl-2 mb-3"><button type="button" class="btn btn-block btn-outline-'+subm[3]+'" id="'+subm[1]+'">' + subm[2] + '</button></div>';
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
tmp_menu += "</div>";
|
||||
return tmp_menu;
|
||||
} else {
|
||||
return "";
|
||||
smenu += "</div>";
|
||||
}
|
||||
return smenu;
|
||||
},
|
||||
FormDecorated: function() {//oke
|
||||
FormDecorated: function() {
|
||||
$("input").each(function() {
|
||||
if ($(this).hasClass("integer") || $(this).hasClass("angka")) {
|
||||
$(this).keydown(function(e) {
|
||||
@@ -400,11 +414,11 @@ var FoniaJS = {
|
||||
FoniaJS.showError(tmp_str);
|
||||
}
|
||||
});
|
||||
$('.option-tags').each(function() {
|
||||
var _opts = {tags: false, theme: 'coreui'};
|
||||
$('.option-tags').each(function() {//oke
|
||||
var _opts = {tags: false, theme: 'bootstrap-5'};
|
||||
var _dmodal = $(this).closest('div.modal');
|
||||
if ($(_dmodal).hasClass('modal')) _opts.dropdownParent = _dmodal;
|
||||
$(this).select2(_opts);
|
||||
$(this).select2(_opts).on('select2:close', function(e){ $(this).valid(); });
|
||||
});
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
$(".colorpic").each(function() {
|
||||
@@ -423,7 +437,7 @@ var FoniaJS = {
|
||||
if ('function' == typeof autosize) autosize($('textarea'));
|
||||
},
|
||||
|
||||
RequestParam: function(aparam) {//oke
|
||||
RequestParam: function(aparam) {
|
||||
var tmp_hasil = [];
|
||||
var tmp_array = aparam;
|
||||
tmp_array.push('SID=' + parseInt(Math.random() * 99999999));
|
||||
@@ -432,13 +446,6 @@ var FoniaJS = {
|
||||
tmp_array.push(this.id);
|
||||
}
|
||||
});
|
||||
// pengambilan nomor halaman !!
|
||||
$('table.datatable').each(function() {
|
||||
if (this.id == '') return;
|
||||
var _tmptab = $(this).DataTable();
|
||||
if ('undefined' == typeof _tmptab.page) return;
|
||||
if ('function' == typeof _tmptab.page.info) tmp_array.push(this.id.replace('Tabel','')+'_pg='+_tmptab.page.info().page);
|
||||
});
|
||||
$.each(tmp_array, function(i, nilai) {
|
||||
if (typeof nilai === "string") {
|
||||
var tmp_value = "";
|
||||
@@ -527,17 +534,24 @@ var FoniaJS = {
|
||||
}
|
||||
return x1 + x2;
|
||||
},
|
||||
formatBytes: function(bytes, deci) {//oke
|
||||
if (bytes === 0) return '0 Bytes';
|
||||
const dm = deci ?? 0;
|
||||
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
||||
const i = Math.floor(Math.log(bytes) / Math.log(1024));
|
||||
return parseFloat((bytes / Math.pow(1024, i)).toFixed(dm)) + ' ' + sizes[i];
|
||||
},
|
||||
showConfirm: function(str_judul, str_isi, func_callback, conf_tipe) {//oke
|
||||
var _cfunc = (typeof func_callback == "function") ? func_callback : function() {};
|
||||
var _ctipe = (conf_tipe == null) ? 'modal-warning' : 'modal-'+conf_tipe;
|
||||
var _btipe = (conf_tipe == null) ? 'btn-warning' : 'btn-'+conf_tipe;
|
||||
var _wtxt =
|
||||
'<div class="modal fade" id="winAPPConf" tabindex="-1" role="dialog" data-keyboard="false" data-show="false" data-backdrop="false" aria-labelledby="winAPPConfLabel" aria-hidden="true">'+
|
||||
'<div class="modal fade" id="winAPPConf" tabindex="-1" role="dialog" data-coreui-keyboard="false" data-coreui-show="false" data-coreui-backdrop="false" aria-labelledby="winAPPConfLabel" aria-hidden="true">'+
|
||||
'<div class="modal-dialog modal-dialog-centered '+_ctipe+' modal-400" role="document">'+
|
||||
'<div class="modal-content">'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="winAPPConfLabel">'+str_judul+'</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div>'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="winAPPConfLabel">'+str_judul+'</h5><button class="btn-close" type="button" data-coreui-dismiss="modal" aria-label="Close"></button></div>'+
|
||||
'<div class="modal-body text-center mh-100">'+str_isi+'</div>'+
|
||||
'<div class="modal-footer"><button type="button" class="btn btn-secondary" data-dismiss="modal">Tidak</button><button type="button" class="btn '+_btipe+' ml-2" id="winConfirmY">Ya</button></div>'+
|
||||
'<div class="modal-footer"><button type="button" class="btn btn-secondary" data-coreui-dismiss="modal">Tidak</button><button type="button" class="btn '+_btipe+' ms-2" id="winConfirmY">Ya</button></div>'+
|
||||
'</div></div></div>';
|
||||
if ($('#winAPPConf').length) $('#winAPPConf').modal('dispose').remove();
|
||||
$(_wtxt).on('shown.coreui.modal', function(e){
|
||||
@@ -560,16 +574,16 @@ var FoniaJS = {
|
||||
if (i_width <= 800) { t_width = 'modal-lg'; } else
|
||||
if (i_width <= 1200) { t_width = 'modal-xl'; } else
|
||||
if (i_width > 1200) { t_width = 'modal-fs'; }
|
||||
if (typeof s_toolb !== 'undefined' && s_toolb != '' && s_toolb !== null) {
|
||||
t_toolb = '<div class="modal-footer justify-content-between">';
|
||||
if (typeof s_toolb !== 'undefined' && s_toolb !== '' && s_toolb !== null) {
|
||||
t_toolb = '<div class="modal-footer justify-content-sm-between">';
|
||||
t_toolb += this.genWinToolBut(s_toolb);
|
||||
t_toolb += '</div>';
|
||||
}
|
||||
var _wtxt =
|
||||
'<div class="modal fade" id="win'+id_wind+'" tabindex="-1" role="dialog" data-keyboard="false" data-show="false" data-backdrop="'+(s_block==''?'static':s_block)+'" aria-labelledby="win'+id_wind+'Label" aria-hidden="true">'+
|
||||
'<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable '+t_width+'" role="document">'+
|
||||
'<div class="modal fade" id="win'+id_wind+'" tabindex="-1" data-coreui-keyboard="false"'+(s_block==''?'':' data-coreui-backdrop="'+s_block+'"')+' aria-labelledby="win'+id_wind+'Label" aria-hidden="true">'+
|
||||
'<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable '+t_width+'">'+
|
||||
'<div class="modal-content">'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="win'+id_wind+'Label">'+s_judul+'</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div>'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="win'+id_wind+'Label">'+s_judul+'</h5><button class="btn-close" type="button" data-coreui-dismiss="modal" aria-label="Close"></button></div>'+
|
||||
'<div class="modal-body">'+s_isi+'</div>'+ t_toolb +
|
||||
'</div></div></div>';
|
||||
if ($('#win'+id_wind).length) $('#win'+id_wind).modal('dispose').remove();
|
||||
@@ -596,28 +610,11 @@ var FoniaJS = {
|
||||
$("#dataPrint").empty();
|
||||
}
|
||||
},
|
||||
dynamicResize: function(ewin) {//oke
|
||||
var _tmpWin = null;
|
||||
if (typeof(ewin) === "string") {
|
||||
_tmpWin = '#win'+ewin;
|
||||
} else {
|
||||
_tmpWin = $(ewin).attr('id');
|
||||
}
|
||||
$(_tmpWin).modal('handleUpdate');
|
||||
},
|
||||
getCell: function(atr) {//oke
|
||||
var acell = [];
|
||||
var _acell = atr.getElements("td");
|
||||
_acell.each(function() {
|
||||
acell.push($(this).html() == "" ? "" : $(this).html());
|
||||
});
|
||||
return acell;
|
||||
},
|
||||
setFocus: function(obj) {//oke
|
||||
setFocus: function(obj) {
|
||||
$(obj).select();
|
||||
$(obj).focus();
|
||||
},
|
||||
lPad: function(n, width, z) {//oke
|
||||
lPad: function(n, width, z) {
|
||||
z = z || "0";
|
||||
n = n + "";
|
||||
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
|
||||
@@ -653,7 +650,7 @@ var FoniaJS = {
|
||||
}, this.locales[this.deflocal]);
|
||||
}
|
||||
},
|
||||
Text_Auto: function(elm, turl, aparam, func_comp, func_key){//oke
|
||||
Text_Auto: function(elm, turl, aparam, func_comp, func_key){
|
||||
var arrData = [], objComp = {};
|
||||
if ('string' !== typeof aparam) arrData = this.RequestParam(aparam);
|
||||
objComp = {
|
||||
@@ -674,12 +671,12 @@ var FoniaJS = {
|
||||
});
|
||||
}
|
||||
},
|
||||
getAppID: function() {//oke
|
||||
getAppID: function() {
|
||||
return this.APP_ID;
|
||||
}
|
||||
};
|
||||
|
||||
var Request = function(options){//oke
|
||||
var Request = function(options){
|
||||
var vars = {
|
||||
url: "",
|
||||
sendParam: [],
|
||||
@@ -819,23 +816,20 @@ Request.JSONF = function(options){//oke
|
||||
};
|
||||
var make_table = function(ini){//oke
|
||||
var divData = $('#'+ini.id).empty();
|
||||
var strHead = '<thead><tr>', iCol = 0, sClass = '', aSortCol = [];
|
||||
var strHead = '<thead><tr>', iCol = 0, sClass = '', aSortCol = [], aTombol = [];
|
||||
$.each(ini.header, function(key, val){
|
||||
if (val.o == ini.config.sort_col) iCol = key;
|
||||
strHead += '<th data-class-name="'+val.f+'">'+val.c+'</th>';
|
||||
if (val.f.indexOf('select')!=-1) { aSortCol.push({ "orderDataType": "dom-select" }); }
|
||||
else if (val.f.indexOf('checkbox')!=-1) { aSortCol.push({ "orderDataType": "dom-checkbox" }); }
|
||||
else if (val.f.indexOf('valzerolast')!=-1) { aSortCol.push({ "orderDataType": "val-zerolast" }); }
|
||||
else if (val.f.indexOf('valjam')!=-1) { aSortCol.push({ "orderDataType": "val-jam" }); }
|
||||
else if (val.f.indexOf('valtgl')!=-1) { aSortCol.push({ "orderDataType": "val-tgl" }); }
|
||||
if (val.s) { aSortCol.push({ "orderDataType": val.s }); }
|
||||
else { aSortCol.push(null); }
|
||||
});
|
||||
if (ini.option.length > 0) {
|
||||
var strAksi = 'Aksi';
|
||||
$.each(ini.option, function(key, val){
|
||||
if (val.type == 'checkbox') strAksi = '<input type="checkbox" id="'+ini.id+'_cbhead_'+val.field+'" value="'+val.avalue[1]+'">';
|
||||
if (val.type == 'button') aTombol[val.icon] = val.label;
|
||||
});
|
||||
strHead += '<th data-class-name="center">'+strAksi+'</th>';
|
||||
strHead += '<th data-class-name="c">'+strAksi+'</th>';
|
||||
aSortCol.push(null);
|
||||
}
|
||||
strHead += '</tr></thead>';
|
||||
@@ -855,41 +849,57 @@ Request.JSONF = function(options){//oke
|
||||
var sClass = '';
|
||||
if (ini.config.css) sClass += ' '+ini.config.css;
|
||||
if (ini.config.func_select) sClass += ' table-select';
|
||||
var strTab = '<table id="'+ini.id+'Tabel" class="table table-striped table-bordered table-hover'+sClass+' datatable" data-order=\'[['+iCol+',"'+(ini.config.sort_dir=='A'?'asc':'desc')+'"]]\' data-page-length="'+ini.config.row_count+'">';
|
||||
var strTab = '<table id="'+ini.id+'Tabel" class="table table-striped table-bordered table-hover'+sClass+' datatable">';
|
||||
|
||||
var strBody = '<tbody>';
|
||||
$.each(ini.content, function(key, val){
|
||||
strBody += '<tr'+(val[0].rowcss?' class="'+val[0].rowcss+'"':'')+'>';
|
||||
$.each(val, function(keyi, vali){
|
||||
if (keyi == 0) return;
|
||||
strBody += '<td>' + vali + '</td>';
|
||||
var _title = (ini.header[(keyi-1)].f.indexOf('awr') >= 0) ? ' title="' + vali.replace(/<br\s*[\/]?>/gi,'\n').replace(/(<([^>]+)>)/gi,'') + '"' : '';
|
||||
strBody += '<td'+_title+'>' + vali + '</td>';
|
||||
});
|
||||
if (ini.option.length > 0) {
|
||||
var _tbtn = "";
|
||||
var _tbtn1 = "", _tbtn2 = "";
|
||||
if (val[0].button.length > 0) {
|
||||
$.each(val[0].button, function(keyb, valb){
|
||||
var _icon = (valb[0]=='fon-tabel-dt') ? 'pencil' : valb[0];
|
||||
var _cssa = (valb[1]=='') ? '' : ' text-'+valb[1];
|
||||
var _cssb = (valb[1]=='') ? ' normal' : ' btn-'+valb[1];
|
||||
if (ini.config.txtbutton === true) {
|
||||
_tbtn += '<button class="btn tbl-rowbtn d-lg-down-none '+valb+'" type="button"></button>';
|
||||
_tbtn += '<a class="table-icon d-lg-none '+valb+'" tabindex=-1><i class="c-icon cui-'+valb+'"></i></a>';
|
||||
_tbtn1 += '<button class="btn tbl-rowbtn d-none d-lg-inline-block '+valb[0]+_cssb+' me-2" type="button">'+aTombol[valb[0]]+'</button>';
|
||||
_tbtn2 += '<a class="table-icon d-lg-none '+valb[0]+_cssa+'" tabindex="-1" title="'+aTombol[valb[0]]+'"><i class="icon cui-'+_icon+'"></i></a>';
|
||||
} else {
|
||||
_tbtn += '<a class="table-icon '+valb+'" tabindex=-1><i class="c-icon cui-'+valb+'"></i></a>';
|
||||
_tbtn2 += '<a class="table-icon '+valb[0]+_cssa+'" title="'+aTombol[valb[0]]+'"><i class="icon cui-'+_icon+'"></i></a>';
|
||||
}
|
||||
})
|
||||
}
|
||||
if (val[0].checkbox) {
|
||||
_tbtn += '<input type="checkbox" id="_cbox_'+val[0].checkbox.field+'" value="'+val[0].checkbox.value+'">';
|
||||
_tbtn1 += '<div><input class="form-check-input" type="checkbox" id="_cbox_'+val[0].checkbox.field+'" value="'+val[0].checkbox.value+'"></div>';
|
||||
}
|
||||
strBody += '<td>'+_tbtn+'</td>';
|
||||
strBody += '<td class="d-lg-flex justify-content-lg-center">'+_tbtn1+_tbtn2+'</td>';
|
||||
}
|
||||
strBody += '</tr>';
|
||||
});
|
||||
strBody += '</tbody>';
|
||||
|
||||
$(divData).append(strTab + strHead + strBody + strFoot + '</table>');
|
||||
var opsi = { responsive: true, columnDefs: [{responsivePriority:1,targets:0}], dom: 'rt<"bottom"p>', autoWidth: false, processing: true, searching: false };
|
||||
//language: { url: FoniaJS.WEB_PATH+'assets/locale/datatables.id.json' },
|
||||
opsi.columns = aSortCol;
|
||||
if (ini.option.length > 0) opsi.columnDefs = [{responsivePriority:1,targets:0}, {responsivePriority:2,targets:-1}, {orderable:false,targets:-1}];
|
||||
var opsi = { responsive: true, columnDefs: [{responsivePriority:1,targets:0},{responsivePriority:2,targets:1}], lengthMenu: [], dom: '<"row"<"col-sm-12"tr>><"row"<"col-sm-12 col-lg-auto"<"toolbar">><"col-sm-3 col-lg-auto ms-lg-auto"l><"col-sm-9 col-lg-auto"p>>', autoWidth: false, processing: true, searching: false, columns: aSortCol, order: [[iCol, (ini.config.sort_dir=='A'?'asc':'desc')]], pageLength: ini.config.row_count, stateSave: true, stateSaveCallback: function(sett,data){localStorage.setItem(ini.id,JSON.stringify(data));}, stateLoadCallback: function(sett){try{return JSON.parse(localStorage.getItem(ini.id));}catch(e){}} };
|
||||
if (ini.option.length > 0) opsi.columnDefs.push({responsivePriority:3,targets:-1}, {orderable:false,targets:-1});
|
||||
if (ini.navi.func_navi == '') opsi.paging = false;
|
||||
var _lmenu = [];
|
||||
$.each([10,25,50], function(key, val){
|
||||
if (val > ini.content.length) return false;
|
||||
_lmenu.push(val);
|
||||
});
|
||||
if (10 > ini.content.length){
|
||||
opsi.lengthMenu.push([10]);
|
||||
opsi.lengthMenu.push([10]);
|
||||
}else{
|
||||
_lmenu.push(-1), opsi.lengthMenu.push(_lmenu), _lmenu.pop();
|
||||
_lmenu.push(ini.content.length), opsi.lengthMenu.push(_lmenu);
|
||||
}
|
||||
|
||||
if (ini.config.scrollbar == true) {
|
||||
opsi.scrollY = ini.config.scroll_height;
|
||||
opsi.deferRender = true;
|
||||
@@ -902,21 +912,21 @@ Request.JSONF = function(options){//oke
|
||||
_dis = ' disabled=true';
|
||||
_bcss = 'btn-secondary';
|
||||
}
|
||||
var _navibar = '<div class="row">';
|
||||
var _navibar = '<div class="row"><div class="col">';
|
||||
$.each(ini.navi.button, function(key, val){
|
||||
_navibar += '<div class="col"><button type="button" class="btn btn-pill '+_bcss+'"'+_dis+' onclick="'+val.func+'();">'+val.label+'</button></div>';
|
||||
_navibar += '<button type="button" class="btn rounded-pill '+_bcss+' me-2"'+_dis+' onclick="'+val.func+'();">'+val.label+'</button>';
|
||||
});
|
||||
_navibar += '</div>';
|
||||
opsi.dom = 'r<"row"<"col-sm-12"t>><"row"<"col-sm-12 col-md-6"<"toolbar">><"col-sm-12 col-md-6"p>>';
|
||||
_navibar += '</div></div>';
|
||||
}
|
||||
opsi.initComplete = function(){
|
||||
if (ini.navi.button) $('#'+ini.id+' div.toolbar').html(_navibar);
|
||||
if (ini.config.page > 0) otabel.page(ini.config.page).draw('page');
|
||||
opsi.initComplete = function(settings,json){
|
||||
if (ini.navi.button) $('#'+ini.id+'Tabel_wrapper div.toolbar').html(_navibar);
|
||||
}
|
||||
opsi.drawCallback = function(settings){
|
||||
}
|
||||
|
||||
var otabel = $('#'+ini.id+' table').DataTable(opsi);
|
||||
var otabel = $('#'+ini.id+'Tabel').DataTable(opsi);
|
||||
if (ini.config.func_select) {
|
||||
$('#'+ini.id+' tbody').on('click', 'tr', function(){
|
||||
$('#'+ini.id+'Tabel tbody').on('click', 'tr', function(){
|
||||
var dta = otabel.row(this).data();
|
||||
var fnc = ini.config.func_select.split('.');
|
||||
if (typeof window[fnc[0]][fnc[1]] === 'function') { window[fnc[0]][fnc[1]](dta); }
|
||||
@@ -926,17 +936,17 @@ Request.JSONF = function(options){//oke
|
||||
if (ini.option.length > 0) {
|
||||
$.each(ini.option, function(key, val){
|
||||
if (val.type == 'checkbox'){
|
||||
$('#'+ini.id+' thead input[type=checkbox][id*=_cbhead_]').each(function(){
|
||||
$('#'+ini.id+'Tabel thead input[type=checkbox][id*=_cbhead_]').each(function(){
|
||||
$(this).on('change', function(){
|
||||
_chek = this.checked;
|
||||
this.value = (this.checked ? val.avalue[0] : val.avalue[1]);
|
||||
$('#'+ini.id+' tbody input[type=checkbox][id*='+val.field+'_cbox_]').each(function(){
|
||||
$('#'+ini.id+'Tabel tbody input[type=checkbox][id*='+val.field+'_cbox_]').each(function(){
|
||||
this.checked = _chek;
|
||||
this.value = (this.checked ? val.avalue[0] : val.avalue[1]);
|
||||
});
|
||||
});
|
||||
});
|
||||
$('#'+ini.id+' tbody input[type=checkbox][id*=_cbox_]').each(function(){
|
||||
$('#'+ini.id+'Tabel tbody input[type=checkbox][id*=_cbox_]').each(function(){
|
||||
this.id = val.field + this.id;
|
||||
this.checked = this.value==val.avalue[0];
|
||||
$(this).on('change', function(){
|
||||
@@ -944,122 +954,35 @@ Request.JSONF = function(options){//oke
|
||||
});
|
||||
});
|
||||
} else if (val.type == 'button'){
|
||||
if (ini.config.txtbutton === true) {
|
||||
$('#'+ini.id+' tbody button.'+val.icon).html(val.label);
|
||||
if (val.icon == 'fon-tabel-dt') {
|
||||
$('#'+ini.id+'Tabel tbody').on('click', '.fon-tabel-dt', function(){
|
||||
var tr = $(this).closest('tr');
|
||||
var row = otabel.row(tr);
|
||||
if (row.child.isShown()){
|
||||
row.child.hide();
|
||||
tr.removeClass('shown');
|
||||
}else{
|
||||
var fnc = val.func.split('.');
|
||||
if (typeof window[fnc[0]][fnc[1]] === 'function'){
|
||||
var _dt_id = $('<div id="TD_Fonia_' + parseInt(Math.random() * 99999999) + '" />');
|
||||
row.child(_dt_id).show();
|
||||
tr.addClass('shown');
|
||||
window[fnc[0]][fnc[1]](row.data(), _dt_id);
|
||||
} else console.warn('fungsi '+val.func+' tidak ada !');
|
||||
}
|
||||
$('#'+ini.id+' tbody a.'+val.icon).prop('title', val.label);
|
||||
$('#'+ini.id+' tbody').on('click', '.'+val.icon, function(){
|
||||
});
|
||||
} else {
|
||||
$('#'+ini.id+'Tabel tbody').on('click', '.'+val.icon, function(){
|
||||
var dta = otabel.row($(this.closest('tr'))).data();
|
||||
var fnc = val.func.split('.');
|
||||
if (typeof window[fnc[0]][fnc[1]] === 'function') { window[fnc[0]][fnc[1]](dta); }
|
||||
if (typeof window[fnc[0]][fnc[1]] === 'function') { window[fnc[0]][fnc[1]](dta, this); }
|
||||
else console.warn('fungsi '+val.func+' tidak ada !');
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('#'+ini.id+' tbody td.autowrap').each(function(){
|
||||
this.title = $(this).html().replace(/<br\s*[\/]?>/gi,'\n').replace(/(<([^>]+)>)/gi,'');
|
||||
});
|
||||
};
|
||||
/*var make_table_db = function(ini){
|
||||
var divData = $('#'+ini.id).empty();
|
||||
var strHead = '<thead><tr>', iCol = 0, sClass = '';
|
||||
$.each(ini.header, function(key, val){
|
||||
if (val.o == ini.config.sort_col) iCol = key;
|
||||
strHead += '<th data-class-name="'+val.f+'">'+val.c+'</th>';
|
||||
});
|
||||
if (ini.option.length > 0) strHead += '<th data-class-name="center">Aksi</th>';
|
||||
strHead += '</tr></thead>';
|
||||
|
||||
if (ini.config.func_select) sClass = ' table-select';
|
||||
var strTab = '<table id="'+ini.id+'Tabel" class="table table-striped table-bordered table-hover'+sClass+' datatable" data-order=\'[['+iCol+',"'+(ini.config.sort_dir=='A'?'asc':'desc')+'"]]\' data-page-length="'+ini.config.row_count+'">';
|
||||
|
||||
var strBody = '<tbody>';
|
||||
$.each(ini.content, function(key, val){
|
||||
strBody += '<tr'+(val[0].rowcss?' class="'+val[0].rowcss+'"':'')+'>';
|
||||
$.each(val, function(keyi, vali){
|
||||
if (keyi == 0) return;
|
||||
strBody += '<td>' + vali + '</td>';
|
||||
});
|
||||
if (ini.option.length > 0 || val[0].checkbox) {
|
||||
var _tbtn = "";
|
||||
if (val[0].button.length > 0) {
|
||||
$.each(val[0].button, function(keyb, valb){
|
||||
if (ini.config.txtbutton === true) {
|
||||
_tbtn += '<button class="btn '+valb+'" type="button"></button>';
|
||||
} else {
|
||||
_tbtn += '<a class="table-icon '+valb+'" tabindex=-1><i class="c-icon cui-'+valb+'"></i></a>';
|
||||
}
|
||||
})
|
||||
}
|
||||
if (val[0].checkbox) {
|
||||
_tbtn += '<input type="checkbox" id="_cbox_'+val[0].checkbox.field+'" value="'+val[0].checkbox.value+'">';
|
||||
}
|
||||
strBody += '<td>'+_tbtn+'</td>';
|
||||
}
|
||||
strBody += '</tr>';
|
||||
});
|
||||
strBody += '</tbody>';
|
||||
|
||||
$(divData).append(strTab + strHead + strBody + '</table>');
|
||||
var opsi = { language: { url: FoniaJS.WEB_PATH+'assets/locale/datatables.id.json' }, dom: 'rt<"bottom"p>', autoWidth: false, processing: true, searching: false };
|
||||
if (ini.config.scrollbar == true) {
|
||||
opsi.scrollY = ini.config.scroll_height;
|
||||
opsi.scroller = { loadingIndicator: true }
|
||||
}
|
||||
|
||||
if (ini.navi.button) {
|
||||
var _dis = '', _bcss = 'btn-info';
|
||||
if (ini.config.nobutton === true){
|
||||
_dis = ' disabled=true';
|
||||
_bcss = 'btn-secondary';
|
||||
}
|
||||
var _navibar = '<div class="row">';
|
||||
$.each(ini.navi.button, function(key, val){
|
||||
_navibar += '<div class="col"><button type="button" class="btn btn-pill '+_bcss+'"'+_dis+' onclick="'+val.func+'();">'+val.label+'</button></div>';
|
||||
});
|
||||
_navibar += '</div>';
|
||||
opsi.dom = 'r<"row"<"col-sm-12"t>><"row"<"col-sm-12 col-md-6"<"toolbar">><"col-sm-12 col-md-6"p>>';
|
||||
opsi.initComplete = function(){
|
||||
$('div.toolbar').html(_navibar);
|
||||
};
|
||||
}
|
||||
|
||||
var otabel = $('#'+ini.id+' table').DataTable(opsi);
|
||||
if (ini.config.func_select) {
|
||||
$('#'+ini.id+' tbody').on('click', 'tr', function(){
|
||||
var dta = otabel.row(this).data();
|
||||
var fnc = ini.config.func_select.split('.');
|
||||
window[fnc[0]][fnc[1]](dta);
|
||||
});
|
||||
}
|
||||
if (ini.option.length > 0) {
|
||||
$.each(ini.option, function(key, val){
|
||||
if (val.type == 'checkbox'){
|
||||
$('#'+ini.id+' tbody input[type=checkbox][id*=_cbox_]').each(function(){
|
||||
this.id = val.field + this.id;
|
||||
this.checked = this.value==val.avalue[0];
|
||||
$(this).on('change', function(){
|
||||
this.value = (this.checked ? val.avalue[0] : val.avalue[1]);
|
||||
});
|
||||
});
|
||||
} else if (val.type == 'button'){
|
||||
if (ini.config.txtbutton === true) {
|
||||
$('#'+ini.id+' tbody button.'+val.icon).html(val.label);
|
||||
} else {
|
||||
$('#'+ini.id+' tbody a.'+val.icon).prop('title', val.label);
|
||||
}
|
||||
$('#'+ini.id+' tbody').on('click', '.'+val.icon, function(){
|
||||
var dta = otabel.row($(this.closest('tr'))).data();
|
||||
var fnc = val.func.split('.');
|
||||
window[fnc[0]][fnc[1]](dta);
|
||||
});
|
||||
$('#'+ini.id+' tbody a.'+val.icon).prop('title', val.label);
|
||||
}
|
||||
});
|
||||
}
|
||||
};*/
|
||||
|
||||
this.construct(options);
|
||||
};
|
||||
|
||||
@@ -1073,44 +996,73 @@ if (jQuery.validator) {
|
||||
FoniaJS.showError('Mohon lengkapi semua field yang berwarna merah !')
|
||||
},
|
||||
highlight: function highlight(element) {
|
||||
$(element).addClass("is-invalid").removeClass("is-valid");
|
||||
$(element).addClass('is-invalid').removeClass('is-valid');
|
||||
},
|
||||
unhighlight: function unhighlight(element) {
|
||||
$(element).addClass("is-valid").removeClass("is-invalid");
|
||||
$(element).addClass('is-valid').removeClass('is-invalid');
|
||||
},
|
||||
errorPlacement: function(error, element){
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
jQuery.validator.addMethod("double_id", function(value, el, param) {
|
||||
jQuery.validator.addMethod('double_id', function(value, el, param) {
|
||||
return this.optional(el) || FoniaJS.StrToFloat(value) >= param;
|
||||
}, "Nilai lebih dari Nol");
|
||||
}, 'Nilai lebih dari Nol');
|
||||
jQuery.validator.addMethod('filesize', function(value, el, param) {
|
||||
return this.optional(el) || (el.files[0].size <= param);
|
||||
}, 'Ukuran file tidak diizinkan');
|
||||
jQuery.validator.addMethod('notEqual', function(value, el, param) {
|
||||
return this.optional(el) || value != param;
|
||||
}, 'Ganti pilihan yang lain');
|
||||
}
|
||||
|
||||
if (jQuery.fn.dataTable) {
|
||||
jQuery.fn.dataTable.ext.order['val-emptylast'] = function( settings, col ){
|
||||
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
|
||||
var _val = $(td).html();
|
||||
return (_val=='') ? Number.MAX_SAFE_INTEGER : 0;
|
||||
});
|
||||
}
|
||||
jQuery.fn.dataTable.ext.order['val-zerolast'] = function( settings, col ){
|
||||
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
|
||||
var _val = $(td).html();
|
||||
return (_val==0) ? Number.MAX_SAFE_INTEGER : _val;
|
||||
});
|
||||
}
|
||||
jQuery.fn.dataTable.ext.order['val-fnumber'] = function( settings, col ){
|
||||
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
|
||||
var val = $(td).text().trim();
|
||||
return val.replace( /[\,]/g, "" );
|
||||
});
|
||||
}
|
||||
jQuery.fn.dataTable.ext.order['val-jam'] = function( settings, col ){
|
||||
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
|
||||
var val = $(td).text().trim();
|
||||
return moment(val, "DD/MM/YYYY hh:mm:ss a").format("X");
|
||||
return moment(val, "HH:mm:ss").format("X");
|
||||
});
|
||||
}
|
||||
jQuery.fn.dataTable.ext.order['val-tgl'] = function( settings, col ){
|
||||
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
|
||||
var val = $(td).text().trim();
|
||||
return moment(val, "DD/MM/YYYY").format("X");
|
||||
return moment(val, "DD-MM-YYYY").format("X");
|
||||
});
|
||||
}
|
||||
jQuery.fn.dataTable.ext.order['val-tgljam'] = function( settings, col ){
|
||||
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
|
||||
var val = $(td).text().trim();
|
||||
return moment(val, "DD-MM-YYYY HH:mm:ss").format("X");
|
||||
});
|
||||
}
|
||||
jQuery.fn.dataTable.ext.order['val-tgljams'] = function( settings, col ){
|
||||
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
|
||||
var val = $(td).text().trim();
|
||||
return moment(val, "DD.MM.YY HH:mm:ss").format("X");
|
||||
});
|
||||
}
|
||||
jQuery.fn.dataTable.ext.order['dom-select'] = function( settings, col ){
|
||||
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
|
||||
var _val = $('select', td).val();
|
||||
return (_val==0) ? 999 : _val;
|
||||
return $('select', td).val();
|
||||
});
|
||||
}
|
||||
jQuery.fn.dataTable.ext.order['dom-checkbox'] = function( settings, col ){
|
||||
@@ -1118,6 +1070,9 @@ if (jQuery.fn.dataTable) {
|
||||
return $('input', td).prop('checked') ? '1' : '0';
|
||||
});
|
||||
}
|
||||
jQuery.extend(jQuery.fn.dataTable.ext.classes, {
|
||||
sLengthSelect: "form-select text-center",
|
||||
});
|
||||
jQuery.extend(jQuery.fn.dataTable.defaults.oLanguage, {
|
||||
"oAria": {
|
||||
"sSortAscending": ": aktifkan urutan kolom keatas",
|
||||
@@ -1131,7 +1086,7 @@ if (jQuery.fn.dataTable) {
|
||||
},
|
||||
"sEmptyTable": "Tidak ada data yang tersedia pada tabel ini",
|
||||
"sProcessing": "Sedang memproses...",
|
||||
"sLengthMenu": "Tampilkan _MENU_ entri",
|
||||
"sLengthMenu": "_MENU_",
|
||||
"sZeroRecords": "Tidak ditemukan data yang sesuai",
|
||||
"sInfo": "Menampilkan _START_ sampai _END_ dari _TOTAL_ entri",
|
||||
"sInfoEmpty": "Menampilkan 0 sampai 0 dari 0 entri",
|
||||
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
autosize 4.0.2
|
||||
autosize 5.0.1
|
||||
license: MIT
|
||||
http://www.jacklmoore.com/autosize
|
||||
*/
|
||||
!function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,o,p="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return-1<n.indexOf(e)},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);-1<t&&(n.splice(t,1),o.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function r(r){if(r&&r.nodeName&&"TEXTAREA"===r.nodeName&&!p.has(r)){var e,n=null,o=null,i=null,d=function(){r.clientWidth!==o&&a()},l=function(t){window.removeEventListener("resize",d,!1),r.removeEventListener("input",a,!1),r.removeEventListener("keyup",a,!1),r.removeEventListener("autosize:destroy",l,!1),r.removeEventListener("autosize:update",a,!1),Object.keys(t).forEach(function(e){r.style[e]=t[e]}),p.delete(r)}.bind(r,{height:r.style.height,resize:r.style.resize,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",l,!1),"onpropertychange"in r&&"oninput"in r&&r.addEventListener("keyup",a,!1),window.addEventListener("resize",d,!1),r.addEventListener("input",a,!1),r.addEventListener("autosize:update",a,!1),r.style.overflowX="hidden",r.style.wordWrap="break-word",p.set(r,{destroy:l,update:a}),"vertical"===(e=window.getComputedStyle(r,null)).resize?r.style.resize="none":"both"===e.resize&&(r.style.resize="horizontal"),n="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(n)&&(n=0),a()}function s(e){var t=r.style.width;r.style.width="0px",r.offsetWidth,r.style.width=t,r.style.overflowY=e}function u(){if(0!==r.scrollHeight){var e=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(r),t=document.documentElement&&document.documentElement.scrollTop;r.style.height="",r.style.height=r.scrollHeight+n+"px",o=r.clientWidth,e.forEach(function(e){e.node.scrollTop=e.scrollTop}),t&&(document.documentElement.scrollTop=t)}}function a(){u();var e=Math.round(parseFloat(r.style.height)),t=window.getComputedStyle(r,null),n="content-box"===t.boxSizing?Math.round(parseFloat(t.height)):r.offsetHeight;if(n<e?"hidden"===t.overflowY&&(s("scroll"),u(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(r,null).height)):r.offsetHeight):"hidden"!==t.overflowY&&(s("hidden"),u(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(r,null).height)):r.offsetHeight),i!==n){i=n;var o=c("autosize:resized");try{r.dispatchEvent(o)}catch(e){}}}}function i(e){var t=p.get(e);t&&t.destroy()}function d(e){var t=p.get(e);t&&t.update()}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return r(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],d),e}),t.default=l,e.exports=t.default});
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e||self).autosize=t()}(this,function(){var e,t,n="function"==typeof Map?new Map:(e=[],t=[],{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,o){-1===e.indexOf(n)&&(e.push(n),t.push(o))},delete:function(n){var o=e.indexOf(n);o>-1&&(e.splice(o,1),t.splice(o,1))}}),o=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function r(e){var t=n.get(e);t&&t.destroy()}function i(e){var t=n.get(e);t&&t.update()}var l=null;return"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!n.has(e)){var t,r=null,i=null,l=null,d=function(){e.clientWidth!==i&&c()},u=function(t){window.removeEventListener("resize",d,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",u,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),n.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",u,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",d,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",n.set(e,{destroy:u,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),r="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(r)&&(r=0),c()}function a(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function s(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),n=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+r+"px",i=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),n&&(document.documentElement.scrollTop=n)}}function c(){s();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(a("scroll"),s(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(a("hidden"),s(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==r){l=r;var i=o("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),l});
|
||||
@@ -1,181 +0,0 @@
|
||||
/*!
|
||||
Copyright 2008-2020 SpryMedia Ltd.
|
||||
|
||||
This source file is free software, available under the following license:
|
||||
MIT license - http://datatables.net/license
|
||||
|
||||
This source file is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
||||
|
||||
For details please refer to: http://www.datatables.net
|
||||
DataTables 1.10.21
|
||||
©2008-2020 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(f,y,w){f instanceof String&&(f=String(f));for(var n=f.length,H=0;H<n;H++){var L=f[H];if(y.call(w,L,H,f))return{i:H,v:L}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(f,y,w){f!=Array.prototype&&f!=Object.prototype&&(f[y]=w.value)};$jscomp.getGlobal=function(f){f=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,f];for(var y=0;y<f.length;++y){var w=f[y];if(w&&w.Math==Math)return w}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(f,y,w,n){if(y){w=$jscomp.global;f=f.split(".");for(n=0;n<f.length-1;n++){var H=f[n];H in w||(w[H]={});w=w[H]}f=f[f.length-1];n=w[f];y=y(n);y!=n&&null!=y&&$jscomp.defineProperty(w,f,{configurable:!0,writable:!0,value:y})}};$jscomp.polyfill("Array.prototype.find",function(f){return f?f:function(f,w){return $jscomp.findInternal(this,f,w).v}},"es6","es3");
|
||||
(function(f){"function"===typeof define&&define.amd?define(["jquery"],function(y){return f(y,window,document)}):"object"===typeof exports?module.exports=function(y,w){y||(y=window);w||(w="undefined"!==typeof window?require("jquery"):require("jquery")(y));return f(w,y,y.document)}:f(jQuery,window,document)})(function(f,y,w,n){function H(a){var b,c,d={};f.each(a,function(e,h){(b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" ")&&(c=e.replace(b[0],b[2].toLowerCase()),
|
||||
d[c]=e,"o"===b[1]&&H(a[e]))});a._hungarianMap=d}function L(a,b,c){a._hungarianMap||H(a);var d;f.each(b,function(e,h){d=a._hungarianMap[e];d===n||!c&&b[d]!==n||("o"===d.charAt(0)?(b[d]||(b[d]={}),f.extend(!0,b[d],b[e]),L(a[d],b[d],c)):b[d]=b[e])})}function Fa(a){var b=q.defaults.oLanguage,c=b.sDecimal;c&&Ga(c);if(a){var d=a.sZeroRecords;!a.sEmptyTable&&d&&"No data available in table"===b.sEmptyTable&&M(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&d&&"Loading..."===b.sLoadingRecords&&M(a,a,
|
||||
"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&c!==a&&Ga(a)}}function ib(a){E(a,"ordering","bSort");E(a,"orderMulti","bSortMulti");E(a,"orderClasses","bSortClasses");E(a,"orderCellsTop","bSortCellsTop");E(a,"order","aaSorting");E(a,"orderFixed","aaSortingFixed");E(a,"paging","bPaginate");E(a,"pagingType","sPaginationType");E(a,"pageLength","iDisplayLength");E(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":
|
||||
"");"boolean"===typeof a.scrollX&&(a.scrollX=a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&L(q.models.oSearch,a[b])}function jb(a){E(a,"orderable","bSortable");E(a,"orderData","aDataSort");E(a,"orderSequence","asSorting");E(a,"orderDataType","sortDataType");var b=a.aDataSort;"number"!==typeof b||f.isArray(b)||(a.aDataSort=[b])}function kb(a){if(!q.__browser){var b={};q.__browser=b;var c=f("<div/>").css({position:"fixed",top:0,left:-1*f(y).scrollLeft(),height:1,width:1,
|
||||
overflow:"hidden"}).append(f("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(f("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}f.extend(a.oBrowser,q.__browser);a.oScroll.iBarWidth=q.__browser.barWidth}
|
||||
function lb(a,b,c,d,e,h){var g=!1;if(c!==n){var k=c;g=!0}for(;d!==e;)a.hasOwnProperty(d)&&(k=g?b(k,a[d],d,a):a[d],g=!0,d+=h);return k}function Ha(a,b){var c=q.defaults.column,d=a.aoColumns.length;c=f.extend({},q.models.oColumn,c,{nTh:b?b:w.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=f.extend({},q.models.oSearch,c[d]);la(a,d,f(b).data())}function la(a,b,c){b=a.aoColumns[b];
|
||||
var d=a.oClasses,e=f(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=e.attr("width")||null;var h=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);h&&(b.sWidthOrig=h[1])}c!==n&&null!==c&&(jb(c),L(q.defaults.column,c,!0),c.mDataProp===n||c.mData||(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),c.sClass&&e.addClass(c.sClass),f.extend(b,c),M(b,c,"sWidth","sWidthOrig"),c.iDataSort!==n&&(b.aDataSort=[c.iDataSort]),M(b,c,"aDataSort"));var g=b.mData,k=T(g),
|
||||
l=b.mRender?T(b.mRender):null;c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=f.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=k(a,b,n,c);return l&&b?l(d,b,a,c):d};b.fnSetData=function(a,b,c){return Q(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==f.inArray("asc",b.asSorting);c=-1!==f.inArray("desc",b.asSorting);b.bSortable&&(a||c)?a&&!c?(b.sSortingClass=
|
||||
d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI):(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI="")}function Z(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ia(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;""===b.sY&&""===b.sX||ma(a);A(a,null,"column-sizing",[a])}function aa(a,b){a=na(a,"bVisible");return"number"===
|
||||
typeof a[b]?a[b]:null}function ba(a,b){a=na(a,"bVisible");b=f.inArray(b,a);return-1!==b?b:null}function V(a){var b=0;f.each(a.aoColumns,function(a,d){d.bVisible&&"none"!==f(d.nTh).css("display")&&b++});return b}function na(a,b){var c=[];f.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ja(a){var b=a.aoColumns,c=a.aoData,d=q.ext.type.detect,e,h,g;var k=0;for(e=b.length;k<e;k++){var f=b[k];var m=[];if(!f.sType&&f._sManualType)f.sType=f._sManualType;else if(!f.sType){var p=0;for(h=
|
||||
d.length;p<h;p++){var v=0;for(g=c.length;v<g;v++){m[v]===n&&(m[v]=F(a,v,k,"type"));var u=d[p](m[v],a);if(!u&&p!==d.length-1)break;if("html"===u)break}if(u){f.sType=u;break}}f.sType||(f.sType="string")}}}function mb(a,b,c,d){var e,h,g,k=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){var l=b[e];var m=l.targets!==n?l.targets:l.aTargets;f.isArray(m)||(m=[m]);var p=0;for(h=m.length;p<h;p++)if("number"===typeof m[p]&&0<=m[p]){for(;k.length<=m[p];)Ha(a);d(m[p],l)}else if("number"===typeof m[p]&&0>m[p])d(k.length+
|
||||
m[p],l);else if("string"===typeof m[p]){var v=0;for(g=k.length;v<g;v++)("_all"==m[p]||f(k[v].nTh).hasClass(m[p]))&&d(v,l)}}if(c)for(e=0,a=c.length;e<a;e++)d(e,c[e])}function R(a,b,c,d){var e=a.aoData.length,h=f.extend(!0,{},q.models.oRow,{src:c?"dom":"data",idx:e});h._aData=b;a.aoData.push(h);for(var g=a.aoColumns,k=0,l=g.length;k<l;k++)g[k].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==n&&(a.aIds[b]=h);!c&&a.oFeatures.bDeferRender||Ka(a,e,c,d);return e}function oa(a,b){var c;b instanceof
|
||||
f||(b=f(b));return b.map(function(b,e){c=La(a,e);return R(a,c.data,e,c.cells)})}function F(a,b,c,d){var e=a.iDraw,h=a.aoColumns[c],g=a.aoData[b]._aData,k=h.sDefaultContent,f=h.fnGetData(g,d,{settings:a,row:b,col:c});if(f===n)return a.iDrawError!=e&&null===k&&(O(a,0,"Requested unknown parameter "+("function"==typeof h.mData?"{function}":"'"+h.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),k;if((f===g||null===f)&&null!==k&&d!==n)f=k;else if("function"===typeof f)return f.call(g);return null===
|
||||
f&&"display"==d?"":f}function nb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}function Ma(a){return f.map(a.match(/(\\.|[^\.])+/g)||[""],function(a){return a.replace(/\\\./g,".")})}function T(a){if(f.isPlainObject(a)){var b={};f.each(a,function(a,c){c&&(b[a]=T(c))});return function(a,c,h,g){var d=b[c]||b._;return d!==n?d(a,c,h,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,h,g){return a(b,c,h,g)};if("string"!==typeof a||
|
||||
-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(b,c){return b[a]};var c=function(a,b,h){if(""!==h){var d=Ma(h);for(var e=0,l=d.length;e<l;e++){h=d[e].match(ca);var m=d[e].match(W);if(h){d[e]=d[e].replace(ca,"");""!==d[e]&&(a=a[d[e]]);m=[];d.splice(0,e+1);d=d.join(".");if(f.isArray(a))for(e=0,l=a.length;e<l;e++)m.push(c(a[e],b,d));a=h[0].substring(1,h[0].length-1);a=""===a?m:m.join(a);break}else if(m){d[e]=d[e].replace(W,"");a=a[d[e]]();continue}if(null===a||a[d[e]]===
|
||||
n)return n;a=a[d[e]]}}return a};return function(b,e){return c(b,e,a)}}function Q(a){if(f.isPlainObject(a))return Q(a._);if(null===a)return function(){};if("function"===typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"!==typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(b,d){b[a]=d};var b=function(a,d,e){e=Ma(e);var c=e[e.length-1];for(var g,k,l=0,m=e.length-1;l<m;l++){g=e[l].match(ca);k=e[l].match(W);if(g){e[l]=e[l].replace(ca,"");a[e[l]]=[];c=e.slice();
|
||||
c.splice(0,l+1);g=c.join(".");if(f.isArray(d))for(k=0,m=d.length;k<m;k++)c={},b(c,d[k],g),a[e[l]].push(c);else a[e[l]]=d;return}k&&(e[l]=e[l].replace(W,""),a=a[e[l]](d));if(null===a[e[l]]||a[e[l]]===n)a[e[l]]={};a=a[e[l]]}if(c.match(W))a[c.replace(W,"")](d);else a[c.replace(ca,"")]=d};return function(c,d){return b(c,d,a)}}function Na(a){return K(a.aoData,"_aData")}function pa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function qa(a,b,c){for(var d=-1,e=0,h=a.length;e<
|
||||
h;e++)a[e]==b?d=e:a[e]>b&&a[e]--; -1!=d&&c===n&&a.splice(d,1)}function da(a,b,c,d){var e=a.aoData[b],h,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=F(a,b,d,"display")};if("dom"!==c&&(c&&"auto"!==c||"dom"!==e.src)){var k=e.anCells;if(k)if(d!==n)g(k[d],d);else for(c=0,h=k.length;c<h;c++)g(k[c],c)}else e._aData=La(a,e,d,d===n?n:e._aData).data;e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==n)g[d].sType=null;else{c=0;for(h=g.length;c<h;c++)g[c].sType=null;
|
||||
Oa(a,e)}}function La(a,b,c,d){var e=[],h=b.firstChild,g,k=0,l,m=a.aoColumns,p=a._rowReadObject;d=d!==n?d:p?{}:[];var v=function(a,b){if("string"===typeof a){var c=a.indexOf("@");-1!==c&&(c=a.substring(c+1),Q(a)(d,b.getAttribute(c)))}},u=function(a){if(c===n||c===k)g=m[k],l=f.trim(a.innerHTML),g&&g._bAttrSrc?(Q(g.mData._)(d,l),v(g.mData.sort,a),v(g.mData.type,a),v(g.mData.filter,a)):p?(g._setter||(g._setter=Q(g.mData)),g._setter(d,l)):d[k]=l;k++};if(h)for(;h;){var q=h.nodeName.toUpperCase();if("TD"==
|
||||
q||"TH"==q)u(h),e.push(h);h=h.nextSibling}else for(e=b.anCells,h=0,q=e.length;h<q;h++)u(e[h]);(b=b.firstChild?b:b.nTr)&&(b=b.getAttribute("id"))&&Q(a.rowId)(d,b);return{data:d,cells:e}}function Ka(a,b,c,d){var e=a.aoData[b],h=e._aData,g=[],k,l;if(null===e.nTr){var m=c||w.createElement("tr");e.nTr=m;e.anCells=g;m._DT_RowIndex=b;Oa(a,e);var p=0;for(k=a.aoColumns.length;p<k;p++){var v=a.aoColumns[p];var n=(l=c?!1:!0)?w.createElement(v.sCellType):d[p];n._DT_CellIndex={row:b,column:p};g.push(n);if(l||
|
||||
!(c&&!v.mRender&&v.mData===p||f.isPlainObject(v.mData)&&v.mData._===p+".display"))n.innerHTML=F(a,b,p,"display");v.sClass&&(n.className+=" "+v.sClass);v.bVisible&&!c?m.appendChild(n):!v.bVisible&&c&&n.parentNode.removeChild(n);v.fnCreatedCell&&v.fnCreatedCell.call(a.oInstance,n,F(a,b,p),h,b,p)}A(a,"aoRowCreatedCallback",null,[m,h,b,g])}e.nTr.setAttribute("role","row")}function Oa(a,b){var c=b.nTr,d=b._aData;if(c){if(a=a.rowIdFn(d))c.id=a;d.DT_RowClass&&(a=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?
|
||||
sa(b.__rowc.concat(a)):a,f(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&f(c).attr(d.DT_RowAttr);d.DT_RowData&&f(c).data(d.DT_RowData)}}function ob(a){var b,c,d=a.nTHead,e=a.nTFoot,h=0===f("th, td",d).length,g=a.oClasses,k=a.aoColumns;h&&(c=f("<tr/>").appendTo(d));var l=0;for(b=k.length;l<b;l++){var m=k[l];var p=f(m.nTh).addClass(m.sClass);h&&p.appendTo(c);a.oFeatures.bSort&&(p.addClass(m.sSortingClass),!1!==m.bSortable&&(p.attr("tabindex",a.iTabIndex).attr("aria-controls",
|
||||
a.sTableId),Pa(a,m.nTh,l)));m.sTitle!=p[0].innerHTML&&p.html(m.sTitle);Qa(a,"header")(a,p,m,g)}h&&ea(a.aoHeader,d);f(d).find(">tr").attr("role","row");f(d).find(">tr>th, >tr>td").addClass(g.sHeaderTH);f(e).find(">tr>th, >tr>td").addClass(g.sFooterTH);if(null!==e)for(a=a.aoFooter[0],l=0,b=a.length;l<b;l++)m=k[l],m.nTf=a[l].cell,m.sClass&&f(m.nTf).addClass(m.sClass)}function fa(a,b,c){var d,e,h=[],g=[],k=a.aoColumns.length;if(b){c===n&&(c=!1);var l=0;for(d=b.length;l<d;l++){h[l]=b[l].slice();h[l].nTr=
|
||||
b[l].nTr;for(e=k-1;0<=e;e--)a.aoColumns[e].bVisible||c||h[l].splice(e,1);g.push([])}l=0;for(d=h.length;l<d;l++){if(a=h[l].nTr)for(;e=a.firstChild;)a.removeChild(e);e=0;for(b=h[l].length;e<b;e++){var m=k=1;if(g[l][e]===n){a.appendChild(h[l][e].cell);for(g[l][e]=1;h[l+k]!==n&&h[l][e].cell==h[l+k][e].cell;)g[l+k][e]=1,k++;for(;h[l][e+m]!==n&&h[l][e].cell==h[l][e+m].cell;){for(c=0;c<k;c++)g[l+c][e+m]=1;m++}f(h[l][e].cell).attr("rowspan",k).attr("colspan",m)}}}}}function S(a){var b=A(a,"aoPreDrawCallback",
|
||||
"preDraw",[a]);if(-1!==f.inArray(!1,b))J(a,!1);else{b=[];var c=0,d=a.asStripeClasses,e=d.length,h=a.oLanguage,g=a.iInitDisplayStart,k="ssp"==I(a),l=a.aiDisplay;a.bDrawing=!0;g!==n&&-1!==g&&(a._iDisplayStart=k?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=-1);g=a._iDisplayStart;var m=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,J(a,!1);else if(!k)a.iDraw++;else if(!a.bDestroying&&!pb(a))return;if(0!==l.length)for(h=k?a.aoData.length:m,k=k?0:g;k<h;k++){var p=l[k],v=a.aoData[p];
|
||||
null===v.nTr&&Ka(a,p);var u=v.nTr;if(0!==e){var q=d[c%e];v._sRowStripe!=q&&(f(u).removeClass(v._sRowStripe).addClass(q),v._sRowStripe=q)}A(a,"aoRowCallback",null,[u,v._aData,c,k,p]);b.push(u);c++}else c=h.sZeroRecords,1==a.iDraw&&"ajax"==I(a)?c=h.sLoadingRecords:h.sEmptyTable&&0===a.fnRecordsTotal()&&(c=h.sEmptyTable),b[0]=f("<tr/>",{"class":e?d[0]:""}).append(f("<td />",{valign:"top",colSpan:V(a),"class":a.oClasses.sRowEmpty}).html(c))[0];A(a,"aoHeaderCallback","header",[f(a.nTHead).children("tr")[0],
|
||||
Na(a),g,m,l]);A(a,"aoFooterCallback","footer",[f(a.nTFoot).children("tr")[0],Na(a),g,m,l]);d=f(a.nTBody);d.children().detach();d.append(f(b));A(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function U(a,b){var c=a.oFeatures,d=c.bFilter;c.bSort&&qb(a);d?ha(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;S(a);a._drawHold=!1}function rb(a){var b=a.oClasses,c=f(a.nTable);c=f("<div/>").insertBefore(c);var d=a.oFeatures,e=
|
||||
f("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var h=a.sDom.split(""),g,k,l,m,p,n,u=0;u<h.length;u++){g=null;k=h[u];if("<"==k){l=f("<div/>")[0];m=h[u+1];if("'"==m||'"'==m){p="";for(n=2;h[u+n]!=m;)p+=h[u+n],n++;"H"==p?p=b.sJUIHeader:"F"==p&&(p=b.sJUIFooter);-1!=p.indexOf(".")?(m=p.split("."),l.id=m[0].substr(1,m[0].length-1),l.className=m[1]):"#"==p.charAt(0)?l.id=p.substr(1,
|
||||
p.length-1):l.className=p;u+=n}e.append(l);e=f(l)}else if(">"==k)e=e.parent();else if("l"==k&&d.bPaginate&&d.bLengthChange)g=sb(a);else if("f"==k&&d.bFilter)g=tb(a);else if("r"==k&&d.bProcessing)g=ub(a);else if("t"==k)g=vb(a);else if("i"==k&&d.bInfo)g=wb(a);else if("p"==k&&d.bPaginate)g=xb(a);else if(0!==q.ext.feature.length)for(l=q.ext.feature,n=0,m=l.length;n<m;n++)if(k==l[n].cFeature){g=l[n].fnInit(a);break}g&&(l=a.aanFeatures,l[k]||(l[k]=[]),l[k].push(g),e.append(g))}c.replaceWith(e);a.nHolding=
|
||||
null}function ea(a,b){b=f(b).children("tr");var c,d,e;a.splice(0,a.length);var h=0;for(e=b.length;h<e;h++)a.push([]);h=0;for(e=b.length;h<e;h++){var g=b[h];for(c=g.firstChild;c;){if("TD"==c.nodeName.toUpperCase()||"TH"==c.nodeName.toUpperCase()){var k=1*c.getAttribute("colspan");var l=1*c.getAttribute("rowspan");k=k&&0!==k&&1!==k?k:1;l=l&&0!==l&&1!==l?l:1;var m=0;for(d=a[h];d[m];)m++;var p=m;var n=1===k?!0:!1;for(d=0;d<k;d++)for(m=0;m<l;m++)a[h+m][p+d]={cell:c,unique:n},a[h+m].nTr=g}c=c.nextSibling}}}
|
||||
function ta(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],ea(c,b)));b=0;for(var e=c.length;b<e;b++)for(var h=0,g=c[b].length;h<g;h++)!c[b][h].unique||d[h]&&a.bSortCellsTop||(d[h]=c[b][h].cell);return d}function ua(a,b,c){A(a,"aoServerParams","serverParams",[b]);if(b&&f.isArray(b)){var d={},e=/(.*?)\[\]$/;f.each(b,function(a,b){(a=b.name.match(e))?(a=a[0],d[a]||(d[a]=[]),d[a].push(b.value)):d[b.name]=b.value});b=d}var h=a.ajax,g=a.oInstance,k=function(b){A(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(f.isPlainObject(h)&&
|
||||
h.data){var l=h.data;var m="function"===typeof l?l(b,a):l;b="function"===typeof l&&m?m:f.extend(!0,b,m);delete h.data}m={data:b,success:function(b){var c=b.error||b.sError;c&&O(a,0,c);a.json=b;k(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c,d){d=A(a,null,"xhr",[a,null,a.jqXHR]);-1===f.inArray(!0,d)&&("parsererror"==c?O(a,0,"Invalid JSON response",1):4===b.readyState&&O(a,0,"Ajax error",7));J(a,!1)}};a.oAjaxData=b;A(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(g,
|
||||
a.sAjaxSource,f.map(b,function(a,b){return{name:b,value:a}}),k,a):a.sAjaxSource||"string"===typeof h?a.jqXHR=f.ajax(f.extend(m,{url:h||a.sAjaxSource})):"function"===typeof h?a.jqXHR=h.call(g,b,k,a):(a.jqXHR=f.ajax(f.extend(m,h)),h.data=l)}function pb(a){return a.bAjaxDataGet?(a.iDraw++,J(a,!0),ua(a,yb(a),function(b){zb(a,b)}),!1):!0}function yb(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,h=a.aoPreSearchCols,g=[],k=X(a);var l=a._iDisplayStart;var m=!1!==d.bPaginate?a._iDisplayLength:
|
||||
-1;var p=function(a,b){g.push({name:a,value:b})};p("sEcho",a.iDraw);p("iColumns",c);p("sColumns",K(b,"sName").join(","));p("iDisplayStart",l);p("iDisplayLength",m);var n={draw:a.iDraw,columns:[],order:[],start:l,length:m,search:{value:e.sSearch,regex:e.bRegex}};for(l=0;l<c;l++){var u=b[l];var ra=h[l];m="function"==typeof u.mData?"function":u.mData;n.columns.push({data:m,name:u.sName,searchable:u.bSearchable,orderable:u.bSortable,search:{value:ra.sSearch,regex:ra.bRegex}});p("mDataProp_"+l,m);d.bFilter&&
|
||||
(p("sSearch_"+l,ra.sSearch),p("bRegex_"+l,ra.bRegex),p("bSearchable_"+l,u.bSearchable));d.bSort&&p("bSortable_"+l,u.bSortable)}d.bFilter&&(p("sSearch",e.sSearch),p("bRegex",e.bRegex));d.bSort&&(f.each(k,function(a,b){n.order.push({column:b.col,dir:b.dir});p("iSortCol_"+a,b.col);p("sSortDir_"+a,b.dir)}),p("iSortingCols",k.length));b=q.ext.legacy.ajax;return null===b?a.sAjaxSource?g:n:b?g:n}function zb(a,b){var c=function(a,c){return b[a]!==n?b[a]:b[c]},d=va(a,b),e=c("sEcho","draw"),h=c("iTotalRecords",
|
||||
"recordsTotal");c=c("iTotalDisplayRecords","recordsFiltered");if(e!==n){if(1*e<a.iDraw)return;a.iDraw=1*e}pa(a);a._iRecordsTotal=parseInt(h,10);a._iRecordsDisplay=parseInt(c,10);e=0;for(h=d.length;e<h;e++)R(a,d[e]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;S(a);a._bInitComplete||wa(a,b);a.bAjaxDataGet=!0;J(a,!1)}function va(a,b){a=f.isPlainObject(a.ajax)&&a.ajax.dataSrc!==n?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===a?b.aaData||b[a]:""!==a?T(a)(b):b}function tb(a){var b=a.oClasses,
|
||||
c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,h=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',k=d.sSearch;k=k.match(/_INPUT_/)?k.replace("_INPUT_",g):k+g;b=f("<div/>",{id:h.f?null:c+"_filter","class":b.sFilter}).append(f("<label/>").append(k));var l=function(){var b=this.value?this.value:"";b!=e.sSearch&&(ha(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,S(a))};h=null!==a.searchDelay?a.searchDelay:"ssp"===I(a)?400:0;var m=
|
||||
f("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",h?Ra(l,h):l).on("mouseup",function(a){setTimeout(function(){l.call(m[0])},10)}).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);f(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{m[0]!==w.activeElement&&m.val(e.sSearch)}catch(u){}});return b[0]}function ha(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,h=function(a){d.sSearch=a.sSearch;d.bRegex=
|
||||
a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive},g=function(a){return a.bEscapeRegex!==n?!a.bEscapeRegex:a.bRegex};Ja(a);if("ssp"!=I(a)){Ab(a,b.sSearch,c,g(b),b.bSmart,b.bCaseInsensitive);h(b);for(b=0;b<e.length;b++)Bb(a,e[b].sSearch,b,g(e[b]),e[b].bSmart,e[b].bCaseInsensitive);Cb(a)}else h(b);a.bFiltered=!0;A(a,null,"search",[a])}function Cb(a){for(var b=q.ext.search,c=a.aiDisplay,d,e,h=0,g=b.length;h<g;h++){for(var k=[],l=0,m=c.length;l<m;l++)e=c[l],d=a.aoData[e],b[h](a,d._aFilterData,
|
||||
e,d._aData,l)&&k.push(e);c.length=0;f.merge(c,k)}}function Bb(a,b,c,d,e,h){if(""!==b){var g=[],k=a.aiDisplay;d=Sa(b,d,e,h);for(e=0;e<k.length;e++)b=a.aoData[k[e]]._aFilterData[c],d.test(b)&&g.push(k[e]);a.aiDisplay=g}}function Ab(a,b,c,d,e,h){e=Sa(b,d,e,h);var g=a.oPreviousSearch.sSearch,k=a.aiDisplayMaster;h=[];0!==q.ext.search.length&&(c=!0);var f=Db(a);if(0>=b.length)a.aiDisplay=k.slice();else{if(f||c||d||g.length>b.length||0!==b.indexOf(g)||a.bSorted)a.aiDisplay=k.slice();b=a.aiDisplay;for(c=
|
||||
0;c<b.length;c++)e.test(a.aoData[b[c]]._sFilterRow)&&h.push(b[c]);a.aiDisplay=h}}function Sa(a,b,c,d){a=b?a:Ta(a);c&&(a="^(?=.*?"+f.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0)){var b=a.match(/^"(.*)"$/);a=b?b[1]:a}return a.replace('"',"")}).join(")(?=.*?")+").*$");return new RegExp(a,d?"i":"")}function Db(a){var b=a.aoColumns,c,d,e=q.ext.type.search;var h=!1;var g=0;for(c=a.aoData.length;g<c;g++){var k=a.aoData[g];if(!k._aFilterData){var f=[];var m=0;for(d=b.length;m<d;m++){h=
|
||||
b[m];if(h.bSearchable){var p=F(a,g,m,"filter");e[h.sType]&&(p=e[h.sType](p));null===p&&(p="");"string"!==typeof p&&p.toString&&(p=p.toString())}else p="";p.indexOf&&-1!==p.indexOf("&")&&(xa.innerHTML=p,p=$b?xa.textContent:xa.innerText);p.replace&&(p=p.replace(/[\r\n\u2028]/g,""));f.push(p)}k._aFilterData=f;k._sFilterRow=f.join(" ");h=!0}}return h}function Eb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function Fb(a){return{sSearch:a.search,bSmart:a.smart,
|
||||
bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function wb(a){var b=a.sTableId,c=a.aanFeatures.i,d=f("<div/>",{"class":a.oClasses.sInfo,id:c?null:b+"_info"});c||(a.aoDrawCallback.push({fn:Gb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),f(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Gb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+1,e=a.fnDisplayEnd(),h=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),k=g?c.sInfo:c.sInfoEmpty;
|
||||
g!==h&&(k+=" "+c.sInfoFiltered);k+=c.sInfoPostFix;k=Hb(a,k);c=c.fnInfoCallback;null!==c&&(k=c.call(a.oInstance,a,d,e,h,g,k));f(b).html(k)}}function Hb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,h=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,h)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(h/
|
||||
e)))}function ia(a){var b=a.iInitDisplayStart,c=a.aoColumns;var d=a.oFeatures;var e=a.bDeferLoading;if(a.bInitialised){rb(a);ob(a);fa(a,a.aoHeader);fa(a,a.aoFooter);J(a,!0);d.bAutoWidth&&Ia(a);var h=0;for(d=c.length;h<d;h++){var g=c[h];g.sWidth&&(g.nTh.style.width=B(g.sWidth))}A(a,null,"preInit",[a]);U(a);c=I(a);if("ssp"!=c||e)"ajax"==c?ua(a,[],function(c){var d=va(a,c);for(h=0;h<d.length;h++)R(a,d[h]);a.iInitDisplayStart=b;U(a);J(a,!1);wa(a,c)},a):(J(a,!1),wa(a))}else setTimeout(function(){ia(a)},
|
||||
200)}function wa(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&Z(a);A(a,null,"plugin-init",[a,b]);A(a,"aoInitComplete","init",[a,b])}function Ua(a,b){b=parseInt(b,10);a._iDisplayLength=b;Va(a);A(a,null,"length",[a,b])}function sb(a){var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=f.isArray(d[0]),h=e?d[0]:d;d=e?d[1]:d;e=f("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect});for(var g=0,k=h.length;g<k;g++)e[0][g]=new Option("number"===typeof d[g]?a.fnFormatNumber(d[g]):d[g],h[g]);
|
||||
var l=f("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(l[0].id=c+"_length");l.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));f("select",l).val(a._iDisplayLength).on("change.DT",function(b){Ua(a,f(this).val());S(a)});f(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&f("select",l).val(d)});return l[0]}function xb(a){var b=a.sPaginationType,c=q.ext.pager[b],d="function"===typeof c,e=function(a){S(a)};b=f("<div/>").addClass(a.oClasses.sPaging+b)[0];var h=
|
||||
a.aanFeatures;d||c.fnInit(a,b,e);h.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,g=a._iDisplayLength,f=a.fnRecordsDisplay(),p=-1===g;b=p?0:Math.ceil(b/g);g=p?1:Math.ceil(f/g);f=c(b,g);var n;p=0;for(n=h.p.length;p<n;p++)Qa(a,"pageButton")(a,h.p[p],p,f,b,g)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Wa(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,h=a.fnRecordsDisplay();0===h||-1===e?d=0:"number"===typeof b?(d=b*e,d>h&&(d=0)):
|
||||
"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<h&&(d+=e):"last"==b?d=Math.floor((h-1)/e)*e:O(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(A(a,null,"page",[a]),c&&S(a));return b}function ub(a){return f("<div/>",{id:a.aanFeatures.r?null:a.sTableId+"_processing","class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function J(a,b){a.oFeatures.bProcessing&&f(a.aanFeatures.r).css("display",b?"block":"none");A(a,
|
||||
null,"processing",[a,b])}function vb(a){var b=f(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,h=a.oClasses,g=b.children("caption"),k=g.length?g[0]._captionSide:null,l=f(b[0].cloneNode(!1)),m=f(b[0].cloneNode(!1)),p=b.children("tfoot");p.length||(p=null);l=f("<div/>",{"class":h.sScrollWrapper}).append(f("<div/>",{"class":h.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?d?B(d):null:"100%"}).append(f("<div/>",{"class":h.sScrollHeadInner}).css({"box-sizing":"content-box",
|
||||
width:c.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===k?g:null).append(b.children("thead"))))).append(f("<div/>",{"class":h.sScrollBody}).css({position:"relative",overflow:"auto",width:d?B(d):null}).append(b));p&&l.append(f("<div/>",{"class":h.sScrollFoot}).css({overflow:"hidden",border:0,width:d?d?B(d):null:"100%"}).append(f("<div/>",{"class":h.sScrollFootInner}).append(m.removeAttr("id").css("margin-left",0).append("bottom"===k?g:null).append(b.children("tfoot")))));
|
||||
b=l.children();var n=b[0];h=b[1];var u=p?b[2]:null;if(d)f(h).on("scroll.DT",function(a){a=this.scrollLeft;n.scrollLeft=a;p&&(u.scrollLeft=a)});f(h).css("max-height",e);c.bCollapse||f(h).css("height",e);a.nScrollHead=n;a.nScrollBody=h;a.nScrollFoot=u;a.aoDrawCallback.push({fn:ma,sName:"scrolling"});return l[0]}function ma(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY;b=b.iBarWidth;var h=f(a.nScrollHead),g=h[0].style,k=h.children("div"),l=k[0].style,m=k.children("table");k=a.nScrollBody;var p=f(k),v=
|
||||
k.style,u=f(a.nScrollFoot).children("div"),q=u.children("table"),t=f(a.nTHead),r=f(a.nTable),x=r[0],ya=x.style,w=a.nTFoot?f(a.nTFoot):null,y=a.oBrowser,A=y.bScrollOversize,ac=K(a.aoColumns,"nTh"),Xa=[],z=[],C=[],G=[],H,I=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};var D=k.scrollHeight>k.clientHeight;if(a.scrollBarVis!==D&&a.scrollBarVis!==n)a.scrollBarVis=D,Z(a);else{a.scrollBarVis=D;r.children("thead, tfoot").remove();if(w){var E=
|
||||
w.clone().prependTo(r);var F=w.find("tr");E=E.find("tr")}var J=t.clone().prependTo(r);t=t.find("tr");D=J.find("tr");J.find("th, td").removeAttr("tabindex");c||(v.width="100%",h[0].style.width="100%");f.each(ta(a,J),function(b,c){H=aa(a,b);c.style.width=a.aoColumns[H].sWidth});w&&N(function(a){a.style.width=""},E);h=r.outerWidth();""===c?(ya.width="100%",A&&(r.find("tbody").height()>k.offsetHeight||"scroll"==p.css("overflow-y"))&&(ya.width=B(r.outerWidth()-b)),h=r.outerWidth()):""!==d&&(ya.width=B(d),
|
||||
h=r.outerWidth());N(I,D);N(function(a){C.push(a.innerHTML);Xa.push(B(f(a).css("width")))},D);N(function(a,b){-1!==f.inArray(a,ac)&&(a.style.width=Xa[b])},t);f(D).height(0);w&&(N(I,E),N(function(a){G.push(a.innerHTML);z.push(B(f(a).css("width")))},E),N(function(a,b){a.style.width=z[b]},F),f(E).height(0));N(function(a,b){a.innerHTML='<div class="dataTables_sizing">'+C[b]+"</div>";a.childNodes[0].style.height="0";a.childNodes[0].style.overflow="hidden";a.style.width=Xa[b]},D);w&&N(function(a,b){a.innerHTML=
|
||||
'<div class="dataTables_sizing">'+G[b]+"</div>";a.childNodes[0].style.height="0";a.childNodes[0].style.overflow="hidden";a.style.width=z[b]},E);r.outerWidth()<h?(F=k.scrollHeight>k.offsetHeight||"scroll"==p.css("overflow-y")?h+b:h,A&&(k.scrollHeight>k.offsetHeight||"scroll"==p.css("overflow-y"))&&(ya.width=B(F-b)),""!==c&&""===d||O(a,1,"Possible column misalignment",6)):F="100%";v.width=B(F);g.width=B(F);w&&(a.nScrollFoot.style.width=B(F));!e&&A&&(v.height=B(x.offsetHeight+b));c=r.outerWidth();m[0].style.width=
|
||||
B(c);l.width=B(c);d=r.height()>k.clientHeight||"scroll"==p.css("overflow-y");e="padding"+(y.bScrollbarLeft?"Left":"Right");l[e]=d?b+"px":"0px";w&&(q[0].style.width=B(c),u[0].style.width=B(c),u[0].style[e]=d?b+"px":"0px");r.children("colgroup").insertBefore(r.children("thead"));p.trigger("scroll");!a.bSorted&&!a.bFiltered||a._drawHold||(k.scrollTop=0)}}function N(a,b,c){for(var d=0,e=0,h=b.length,g,k;e<h;){g=b[e].firstChild;for(k=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,k,d):a(g,d),d++),g=
|
||||
g.nextSibling,k=c?k.nextSibling:null;e++}}function Ia(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,h=d.sX,g=d.sXInner,k=c.length,l=na(a,"bVisible"),m=f("th",a.nTHead),p=b.getAttribute("width"),n=b.parentNode,u=!1,q,t=a.oBrowser;d=t.bScrollOversize;(q=b.style.width)&&-1!==q.indexOf("%")&&(p=q);for(q=0;q<l.length;q++){var r=c[l[q]];null!==r.sWidth&&(r.sWidth=Ib(r.sWidthOrig,n),u=!0)}if(d||!u&&!h&&!e&&k==V(a)&&k==m.length)for(q=0;q<k;q++)l=aa(a,q),null!==l&&(c[l].sWidth=B(m.eq(q).width()));else{k=
|
||||
f(b).clone().css("visibility","hidden").removeAttr("id");k.find("tbody tr").remove();var w=f("<tr/>").appendTo(k.find("tbody"));k.find("thead, tfoot").remove();k.append(f(a.nTHead).clone()).append(f(a.nTFoot).clone());k.find("tfoot th, tfoot td").css("width","");m=ta(a,k.find("thead")[0]);for(q=0;q<l.length;q++)r=c[l[q]],m[q].style.width=null!==r.sWidthOrig&&""!==r.sWidthOrig?B(r.sWidthOrig):"",r.sWidthOrig&&h&&f(m[q]).append(f("<div/>").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));
|
||||
if(a.aoData.length)for(q=0;q<l.length;q++)u=l[q],r=c[u],f(Jb(a,u)).clone(!1).append(r.sContentPadding).appendTo(w);f("[name]",k).removeAttr("name");r=f("<div/>").css(h||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(k).appendTo(n);h&&g?k.width(g):h?(k.css("width","auto"),k.removeAttr("width"),k.width()<n.clientWidth&&p&&k.width(n.clientWidth)):e?k.width(n.clientWidth):p&&k.width(p);for(q=e=0;q<l.length;q++)n=f(m[q]),g=n.outerWidth()-n.width(),n=t.bBounding?Math.ceil(m[q].getBoundingClientRect().width):
|
||||
n.outerWidth(),e+=n,c[l[q]].sWidth=B(n-g);b.style.width=B(e);r.remove()}p&&(b.style.width=B(p));!p&&!h||a._reszEvt||(b=function(){f(y).on("resize.DT-"+a.sInstance,Ra(function(){Z(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0)}function Ib(a,b){if(!a)return 0;a=f("<div/>").css("width",B(a)).appendTo(b||w.body);b=a[0].offsetWidth;a.remove();return b}function Jb(a,b){var c=Kb(a,b);if(0>c)return null;var d=a.aoData[c];return d.nTr?d.anCells[b]:f("<td/>").html(F(a,c,b,"display"))[0]}function Kb(a,b){for(var c,
|
||||
d=-1,e=-1,h=0,g=a.aoData.length;h<g;h++)c=F(a,h,b,"display")+"",c=c.replace(bc,""),c=c.replace(/ /g," "),c.length>d&&(d=c.length,e=h);return e}function B(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function X(a){var b=[],c=a.aoColumns;var d=a.aaSortingFixed;var e=f.isPlainObject(d);var h=[];var g=function(a){a.length&&!f.isArray(a[0])?h.push(a):f.merge(h,a)};f.isArray(d)&&g(d);e&&d.pre&&g(d.pre);g(a.aaSorting);e&&d.post&&g(d.post);for(a=0;a<h.length;a++){var k=
|
||||
h[a][0];g=c[k].aDataSort;d=0;for(e=g.length;d<e;d++){var l=g[d];var m=c[l].sType||"string";h[a]._idx===n&&(h[a]._idx=f.inArray(h[a][1],c[l].asSorting));b.push({src:k,col:l,dir:h[a][1],index:h[a]._idx,type:m,formatter:q.ext.type.order[m+"-pre"]})}}return b}function qb(a){var b,c=[],d=q.ext.type.order,e=a.aoData,h=0,g=a.aiDisplayMaster;Ja(a);var k=X(a);var f=0;for(b=k.length;f<b;f++){var m=k[f];m.formatter&&h++;Lb(a,m.col)}if("ssp"!=I(a)&&0!==k.length){f=0;for(b=g.length;f<b;f++)c[g[f]]=f;h===k.length?
|
||||
g.sort(function(a,b){var d,h=k.length,g=e[a]._aSortData,f=e[b]._aSortData;for(d=0;d<h;d++){var l=k[d];var m=g[l.col];var p=f[l.col];m=m<p?-1:m>p?1:0;if(0!==m)return"asc"===l.dir?m:-m}m=c[a];p=c[b];return m<p?-1:m>p?1:0}):g.sort(function(a,b){var h,g=k.length,f=e[a]._aSortData,l=e[b]._aSortData;for(h=0;h<g;h++){var m=k[h];var p=f[m.col];var n=l[m.col];m=d[m.type+"-"+m.dir]||d["string-"+m.dir];p=m(p,n);if(0!==p)return p}p=c[a];n=c[b];return p<n?-1:p>n?1:0})}a.bSorted=!0}function Mb(a){var b=a.aoColumns,
|
||||
c=X(a);a=a.oLanguage.oAria;for(var d=0,e=b.length;d<e;d++){var h=b[d];var g=h.asSorting;var k=h.sTitle.replace(/<.*?>/g,"");var f=h.nTh;f.removeAttribute("aria-sort");h.bSortable&&(0<c.length&&c[0].col==d?(f.setAttribute("aria-sort","asc"==c[0].dir?"ascending":"descending"),h=g[c[0].index+1]||g[0]):h=g[0],k+="asc"===h?a.sSortAscending:a.sSortDescending);f.setAttribute("aria-label",k)}}function Ya(a,b,c,d){var e=a.aaSorting,h=a.aoColumns[b].asSorting,g=function(a,b){var c=a._idx;c===n&&(c=f.inArray(a[1],
|
||||
h));return c+1<h.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=f.inArray(b,K(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=h[b],e[c]._idx=b)):(e.push([b,h[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=h[b],e[0]._idx=b):(e.length=0,e.push([b,h[0]]),e[0]._idx=0);U(a);"function"==typeof d&&d(a)}function Pa(a,b,c,d){var e=a.aoColumns[c];Za(b,{},function(b){!1!==e.bSortable&&
|
||||
(a.oFeatures.bProcessing?(J(a,!0),setTimeout(function(){Ya(a,c,b.shiftKey,d);"ssp"!==I(a)&&J(a,!1)},0)):Ya(a,c,b.shiftKey,d))})}function za(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=X(a),e=a.oFeatures,h;if(e.bSort&&e.bSortClasses){e=0;for(h=b.length;e<h;e++){var g=b[e].src;f(K(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3))}e=0;for(h=d.length;e<h;e++)g=d[e].src,f(K(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Lb(a,b){var c=a.aoColumns[b],d=q.ext.order[c.sSortDataType],
|
||||
e;d&&(e=d.call(a.oInstance,a,b,ba(a,b)));for(var h,g=q.ext.type.order[c.sType+"-pre"],f=0,l=a.aoData.length;f<l;f++)if(c=a.aoData[f],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)h=d?e[f]:F(a,f,b,"sort"),c._aSortData[b]=g?g(h):h}function Aa(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:f.extend(!0,[],a.aaSorting),search:Eb(a.oPreviousSearch),columns:f.map(a.aoColumns,function(b,d){return{visible:b.bVisible,search:Eb(a.aoPreSearchCols[d])}})};
|
||||
A(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Nb(a,b,c){var d,e,h=a.aoColumns;b=function(b){if(b&&b.time){var g=A(a,"aoStateLoadParams","stateLoadParams",[a,b]);if(-1===f.inArray(!1,g)&&(g=a.iStateDuration,!(0<g&&b.time<+new Date-1E3*g||b.columns&&h.length!==b.columns.length))){a.oLoadedState=f.extend(!0,{},b);b.start!==n&&(a._iDisplayStart=b.start,a.iInitDisplayStart=b.start);b.length!==n&&(a._iDisplayLength=b.length);b.order!==
|
||||
n&&(a.aaSorting=[],f.each(b.order,function(b,c){a.aaSorting.push(c[0]>=h.length?[0,c[1]]:c)}));b.search!==n&&f.extend(a.oPreviousSearch,Fb(b.search));if(b.columns)for(d=0,e=b.columns.length;d<e;d++)g=b.columns[d],g.visible!==n&&(h[d].bVisible=g.visible),g.search!==n&&f.extend(a.aoPreSearchCols[d],Fb(g.search));A(a,"aoStateLoaded","stateLoaded",[a,b])}}c()};if(a.oFeatures.bStateSave){var g=a.fnStateLoadCallback.call(a.oInstance,a,b);g!==n&&b(g)}else c()}function Ba(a){var b=q.settings;a=f.inArray(a,
|
||||
K(b,"nTable"));return-1!==a?b[a]:null}function O(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)y.console&&console.log&&console.log(c);else if(b=q.ext,b=b.sErrMode||b.errMode,a&&A(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function M(a,b,c,d){f.isArray(c)?f.each(c,function(c,d){f.isArray(d)?M(a,b,d[0],d[1]):M(a,b,
|
||||
d)}):(d===n&&(d=c),b[c]!==n&&(a[d]=b[c]))}function $a(a,b,c){var d;for(d in b)if(b.hasOwnProperty(d)){var e=b[d];f.isPlainObject(e)?(f.isPlainObject(a[d])||(a[d]={}),f.extend(!0,a[d],e)):c&&"data"!==d&&"aaData"!==d&&f.isArray(e)?a[d]=e.slice():a[d]=e}return a}function Za(a,b,c){f(a).on("click.DT",b,function(b){f(a).trigger("blur");c(b)}).on("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).on("selectstart.DT",function(){return!1})}function D(a,b,c,d){c&&a[b].push({fn:c,sName:d})}
|
||||
function A(a,b,c,d){var e=[];b&&(e=f.map(a[b].slice().reverse(),function(b,c){return b.fn.apply(a.oInstance,d)}));null!==c&&(b=f.Event(c+".dt"),f(a.nTable).trigger(b,d),e.push(b.result));return e}function Va(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Qa(a,b){a=a.renderer;var c=q.ext.renderer[b];return f.isPlainObject(a)&&a[b]?c[a[b]]||c._:"string"===typeof a?c[a]||c._:c._}function I(a){return a.oFeatures.bServerSide?
|
||||
"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ja(a,b){var c=Ob.numbers_length,d=Math.floor(c/2);b<=c?a=Y(0,b):a<=d?(a=Y(0,c-2),a.push("ellipsis"),a.push(b-1)):(a>=b-1-d?a=Y(b-(c-2),b):(a=Y(a-d+2,a+d-1),a.push("ellipsis"),a.push(b-1)),a.splice(0,0,"ellipsis"),a.splice(0,0,0));a.DT_el="span";return a}function Ga(a){f.each({num:function(b){return Ca(b,a)},"num-fmt":function(b){return Ca(b,a,ab)},"html-num":function(b){return Ca(b,a,Da)},"html-num-fmt":function(b){return Ca(b,a,Da,ab)}},function(b,
|
||||
c){C.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(C.type.search[b+a]=C.type.search.html)})}function Pb(a){return function(){var b=[Ba(this[q.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return q.ext.internal[a].apply(this,b)}}var q=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new x(Ba(this[C.iApiIndex])):new x(this)};this.fnAddData=function(a,b){var c=this.api(!0);a=f.isArray(a)&&
|
||||
(f.isArray(a[0])||f.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===n||b)&&c.draw();return a.flatten().toArray()};this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===n||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&ma(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===n||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0);a=d.rows(a);var e=a.settings()[0],h=e.aoData[a[0][0]];
|
||||
a.remove();b&&b.call(this,e,h);(c===n||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};this.fnFilter=function(a,b,c,d,e,f){e=this.api(!0);null===b||b===n?e.search(a,c,d,f):e.column(b).search(a,c,d,f);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==n){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==n||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=
|
||||
function(a){var b=this.api(!0);return a!==n?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){a=this.api(!0).page(a);(b===n||
|
||||
b)&&a.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===n||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return Ba(this[C.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===n||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===n||e)&&h.columns.adjust();(d===n||d)&&h.draw();return 0};this.fnVersionCheck=C.fnVersionCheck;
|
||||
var b=this,c=a===n,d=this.length;c&&(a={});this.oApi=this.internal=C.internal;for(var e in q.ext.internal)e&&(this[e]=Pb(e));this.each(function(){var e={},g=1<d?$a(e,a,!0):a,k=0,l;e=this.getAttribute("id");var m=!1,p=q.defaults,v=f(this);if("table"!=this.nodeName.toLowerCase())O(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{ib(p);jb(p.column);L(p,p,!0);L(p.column,p.column,!0);L(p,f.extend(g,v.data()),!0);var u=q.settings;k=0;for(l=u.length;k<l;k++){var t=u[k];if(t.nTable==this||
|
||||
t.nTHead&&t.nTHead.parentNode==this||t.nTFoot&&t.nTFoot.parentNode==this){var w=g.bRetrieve!==n?g.bRetrieve:p.bRetrieve;if(c||w)return t.oInstance;if(g.bDestroy!==n?g.bDestroy:p.bDestroy){t.oInstance.fnDestroy();break}else{O(t,0,"Cannot reinitialise DataTable",3);return}}if(t.sTableId==this.id){u.splice(k,1);break}}if(null===e||""===e)this.id=e="DataTables_Table_"+q.ext._unique++;var r=f.extend(!0,{},q.models.oSettings,{sDestroyWidth:v[0].style.width,sInstance:e,sTableId:e});r.nTable=this;r.oApi=
|
||||
b.internal;r.oInit=g;u.push(r);r.oInstance=1===b.length?b:v.dataTable();ib(g);Fa(g.oLanguage);g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=f.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]);g=$a(f.extend(!0,{},p),g);M(r.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));M(r,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu",
|
||||
"sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]);M(r.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);M(r.oLanguage,g,"fnInfoCallback");D(r,"aoDrawCallback",g.fnDrawCallback,
|
||||
"user");D(r,"aoServerParams",g.fnServerParams,"user");D(r,"aoStateSaveParams",g.fnStateSaveParams,"user");D(r,"aoStateLoadParams",g.fnStateLoadParams,"user");D(r,"aoStateLoaded",g.fnStateLoaded,"user");D(r,"aoRowCallback",g.fnRowCallback,"user");D(r,"aoRowCreatedCallback",g.fnCreatedRow,"user");D(r,"aoHeaderCallback",g.fnHeaderCallback,"user");D(r,"aoFooterCallback",g.fnFooterCallback,"user");D(r,"aoInitComplete",g.fnInitComplete,"user");D(r,"aoPreDrawCallback",g.fnPreDrawCallback,"user");r.rowIdFn=
|
||||
T(g.rowId);kb(r);var x=r.oClasses;f.extend(x,q.ext.classes,g.oClasses);v.addClass(x.sTable);r.iInitDisplayStart===n&&(r.iInitDisplayStart=g.iDisplayStart,r._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(r.bDeferLoading=!0,e=f.isArray(g.iDeferLoading),r._iRecordsDisplay=e?g.iDeferLoading[0]:g.iDeferLoading,r._iRecordsTotal=e?g.iDeferLoading[1]:g.iDeferLoading);var y=r.oLanguage;f.extend(!0,y,g.oLanguage);y.sUrl&&(f.ajax({dataType:"json",url:y.sUrl,success:function(a){Fa(a);L(p.oLanguage,
|
||||
a);f.extend(!0,y,a);ia(r)},error:function(){ia(r)}}),m=!0);null===g.asStripeClasses&&(r.asStripeClasses=[x.sStripeOdd,x.sStripeEven]);e=r.asStripeClasses;var z=v.children("tbody").find("tr").eq(0);-1!==f.inArray(!0,f.map(e,function(a,b){return z.hasClass(a)}))&&(f("tbody tr",this).removeClass(e.join(" ")),r.asDestroyStripes=e.slice());e=[];u=this.getElementsByTagName("thead");0!==u.length&&(ea(r.aoHeader,u[0]),e=ta(r));if(null===g.aoColumns)for(u=[],k=0,l=e.length;k<l;k++)u.push(null);else u=g.aoColumns;
|
||||
k=0;for(l=u.length;k<l;k++)Ha(r,e?e[k]:null);mb(r,g.aoColumnDefs,u,function(a,b){la(r,a,b)});if(z.length){var B=function(a,b){return null!==a.getAttribute("data-"+b)?b:null};f(z[0]).children("th, td").each(function(a,b){var c=r.aoColumns[a];if(c.mData===a){var d=B(b,"sort")||B(b,"order");b=B(b,"filter")||B(b,"search");if(null!==d||null!==b)c.mData={_:a+".display",sort:null!==d?a+".@data-"+d:n,type:null!==d?a+".@data-"+d:n,filter:null!==b?a+".@data-"+b:n},la(r,a)}})}var C=r.oFeatures;e=function(){if(g.aaSorting===
|
||||
n){var a=r.aaSorting;k=0;for(l=a.length;k<l;k++)a[k][1]=r.aoColumns[k].asSorting[0]}za(r);C.bSort&&D(r,"aoDrawCallback",function(){if(r.bSorted){var a=X(r),b={};f.each(a,function(a,c){b[c.src]=c.dir});A(r,null,"order",[r,a,b]);Mb(r)}});D(r,"aoDrawCallback",function(){(r.bSorted||"ssp"===I(r)||C.bDeferRender)&&za(r)},"sc");a=v.children("caption").each(function(){this._captionSide=f(this).css("caption-side")});var b=v.children("thead");0===b.length&&(b=f("<thead/>").appendTo(v));r.nTHead=b[0];b=v.children("tbody");
|
||||
0===b.length&&(b=f("<tbody/>").appendTo(v));r.nTBody=b[0];b=v.children("tfoot");0===b.length&&0<a.length&&(""!==r.oScroll.sX||""!==r.oScroll.sY)&&(b=f("<tfoot/>").appendTo(v));0===b.length||0===b.children().length?v.addClass(x.sNoFooter):0<b.length&&(r.nTFoot=b[0],ea(r.aoFooter,r.nTFoot));if(g.aaData)for(k=0;k<g.aaData.length;k++)R(r,g.aaData[k]);else(r.bDeferLoading||"dom"==I(r))&&oa(r,f(r.nTBody).children("tr"));r.aiDisplay=r.aiDisplayMaster.slice();r.bInitialised=!0;!1===m&&ia(r)};g.bStateSave?
|
||||
(C.bStateSave=!0,D(r,"aoDrawCallback",Aa,"state_save"),Nb(r,g,e)):e()}});b=null;return this},C,t,z,bb={},Qb=/[\r\n\u2028]/g,Da=/<.*?>/g,cc=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,dc=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,ab=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,P=function(a){return a&&!0!==a&&"-"!==a?!1:!0},Rb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Sb=function(a,b){bb[b]||(bb[b]=new RegExp(Ta(b),"g"));
|
||||
return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(bb[b],"."):a},cb=function(a,b,c){var d="string"===typeof a;if(P(a))return!0;b&&d&&(a=Sb(a,b));c&&d&&(a=a.replace(ab,""));return!isNaN(parseFloat(a))&&isFinite(a)},Tb=function(a,b,c){return P(a)?!0:P(a)||"string"===typeof a?cb(a.replace(Da,""),b,c)?!0:null:null},K=function(a,b,c){var d=[],e=0,h=a.length;if(c!==n)for(;e<h;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<h;e++)a[e]&&d.push(a[e][b]);return d},ka=function(a,b,c,d){var e=[],
|
||||
h=0,g=b.length;if(d!==n)for(;h<g;h++)a[b[h]][c]&&e.push(a[b[h]][c][d]);else for(;h<g;h++)e.push(a[b[h]][c]);return e},Y=function(a,b){var c=[];if(b===n){b=0;var d=a}else d=b,b=a;for(a=b;a<d;a++)c.push(a);return c},Ub=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},sa=function(a){a:{if(!(2>a.length)){var b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d<e;d++){if(b[d]===c){b=!1;break a}c=b[d]}}b=!0}if(b)return a.slice();b=[];e=a.length;var h,g=0;d=0;a:for(;d<e;d++){c=
|
||||
a[d];for(h=0;h<g;h++)if(b[h]===c)continue a;b.push(c);g++}return b};q.util={throttle:function(a,b){var c=b!==n?b:200,d,e;return function(){var b=this,g=+new Date,f=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=n;a.apply(b,f)},c)):(d=g,a.apply(b,f))}},escapeRegex:function(a){return a.replace(dc,"\\$1")}};var E=function(a,b,c){a[b]!==n&&(a[c]=a[b])},ca=/\[.*?\]$/,W=/\(\)$/,Ta=q.util.escapeRegex,xa=f("<div>")[0],$b=xa.textContent!==n,bc=/<.*?>/g,Ra=q.util.throttle,Vb=[],G=Array.prototype,
|
||||
ec=function(a){var b,c=q.settings,d=f.map(c,function(a,b){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase()){var e=f.inArray(a,d);return-1!==e?[c[e]]:null}if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?b=f(a):a instanceof f&&(b=a)}else return[];if(b)return b.map(function(a){e=f.inArray(this,d);return-1!==e?c[e]:null}).toArray()};var x=function(a,b){if(!(this instanceof x))return new x(a,b);var c=[],d=function(a){(a=
|
||||
ec(a))&&c.push.apply(c,a)};if(f.isArray(a))for(var e=0,h=a.length;e<h;e++)d(a[e]);else d(a);this.context=sa(c);b&&f.merge(this,b);this.selector={rows:null,cols:null,opts:null};x.extend(this,this,Vb)};q.Api=x;f.extend(x.prototype,{any:function(){return 0!==this.count()},concat:G.concat,context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new x(b[a],this[a]):
|
||||
null},filter:function(a){var b=[];if(G.filter)b=G.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new x(this.context,b)},flatten:function(){var a=[];return new x(this.context,a.concat.apply(a,this.toArray()))},join:G.join,indexOf:G.indexOf||function(a,b){b=b||0;for(var c=this.length;b<c;b++)if(this[b]===a)return b;return-1},iterator:function(a,b,c,d){var e=[],h,g,f=this.context,l,m=this.selector;"string"===typeof a&&(d=c,c=b,b=a,
|
||||
a=!1);var p=0;for(h=f.length;p<h;p++){var q=new x(f[p]);if("table"===b){var u=c.call(q,f[p],p);u!==n&&e.push(u)}else if("columns"===b||"rows"===b)u=c.call(q,f[p],this[p],p),u!==n&&e.push(u);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){var t=this[p];"column-rows"===b&&(l=Ea(f[p],m.opts));var w=0;for(g=t.length;w<g;w++)u=t[w],u="cell"===b?c.call(q,f[p],u.row,u.column,p,w):c.call(q,f[p],u,p,w,l),u!==n&&e.push(u)}}return e.length||d?(a=new x(f,a?e.concat.apply([],e):e),b=a.selector,
|
||||
b.rows=m.rows,b.cols=m.cols,b.opts=m.opts,a):this},lastIndexOf:G.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(G.map)b=G.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new x(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:G.pop,push:G.push,reduce:G.reduce||function(a,b){return lb(this,a,b,0,this.length,1)},reduceRight:G.reduceRight||function(a,
|
||||
b){return lb(this,a,b,this.length-1,-1,-1)},reverse:G.reverse,selector:null,shift:G.shift,slice:function(){return new x(this.context,this)},sort:G.sort,splice:G.splice,toArray:function(){return G.slice.call(this)},to$:function(){return f(this)},toJQuery:function(){return f(this)},unique:function(){return new x(this.context,sa(this))},unshift:G.unshift});x.extend=function(a,b,c){if(c.length&&b&&(b instanceof x||b.__dt_wrapper)){var d,e=function(a,b,c){return function(){var d=b.apply(a,arguments);x.extend(d,
|
||||
d,c.methodExt);return d}};var h=0;for(d=c.length;h<d;h++){var f=c[h];b[f.name]="function"===f.type?e(a,f.val,f):"object"===f.type?{}:f.val;b[f.name].__dt_wrapper=!0;x.extend(a,b[f.name],f.propExt)}}};x.register=t=function(a,b){if(f.isArray(a))for(var c=0,d=a.length;c<d;c++)x.register(a[c],b);else{d=a.split(".");var e=Vb,h;a=0;for(c=d.length;a<c;a++){var g=(h=-1!==d[a].indexOf("()"))?d[a].replace("()",""):d[a];a:{var k=0;for(var l=e.length;k<l;k++)if(e[k].name===g){k=e[k];break a}k=null}k||(k={name:g,
|
||||
val:{},methodExt:[],propExt:[],type:"object"},e.push(k));a===c-1?(k.val=b,k.type="function"===typeof b?"function":f.isPlainObject(b)?"object":"other"):e=h?k.methodExt:k.propExt}}};x.registerPlural=z=function(a,b,c){x.register(a,c);x.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof x?a.length?f.isArray(a[0])?new x(a.context,a[0]):a[0]:n:a})};var Wb=function(a,b){if(f.isArray(a))return f.map(a,function(a){return Wb(a,b)});if("number"===typeof a)return[b[a]];var c=
|
||||
f.map(b,function(a,b){return a.nTable});return f(c).filter(a).map(function(a){a=f.inArray(this,c);return b[a]}).toArray()};t("tables()",function(a){return a!==n&&null!==a?new x(Wb(a,this.context)):this});t("table()",function(a){a=this.tables(a);var b=a.context;return b.length?new x(b[0]):a});z("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});z("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},
|
||||
1)});z("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});z("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});z("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});t("draw()",function(a){return this.iterator("table",function(b){"page"===a?S(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),U(b,!1===
|
||||
a))})});t("page()",function(a){return a===n?this.page.info().page:this.iterator("table",function(b){Wa(b,a)})});t("page.info()",function(a){if(0===this.context.length)return n;a=this.context[0];var b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===I(a)}});t("page.len()",function(a){return a===
|
||||
n?0!==this.context.length?this.context[0]._iDisplayLength:n:this.iterator("table",function(b){Ua(b,a)})});var Xb=function(a,b,c){if(c){var d=new x(a);d.one("draw",function(){c(d.ajax.json())})}if("ssp"==I(a))U(a,b);else{J(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();ua(a,[],function(c){pa(a);c=va(a,c);for(var d=0,e=c.length;d<e;d++)R(a,c[d]);U(a,b);J(a,!1)})}};t("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});t("ajax.params()",function(){var a=this.context;if(0<
|
||||
a.length)return a[0].oAjaxData});t("ajax.reload()",function(a,b){return this.iterator("table",function(c){Xb(c,!1===b,a)})});t("ajax.url()",function(a){var b=this.context;if(a===n){if(0===b.length)return n;b=b[0];return b.ajax?f.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){f.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});t("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Xb(c,!1===b,a)})});var db=function(a,b,c,d,e){var h=
|
||||
[],g,k,l;var m=typeof b;b&&"string"!==m&&"function"!==m&&b.length!==n||(b=[b]);m=0;for(k=b.length;m<k;m++){var p=b[m]&&b[m].split&&!b[m].match(/[\[\(:]/)?b[m].split(","):[b[m]];var q=0;for(l=p.length;q<l;q++)(g=c("string"===typeof p[q]?f.trim(p[q]):p[q]))&&g.length&&(h=h.concat(g))}a=C.selector[a];if(a.length)for(m=0,k=a.length;m<k;m++)h=a[m](d,e,h);return sa(h)},eb=function(a){a||(a={});a.filter&&a.search===n&&(a.search=a.filter);return f.extend({search:"none",order:"current",page:"all"},a)},fb=
|
||||
function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Ea=function(a,b){var c=[],d=a.aiDisplay;var e=a.aiDisplayMaster;var h=b.search;var g=b.order;b=b.page;if("ssp"==I(a))return"removed"===h?[]:Y(0,e.length);if("current"==b)for(g=a._iDisplayStart,a=a.fnDisplayEnd();g<a;g++)c.push(d[g]);else if("current"==g||"applied"==g)if("none"==h)c=e.slice();else if("applied"==h)c=d.slice();else{if("removed"==h){var k=
|
||||
{};g=0;for(a=d.length;g<a;g++)k[d[g]]=null;c=f.map(e,function(a){return k.hasOwnProperty(a)?null:a})}}else if("index"==g||"original"==g)for(g=0,a=a.aoData.length;g<a;g++)"none"==h?c.push(g):(e=f.inArray(g,d),(-1===e&&"removed"==h||0<=e&&"applied"==h)&&c.push(g));return c},fc=function(a,b,c){var d;return db("row",b,function(b){var e=Rb(b),g=a.aoData;if(null!==e&&!c)return[e];d||(d=Ea(a,c));if(null!==e&&-1!==f.inArray(e,d))return[e];if(null===b||b===n||""===b)return d;if("function"===typeof b)return f.map(d,
|
||||
function(a){var c=g[a];return b(a,c._aData,c.nTr)?a:null});if(b.nodeName){e=b._DT_RowIndex;var k=b._DT_CellIndex;if(e!==n)return g[e]&&g[e].nTr===b?[e]:[];if(k)return g[k.row]&&g[k.row].nTr===b.parentNode?[k.row]:[];e=f(b).closest("*[data-dt-row]");return e.length?[e.data("dt-row")]:[]}if("string"===typeof b&&"#"===b.charAt(0)&&(e=a.aIds[b.replace(/^#/,"")],e!==n))return[e.idx];e=Ub(ka(a.aoData,d,"nTr"));return f(e).filter(b).map(function(){return this._DT_RowIndex}).toArray()},a,c)};t("rows()",function(a,
|
||||
b){a===n?a="":f.isPlainObject(a)&&(b=a,a="");b=eb(b);var c=this.iterator("table",function(c){return fc(c,a,b)},1);c.selector.rows=a;c.selector.opts=b;return c});t("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||n},1)});t("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ka(a.aoData,b,"_aData")},1)});z("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){b=b.aoData[c];return"search"===a?b._aFilterData:
|
||||
b._aSortData},1)});z("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){da(b,c,a)})});z("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});z("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,d=0,e=c.length;d<e;d++)for(var f=0,g=this[d].length;f<g;f++){var k=c[d].rowIdFn(c[d].aoData[this[d][f]]._aData);b.push((!0===a?"#":"")+k)}return new x(c,b)});z("rows().remove()","row().remove()",function(){var a=
|
||||
this;this.iterator("row",function(b,c,d){var e=b.aoData,f=e[c],g,k;e.splice(c,1);var l=0;for(g=e.length;l<g;l++){var m=e[l];var p=m.anCells;null!==m.nTr&&(m.nTr._DT_RowIndex=l);if(null!==p)for(m=0,k=p.length;m<k;m++)p[m]._DT_CellIndex.row=l}qa(b.aiDisplayMaster,c);qa(b.aiDisplay,c);qa(a[d],c,!1);0<b._iRecordsDisplay&&b._iRecordsDisplay--;Va(b);c=b.rowIdFn(f._aData);c!==n&&delete b.aIds[c]});this.iterator("table",function(a){for(var b=0,d=a.aoData.length;b<d;b++)a.aoData[b].idx=b});return this});t("rows.add()",
|
||||
function(a){var b=this.iterator("table",function(b){var c,d=[];var f=0;for(c=a.length;f<c;f++){var k=a[f];k.nodeName&&"TR"===k.nodeName.toUpperCase()?d.push(oa(b,k)[0]):d.push(R(b,k))}return d},1),c=this.rows(-1);c.pop();f.merge(c,b);return c});t("row()",function(a,b){return fb(this.rows(a,b))});t("row().data()",function(a){var b=this.context;if(a===n)return b.length&&this.length?b[0].aoData[this[0]]._aData:n;var c=b[0].aoData[this[0]];c._aData=a;f.isArray(a)&&c.nTr&&c.nTr.id&&Q(b[0].rowId)(a,c.nTr.id);
|
||||
da(b[0],this[0],"data");return this});t("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});t("row.add()",function(a){a instanceof f&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?oa(b,a)[0]:R(b,a)});return this.row(b[0])});var gc=function(a,b,c,d){var e=[],h=function(b,c){if(f.isArray(b)||b instanceof f)for(var d=0,g=b.length;d<g;d++)h(b[d],c);else b.nodeName&&"tr"===b.nodeName.toLowerCase()?
|
||||
e.push(b):(d=f("<tr><td/></tr>").addClass(c),f("td",d).addClass(c).html(b)[0].colSpan=V(a),e.push(d[0]))};h(c,d);b._details&&b._details.detach();b._details=f(e);b._detailsShow&&b._details.insertAfter(b.nTr)},gb=function(a,b){var c=a.context;c.length&&(a=c[0].aoData[b!==n?b:a[0]])&&a._details&&(a._details.remove(),a._detailsShow=n,a._details=n)},Yb=function(a,b){var c=a.context;c.length&&a.length&&(a=c[0].aoData[a[0]],a._details&&((a._detailsShow=b)?a._details.insertAfter(a.nTr):a._details.detach(),
|
||||
hc(c[0])))},hc=function(a){var b=new x(a),c=a.aoData;b.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<K(c,"_details").length&&(b.on("draw.dt.DT_details",function(d,e){a===e&&b.rows({page:"current"}).eq(0).each(function(a){a=c[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),b.on("column-visibility.dt.DT_details",function(b,e,f,g){if(a===e)for(e=V(e),f=0,g=c.length;f<g;f++)b=c[f],b._details&&b._details.children("td[colspan]").attr("colspan",e)}),b.on("destroy.dt.DT_details",
|
||||
function(d,e){if(a===e)for(d=0,e=c.length;d<e;d++)c[d]._details&&gb(b,d)}))};t("row().child()",function(a,b){var c=this.context;if(a===n)return c.length&&this.length?c[0].aoData[this[0]]._details:n;!0===a?this.child.show():!1===a?gb(this):c.length&&this.length&&gc(c[0],c[0].aoData[this[0]],a,b);return this});t(["row().child.show()","row().child().show()"],function(a){Yb(this,!0);return this});t(["row().child.hide()","row().child().hide()"],function(){Yb(this,!1);return this});t(["row().child.remove()",
|
||||
"row().child().remove()"],function(){gb(this);return this});t("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var ic=/^([^:]+):(name|visIdx|visible)$/,Zb=function(a,b,c,d,e){c=[];d=0;for(var f=e.length;d<f;d++)c.push(F(a,e[d],b));return c},jc=function(a,b,c){var d=a.aoColumns,e=K(d,"sName"),h=K(d,"nTh");return db("column",b,function(b){var g=Rb(b);if(""===b)return Y(d.length);if(null!==g)return[0<=g?g:d.length+g];if("function"===
|
||||
typeof b){var l=Ea(a,c);return f.map(d,function(c,d){return b(d,Zb(a,d,0,0,l),h[d])?d:null})}var m="string"===typeof b?b.match(ic):"";if(m)switch(m[2]){case "visIdx":case "visible":g=parseInt(m[1],10);if(0>g){var p=f.map(d,function(a,b){return a.bVisible?b:null});return[p[p.length+g]]}return[aa(a,g)];case "name":return f.map(e,function(a,b){return a===m[1]?b:null});default:return[]}if(b.nodeName&&b._DT_CellIndex)return[b._DT_CellIndex.column];g=f(h).filter(b).map(function(){return f.inArray(this,
|
||||
h)}).toArray();if(g.length||!b.nodeName)return g;g=f(b).closest("*[data-dt-column]");return g.length?[g.data("dt-column")]:[]},a,c)};t("columns()",function(a,b){a===n?a="":f.isPlainObject(a)&&(b=a,a="");b=eb(b);var c=this.iterator("table",function(c){return jc(c,a,b)},1);c.selector.cols=a;c.selector.opts=b;return c});z("columns().header()","column().header()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});z("columns().footer()","column().footer()",function(a,
|
||||
b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});z("columns().data()","column().data()",function(){return this.iterator("column-rows",Zb,1)});z("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});z("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ka(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});z("columns().nodes()",
|
||||
"column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ka(a.aoData,e,"anCells",b)},1)});z("columns().visible()","column().visible()",function(a,b){var c=this,d=this.iterator("column",function(b,c){if(a===n)return b.aoColumns[c].bVisible;var d=b.aoColumns,e=d[c],h=b.aoData,m;if(a!==n&&e.bVisible!==a){if(a){var p=f.inArray(!0,K(d,"bVisible"),c+1);d=0;for(m=h.length;d<m;d++){var q=h[d].nTr;b=h[d].anCells;q&&q.insertBefore(b[c],b[p]||null)}}else f(K(b.aoData,"anCells",
|
||||
c)).detach();e.bVisible=a}});a!==n&&this.iterator("table",function(d){fa(d,d.aoHeader);fa(d,d.aoFooter);d.aiDisplay.length||f(d.nTBody).find("td[colspan]").attr("colspan",V(d));Aa(d);c.iterator("column",function(c,d){A(c,null,"column-visibility",[c,d,a,b])});(b===n||b)&&c.columns.adjust()});return d});z("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?ba(b,c):c},1)});t("columns.adjust()",function(){return this.iterator("table",function(a){Z(a)},
|
||||
1)});t("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return aa(c,b);if("fromData"===a||"toVisible"===a)return ba(c,b)}});t("column()",function(a,b){return fb(this.columns(a,b))});var kc=function(a,b,c){var d=a.aoData,e=Ea(a,c),h=Ub(ka(d,e,"anCells")),g=f([].concat.apply([],h)),k,l=a.aoColumns.length,m,p,q,u,t,w;return db("cell",b,function(b){var c="function"===typeof b;if(null===b||b===n||c){m=[];p=0;for(q=e.length;p<q;p++)for(k=
|
||||
e[p],u=0;u<l;u++)t={row:k,column:u},c?(w=d[k],b(t,F(a,k,u),w.anCells?w.anCells[u]:null)&&m.push(t)):m.push(t);return m}if(f.isPlainObject(b))return b.column!==n&&b.row!==n&&-1!==f.inArray(b.row,e)?[b]:[];c=g.filter(b).map(function(a,b){return{row:b._DT_CellIndex.row,column:b._DT_CellIndex.column}}).toArray();if(c.length||!b.nodeName)return c;w=f(b).closest("*[data-dt-row]");return w.length?[{row:w.data("dt-row"),column:w.data("dt-column")}]:[]},a,c)};t("cells()",function(a,b,c){f.isPlainObject(a)&&
|
||||
(a.row===n?(c=a,a=null):(c=b,b=null));f.isPlainObject(b)&&(c=b,b=null);if(null===b||b===n)return this.iterator("table",function(b){return kc(b,a,eb(c))});var d=c?{page:c.page,order:c.order,search:c.search}:{},e=this.columns(b,d),h=this.rows(a,d),g,k,l,m;d=this.iterator("table",function(a,b){a=[];g=0;for(k=h[b].length;g<k;g++)for(l=0,m=e[b].length;l<m;l++)a.push({row:h[b][g],column:e[b][l]});return a},1);d=c&&c.selected?this.cells(d,c):d;f.extend(d.selector,{cols:b,rows:a,opts:c});return d});z("cells().nodes()",
|
||||
"cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:n},1)});t("cells().data()",function(){return this.iterator("cell",function(a,b,c){return F(a,b,c)},1)});z("cells().cache()","cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});z("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return F(b,c,d,a)},
|
||||
1)});z("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:ba(a,c)}},1)});z("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,d){da(b,c,a,d)})});t("cell()",function(a,b,c){return fb(this.cells(a,b,c))});t("cell().data()",function(a){var b=this.context,c=this[0];if(a===n)return b.length&&c.length?F(b[0],c[0].row,c[0].column):n;nb(b[0],c[0].row,c[0].column,a);da(b[0],c[0].row,
|
||||
"data",c[0].column);return this});t("order()",function(a,b){var c=this.context;if(a===n)return 0!==c.length?c[0].aaSorting:n;"number"===typeof a?a=[[a,b]]:a.length&&!f.isArray(a[0])&&(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})});t("order.listener()",function(a,b,c){return this.iterator("table",function(d){Pa(d,a,b,c)})});t("order.fixed()",function(a){if(!a){var b=this.context;b=b.length?b[0].aaSortingFixed:n;return f.isArray(b)?{pre:b}:
|
||||
b}return this.iterator("table",function(b){b.aaSortingFixed=f.extend(!0,{},a)})});t(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];f.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});t("search()",function(a,b,c,d){var e=this.context;return a===n?0!==e.length?e[0].oPreviousSearch.sSearch:n:this.iterator("table",function(e){e.oFeatures.bFilter&&ha(e,f.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===
|
||||
c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});z("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,h){var g=e.aoPreSearchCols;if(a===n)return g[h].sSearch;e.oFeatures.bFilter&&(f.extend(g[h],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),ha(e,e.oPreviousSearch,1))})});t("state()",function(){return this.context.length?this.context[0].oSavedState:null});t("state.clear()",function(){return this.iterator("table",
|
||||
function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});t("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});t("state.save()",function(){return this.iterator("table",function(a){Aa(a)})});q.versionCheck=q.fnVersionCheck=function(a){var b=q.version.split(".");a=a.split(".");for(var c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};q.isDataTable=q.fnIsDataTable=function(a){var b=f(a).get(0),c=!1;if(a instanceof
|
||||
q.Api)return!0;f.each(q.settings,function(a,e){a=e.nScrollHead?f("table",e.nScrollHead)[0]:null;var d=e.nScrollFoot?f("table",e.nScrollFoot)[0]:null;if(e.nTable===b||a===b||d===b)c=!0});return c};q.tables=q.fnTables=function(a){var b=!1;f.isPlainObject(a)&&(b=a.api,a=a.visible);var c=f.map(q.settings,function(b){if(!a||a&&f(b.nTable).is(":visible"))return b.nTable});return b?new x(c):c};q.camelToHungarian=L;t("$()",function(a,b){b=this.rows(b).nodes();b=f(b);return f([].concat(b.filter(a).toArray(),
|
||||
b.find(a).toArray()))});f.each(["on","one","off"],function(a,b){t(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0]=f.map(a[0].split(/\s/),function(a){return a.match(/\.dt\b/)?a:a+".dt"}).join(" ");var d=f(this.tables().nodes());d[b].apply(d,a);return this})});t("clear()",function(){return this.iterator("table",function(a){pa(a)})});t("settings()",function(){return new x(this.context,this.context)});t("init()",function(){var a=this.context;return a.length?a[0].oInit:null});t("data()",
|
||||
function(){return this.iterator("table",function(a){return K(a.aoData,"_aData")}).flatten()});t("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,h=b.nTBody,g=b.nTHead,k=b.nTFoot,l=f(e);h=f(h);var m=f(b.nTableWrapper),p=f.map(b.aoData,function(a){return a.nTr}),n;b.bDestroying=!0;A(b,"aoDestroyCallback","destroy",[b]);a||(new x(b)).columns().visible(!0);m.off(".DT").find(":not(tbody *)").off(".DT");f(y).off(".DT-"+b.sInstance);
|
||||
e!=g.parentNode&&(l.children("thead").detach(),l.append(g));k&&e!=k.parentNode&&(l.children("tfoot").detach(),l.append(k));b.aaSorting=[];b.aaSortingFixed=[];za(b);f(p).removeClass(b.asStripeClasses.join(" "));f("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);h.children().detach();h.append(p);g=a?"remove":"detach";l[g]();m[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),l.css("width",b.sDestroyWidth).removeClass(d.sTable),(n=b.asDestroyStripes.length)&&
|
||||
h.children().each(function(a){f(this).addClass(b.asDestroyStripes[a%n])}));c=f.inArray(b,q.settings);-1!==c&&q.settings.splice(c,1)})});f.each(["column","row","cell"],function(a,b){t(b+"s().every()",function(a){var c=this.selector.opts,e=this;return this.iterator(b,function(d,f,k,l,m){a.call(e[b](f,"cell"===b?k:c,"cell"===b?c:n),f,k,l,m)})})});t("i18n()",function(a,b,c){var d=this.context[0];a=T(a)(d.oLanguage);a===n&&(a=b);c!==n&&f.isPlainObject(a)&&(a=a[c]!==n?a[c]:a._);return a.replace("%d",c)});
|
||||
q.version="1.10.21";q.settings=[];q.models={};q.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};q.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};q.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,
|
||||
sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};q.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,
|
||||
bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){return{}}},
|
||||
fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",
|
||||
sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:f.extend({},q.models.oSearch),sAjaxDataProp:"data",
|
||||
sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};H(q.defaults);q.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};H(q.defaults.column);q.models.oSettings=
|
||||
{oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},
|
||||
aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,
|
||||
aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:n,oAjaxData:n,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==I(this)?1*this._iRecordsTotal:
|
||||
this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==I(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};q.ext=C={buttons:{},
|
||||
classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:q.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:q.version};f.extend(C,{afnFiltering:C.search,aTypes:C.type.detect,ofnSearch:C.type.search,oSort:C.type.order,afnSortData:C.order,aoFeatures:C.feature,oApi:C.internal,oStdClasses:C.classes,oPagination:C.pager});
|
||||
f.extend(q.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",
|
||||
sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",
|
||||
sJUIHeader:"",sJUIFooter:""});var Ob=q.ext.pager;f.extend(Ob,{simple:function(a,b){return["previous","next"]},full:function(a,b){return["first","previous","next","last"]},numbers:function(a,b){return[ja(a,b)]},simple_numbers:function(a,b){return["previous",ja(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ja(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ja(a,b),"last"]},_numbers:ja,numbers_length:7});f.extend(!0,q.ext.renderer,{pageButton:{_:function(a,b,
|
||||
c,d,e,h){var g=a.oClasses,k=a.oLanguage.oPaginate,l=a.oLanguage.oAria.paginate||{},m,p,q=0,t=function(b,d){var n,r=g.sPageButtonDisabled,u=function(b){Wa(a,b.data.action,!0)};var w=0;for(n=d.length;w<n;w++){var v=d[w];if(f.isArray(v)){var x=f("<"+(v.DT_el||"div")+"/>").appendTo(b);t(x,v)}else{m=null;p=v;x=a.iTabIndex;switch(v){case "ellipsis":b.append('<span class="ellipsis">…</span>');break;case "first":m=k.sFirst;0===e&&(x=-1,p+=" "+r);break;case "previous":m=k.sPrevious;0===e&&(x=-1,p+=
|
||||
" "+r);break;case "next":m=k.sNext;if(0===h||e===h-1)x=-1,p+=" "+r;break;case "last":m=k.sLast;e===h-1&&(x=-1,p+=" "+r);break;default:m=v+1,p=e===v?g.sPageButtonActive:""}null!==m&&(x=f("<a>",{"class":g.sPageButton+" "+p,"aria-controls":a.sTableId,"aria-label":l[v],"data-dt-idx":q,tabindex:x,id:0===c&&"string"===typeof v?a.sTableId+"_"+v:null}).html(m).appendTo(b),Za(x,{action:v},u),q++)}}};try{var x=f(b).find(w.activeElement).data("dt-idx")}catch(lc){}t(f(b).empty(),d);x!==n&&f(b).find("[data-dt-idx="+
|
||||
x+"]").trigger("focus")}}});f.extend(q.ext.type.detect,[function(a,b){b=b.oLanguage.sDecimal;return cb(a,b)?"num"+b:null},function(a,b){if(a&&!(a instanceof Date)&&!cc.test(a))return null;b=Date.parse(a);return null!==b&&!isNaN(b)||P(a)?"date":null},function(a,b){b=b.oLanguage.sDecimal;return cb(a,b,!0)?"num-fmt"+b:null},function(a,b){b=b.oLanguage.sDecimal;return Tb(a,b)?"html-num"+b:null},function(a,b){b=b.oLanguage.sDecimal;return Tb(a,b,!0)?"html-num-fmt"+b:null},function(a,b){return P(a)||"string"===
|
||||
typeof a&&-1!==a.indexOf("<")?"html":null}]);f.extend(q.ext.type.search,{html:function(a){return P(a)?a:"string"===typeof a?a.replace(Qb," ").replace(Da,""):""},string:function(a){return P(a)?a:"string"===typeof a?a.replace(Qb," "):a}});var Ca=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Sb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};f.extend(C.type.order,{"date-pre":function(a){a=Date.parse(a);return isNaN(a)?-Infinity:a},"html-pre":function(a){return P(a)?
|
||||
"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return P(a)?"":"string"===typeof a?a.toLowerCase():a.toString?a.toString():""},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});Ga("");f.extend(!0,q.ext.renderer,{header:{_:function(a,b,c,d){f(a.nTable).on("order.dt.DT",function(e,f,g,k){a===f&&(e=c.idx,b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass("asc"==k[e]?d.sSortAsc:"desc"==k[e]?d.sSortDesc:
|
||||
c.sSortingClass))})},jqueryui:function(a,b,c,d){f("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(f("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);f(a.nTable).on("order.dt.DT",function(e,f,g,k){a===f&&(e=c.idx,b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass("asc"==k[e]?d.sSortAsc:"desc"==k[e]?d.sSortDesc:c.sSortingClass),b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass("asc"==
|
||||
k[e]?d.sSortJUIAsc:"desc"==k[e]?d.sSortJUIDesc:c.sSortingClassJUI))})}}});var hb=function(a){return"string"===typeof a?a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):a};q.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return hb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
|
||||
a)+f+(e||"")}}},text:function(){return{display:hb,filter:hb}}};f.extend(q.ext.internal,{_fnExternApiFunc:Pb,_fnBuildAjax:ua,_fnAjaxUpdate:pb,_fnAjaxParameters:yb,_fnAjaxUpdateDraw:zb,_fnAjaxDataSrc:va,_fnAddColumn:Ha,_fnColumnOptions:la,_fnAdjustColumnSizing:Z,_fnVisibleToColumnIndex:aa,_fnColumnIndexToVisible:ba,_fnVisbleColumns:V,_fnGetColumns:na,_fnColumnTypes:Ja,_fnApplyColumnDefs:mb,_fnHungarianMap:H,_fnCamelToHungarian:L,_fnLanguageCompat:Fa,_fnBrowserDetect:kb,_fnAddData:R,_fnAddTr:oa,_fnNodeToDataIndex:function(a,
|
||||
b){return b._DT_RowIndex!==n?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return f.inArray(c,a.aoData[b].anCells)},_fnGetCellData:F,_fnSetCellData:nb,_fnSplitObjNotation:Ma,_fnGetObjectDataFn:T,_fnSetObjectDataFn:Q,_fnGetDataMaster:Na,_fnClearTable:pa,_fnDeleteIndex:qa,_fnInvalidate:da,_fnGetRowElements:La,_fnCreateTr:Ka,_fnBuildHead:ob,_fnDrawHead:fa,_fnDraw:S,_fnReDraw:U,_fnAddOptionsHtml:rb,_fnDetectHeader:ea,_fnGetUniqueThs:ta,_fnFeatureHtmlFilter:tb,_fnFilterComplete:ha,_fnFilterCustom:Cb,
|
||||
_fnFilterColumn:Bb,_fnFilter:Ab,_fnFilterCreateSearch:Sa,_fnEscapeRegex:Ta,_fnFilterData:Db,_fnFeatureHtmlInfo:wb,_fnUpdateInfo:Gb,_fnInfoMacros:Hb,_fnInitialise:ia,_fnInitComplete:wa,_fnLengthChange:Ua,_fnFeatureHtmlLength:sb,_fnFeatureHtmlPaginate:xb,_fnPageChange:Wa,_fnFeatureHtmlProcessing:ub,_fnProcessingDisplay:J,_fnFeatureHtmlTable:vb,_fnScrollDraw:ma,_fnApplyToChildren:N,_fnCalculateColumnWidths:Ia,_fnThrottle:Ra,_fnConvertToWidth:Ib,_fnGetWidestNode:Jb,_fnGetMaxLenString:Kb,_fnStringToCss:B,
|
||||
_fnSortFlatten:X,_fnSort:qb,_fnSortAria:Mb,_fnSortListener:Ya,_fnSortAttachListener:Pa,_fnSortingClasses:za,_fnSortData:Lb,_fnSaveState:Aa,_fnLoadState:Nb,_fnSettingsFromNode:Ba,_fnLog:O,_fnMap:M,_fnBindAction:Za,_fnCallbackReg:D,_fnCallbackFire:A,_fnLengthOverflow:Va,_fnRenderer:Qa,_fnDataSource:I,_fnRowAttributes:Oa,_fnExtend:$a,_fnCalculateEnd:function(){}});f.fn.dataTable=q;q.$=f;f.fn.dataTableSettings=q.settings;f.fn.dataTableExt=q.ext;f.fn.DataTable=function(a){return f(this).dataTable(a).api()};
|
||||
f.each(q,function(a,b){f.fn.DataTable[a]=b});return f.fn.dataTable});
|
||||
@@ -1,45 +0,0 @@
|
||||
/*!
|
||||
Copyright 2014-2020 SpryMedia Ltd.
|
||||
|
||||
This source file is free software, available under the following license:
|
||||
MIT license - http://datatables.net/license/mit
|
||||
|
||||
This source file is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
||||
|
||||
For details please refer to: http://www.datatables.net
|
||||
Responsive 2.2.5
|
||||
2014-2020 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,k,g){a instanceof String&&(a=String(a));for(var n=a.length,p=0;p<n;p++){var v=a[p];if(k.call(g,v,p,a))return{i:p,v:v}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,k,g){a!=Array.prototype&&a!=Object.prototype&&(a[k]=g.value)};$jscomp.getGlobal=function(a){a=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a];for(var k=0;k<a.length;++k){var g=a[k];if(g&&g.Math==Math)return g}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(a,k,g,n){if(k){g=$jscomp.global;a=a.split(".");for(n=0;n<a.length-1;n++){var p=a[n];p in g||(g[p]={});g=g[p]}a=a[a.length-1];n=g[a];k=k(n);k!=n&&null!=k&&$jscomp.defineProperty(g,a,{configurable:!0,writable:!0,value:k})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,g){return $jscomp.findInternal(this,a,g).v}},"es6","es3");
|
||||
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(k){return a(k,window,document)}):"object"===typeof exports?module.exports=function(k,g){k||(k=window);g&&g.fn.dataTable||(g=require("datatables.net")(k,g).$);return a(g,k,k.document)}:a(jQuery,window,document)})(function(a,k,g,n){function p(b,a,c){var d=a+"-"+c;if(q[d])return q[d];var f=[];b=b.cell(a,c).node().childNodes;a=0;for(c=b.length;a<c;a++)f.push(b[a]);return q[d]=f}function v(b,a,c){var d=a+"-"+
|
||||
c;if(q[d]){b=b.cell(a,c).node();c=q[d][0].parentNode.childNodes;a=[];for(var f=0,l=c.length;f<l;f++)a.push(c[f]);c=0;for(f=a.length;c<f;c++)b.appendChild(a[c]);q[d]=n}}var t=a.fn.dataTable,m=function(b,d){if(!t.versionCheck||!t.versionCheck("1.10.10"))throw"DataTables Responsive requires DataTables 1.10.10 or newer";this.s={dt:new t.Api(b),columns:[],current:[]};this.s.dt.settings()[0].responsive||(d&&"string"===typeof d.details?d.details={type:d.details}:d&&!1===d.details?d.details={type:!1}:d&&
|
||||
!0===d.details&&(d.details={type:"inline"}),this.c=a.extend(!0,{},m.defaults,t.defaults.responsive,d),b.responsive=this,this._constructor())};a.extend(m.prototype,{_constructor:function(){var b=this,d=this.s.dt,c=d.settings()[0],e=a(k).innerWidth();d.settings()[0]._responsive=this;a(k).on("resize.dtr orientationchange.dtr",t.util.throttle(function(){var d=a(k).innerWidth();d!==e&&(b._resize(),e=d)}));c.oApi._fnCallbackReg(c,"aoRowCreatedCallback",function(c,e,r){-1!==a.inArray(!1,b.s.current)&&a(">td, >th",
|
||||
c).each(function(c){c=d.column.index("toData",c);!1===b.s.current[c]&&a(this).css("display","none")})});d.on("destroy.dtr",function(){d.off(".dtr");a(d.table().body()).off(".dtr");a(k).off("resize.dtr orientationchange.dtr");d.cells(".dtr-control").nodes().to$().removeClass("dtr-control");a.each(b.s.current,function(a,d){!1===d&&b._setColumnVis(a,!0)})});this.c.breakpoints.sort(function(b,a){return b.width<a.width?1:b.width>a.width?-1:0});this._classLogic();this._resizeAuto();c=this.c.details;!1!==
|
||||
c.type&&(b._detailsInit(),d.on("column-visibility.dtr",function(){b._timer&&clearTimeout(b._timer);b._timer=setTimeout(function(){b._timer=null;b._classLogic();b._resizeAuto();b._resize();b._redrawChildren()},100)}),d.on("draw.dtr",function(){b._redrawChildren()}),a(d.table().node()).addClass("dtr-"+c.type));d.on("column-reorder.dtr",function(a,d,c){b._classLogic();b._resizeAuto();b._resize(!0)});d.on("column-sizing.dtr",function(){b._resizeAuto();b._resize()});d.on("preXhr.dtr",function(){var a=
|
||||
[];d.rows().every(function(){this.child.isShown()&&a.push(this.id(!0))});d.one("draw.dtr",function(){b._resizeAuto();b._resize();d.rows(a).every(function(){b._detailsDisplay(this,!1)})})});d.on("draw.dtr",function(){b._controlClass()}).on("init.dtr",function(c,e,r){"dt"===c.namespace&&(b._resizeAuto(),b._resize(),a.inArray(!1,b.s.current)&&d.columns.adjust())});this._resize()},_columnsVisiblity:function(b){var d=this.s.dt,c=this.s.columns,e,f=c.map(function(a,b){return{columnIdx:b,priority:a.priority}}).sort(function(a,
|
||||
b){return a.priority!==b.priority?a.priority-b.priority:a.columnIdx-b.columnIdx}),l=a.map(c,function(c,h){return!1===d.column(h).visible()?"not-visible":c.auto&&null===c.minWidth?!1:!0===c.auto?"-":-1!==a.inArray(b,c.includeIn)}),r=0;var h=0;for(e=l.length;h<e;h++)!0===l[h]&&(r+=c[h].minWidth);h=d.settings()[0].oScroll;h=h.sY||h.sX?h.iBarWidth:0;r=d.table().container().offsetWidth-h-r;h=0;for(e=l.length;h<e;h++)c[h].control&&(r-=c[h].minWidth);var k=!1;h=0;for(e=f.length;h<e;h++){var g=f[h].columnIdx;
|
||||
"-"===l[g]&&!c[g].control&&c[g].minWidth&&(k||0>r-c[g].minWidth?(k=!0,l[g]=!1):l[g]=!0,r-=c[g].minWidth)}f=!1;h=0;for(e=c.length;h<e;h++)if(!c[h].control&&!c[h].never&&!1===l[h]){f=!0;break}h=0;for(e=c.length;h<e;h++)c[h].control&&(l[h]=f),"not-visible"===l[h]&&(l[h]=!1);-1===a.inArray(!0,l)&&(l[0]=!0);return l},_classLogic:function(){var b=this,d=this.c.breakpoints,c=this.s.dt,e=c.columns().eq(0).map(function(a){var b=this.column(a),d=b.header().className;a=c.settings()[0].aoColumns[a].responsivePriority;
|
||||
b=b.header().getAttribute("data-priority");a===n&&(a=b===n||null===b?1E4:1*b);return{className:d,includeIn:[],auto:!1,control:!1,never:d.match(/\bnever\b/)?!0:!1,priority:a}}),f=function(b,d){b=e[b].includeIn;-1===a.inArray(d,b)&&b.push(d)},g=function(a,c,g,l){if(!g)e[a].includeIn.push(c);else if("max-"===g)for(l=b._find(c).width,c=0,g=d.length;c<g;c++)d[c].width<=l&&f(a,d[c].name);else if("min-"===g)for(l=b._find(c).width,c=0,g=d.length;c<g;c++)d[c].width>=l&&f(a,d[c].name);else if("not-"===g)for(c=
|
||||
0,g=d.length;c<g;c++)-1===d[c].name.indexOf(l)&&f(a,d[c].name)};e.each(function(b,c){for(var e=b.className.split(" "),f=!1,h=0,l=e.length;h<l;h++){var k=a.trim(e[h]);if("all"===k){f=!0;b.includeIn=a.map(d,function(b){return b.name});return}if("none"===k||b.never){f=!0;return}if("control"===k){f=!0;b.control=!0;return}a.each(d,function(b,a){b=a.name.split("-");var d=k.match(new RegExp("(min\\-|max\\-|not\\-)?("+b[0]+")(\\-[_a-zA-Z0-9])?"));d&&(f=!0,d[2]===b[0]&&d[3]==="-"+b[1]?g(c,a.name,d[1],d[2]+
|
||||
d[3]):d[2]!==b[0]||d[3]||g(c,a.name,d[1],d[2]))})}f||(b.auto=!0)});this.s.columns=e},_controlClass:function(){if("inline"===this.c.details.type){var b=this.s.dt,d=a.inArray(!0,this.s.current);b.cells(null,function(b){return b!==d},{page:"current"}).nodes().to$().filter(".dtr-control").removeClass("dtr-control");b.cells(null,d,{page:"current"}).nodes().to$().addClass("dtr-control")}},_detailsDisplay:function(b,d){var c=this,e=this.s.dt,f=this.c.details;if(f&&!1!==f.type){var g=f.display(b,d,function(){return f.renderer(e,
|
||||
b[0],c._detailsObj(b[0]))});!0!==g&&!1!==g||a(e.table().node()).triggerHandler("responsive-display.dt",[e,b,g,d])}},_detailsInit:function(){var b=this,d=this.s.dt,c=this.c.details;"inline"===c.type&&(c.target="td.dtr-control, th.dtr-control");d.on("draw.dtr",function(){b._tabIndexes()});b._tabIndexes();a(d.table().body()).on("keyup.dtr","td, th",function(b){13===b.keyCode&&a(this).data("dtr-keyboard")&&a(this).click()});var e=c.target;c="string"===typeof e?e:"td, th";if(e!==n||null!==e)a(d.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",
|
||||
c,function(c){if(a(d.table().node()).hasClass("collapsed")&&-1!==a.inArray(a(this).closest("tr").get(0),d.rows().nodes().toArray())){if("number"===typeof e){var f=0>e?d.columns().eq(0).length+e:e;if(d.cell(this).index().column!==f)return}f=d.row(a(this).closest("tr"));"click"===c.type?b._detailsDisplay(f,!1):"mousedown"===c.type?a(this).css("outline","none"):"mouseup"===c.type&&a(this).trigger("blur").css("outline","")}})},_detailsObj:function(b){var d=this,c=this.s.dt;return a.map(this.s.columns,
|
||||
function(e,f){if(!e.never&&!e.control)return e=c.settings()[0].aoColumns[f],{className:e.sClass,columnIndex:f,data:c.cell(b,f).render(d.c.orthogonal),hidden:c.column(f).visible()&&!d.s.current[f],rowIndex:b,title:null!==e.sTitle?e.sTitle:a(c.column(f).header()).text()}})},_find:function(b){for(var a=this.c.breakpoints,c=0,e=a.length;c<e;c++)if(a[c].name===b)return a[c]},_redrawChildren:function(){var b=this,a=this.s.dt;a.rows({page:"current"}).iterator("row",function(c,d){a.row(d);b._detailsDisplay(a.row(d),
|
||||
!0)})},_resize:function(b){var d=this,c=this.s.dt,e=a(k).innerWidth(),f=this.c.breakpoints,g=f[0].name,r=this.s.columns,h,n=this.s.current.slice();for(h=f.length-1;0<=h;h--)if(e<=f[h].width){g=f[h].name;break}var m=this._columnsVisiblity(g);this.s.current=m;f=!1;h=0;for(e=r.length;h<e;h++)if(!1===m[h]&&!r[h].never&&!r[h].control&&!1===!c.column(h).visible()){f=!0;break}a(c.table().node()).toggleClass("collapsed",f);var p=!1,q=0;c.columns().eq(0).each(function(a,c){!0===m[c]&&q++;if(b||m[c]!==n[c])p=
|
||||
!0,d._setColumnVis(a,m[c])});p&&(this._redrawChildren(),a(c.table().node()).trigger("responsive-resize.dt",[c,this.s.current]),0===c.page.info().recordsDisplay&&a("td",c.table().body()).eq(0).attr("colspan",q))},_resizeAuto:function(){var b=this.s.dt,d=this.s.columns;if(this.c.auto&&-1!==a.inArray(!0,a.map(d,function(b){return b.auto}))){a.isEmptyObject(q)||a.each(q,function(a){a=a.split("-");v(b,1*a[0],1*a[1])});b.table().node();var c=b.table().node().cloneNode(!1),e=a(b.table().header().cloneNode(!1)).appendTo(c),
|
||||
f=a(b.table().body()).clone(!1,!1).empty().appendTo(c);c.style.width="auto";var g=b.columns().header().filter(function(a){return b.column(a).visible()}).to$().clone(!1).css("display","table-cell").css("width","auto").css("min-width",0);a(f).append(a(b.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display","");if(f=b.table().footer()){f=a(f.cloneNode(!1)).appendTo(c);var k=b.columns().footer().filter(function(a){return b.column(a).visible()}).to$().clone(!1).css("display","table-cell");
|
||||
a("<tr/>").append(k).appendTo(f)}a("<tr/>").append(g).appendTo(e);"inline"===this.c.details.type&&a(c).addClass("dtr-inline collapsed");a(c).find("[name]").removeAttr("name");a(c).css("position","relative");c=a("<div/>").css({width:1,height:1,overflow:"hidden",clear:"both"}).append(c);c.insertBefore(b.table().node());g.each(function(a){a=b.column.index("fromVisible",a);d[a].minWidth=this.offsetWidth||0});c.remove()}},_responsiveOnlyHidden:function(){var b=this.s.dt;return a.map(this.s.current,function(a,
|
||||
c){return!1===b.column(c).visible()?!0:a})},_setColumnVis:function(b,d){var c=this.s.dt;d=d?"":"none";a(c.column(b).header()).css("display",d);a(c.column(b).footer()).css("display",d);c.column(b).nodes().to$().css("display",d);a.isEmptyObject(q)||c.cells(null,b).indexes().each(function(a){v(c,a.row,a.column)})},_tabIndexes:function(){var b=this.s.dt,d=b.cells({page:"current"}).nodes().to$(),c=b.settings()[0],e=this.c.details.target;d.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]");
|
||||
"number"===typeof e?b.cells(null,e,{page:"current"}).nodes().to$().attr("tabIndex",c.iTabIndex).data("dtr-keyboard",1):("td:first-child, th:first-child"===e&&(e=">td:first-child, >th:first-child"),a(e,b.rows({page:"current"}).nodes()).attr("tabIndex",c.iTabIndex).data("dtr-keyboard",1))}});m.breakpoints=[{name:"desktop",width:Infinity},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}];m.display={childRow:function(b,d,c){if(d){if(a(b.node()).hasClass("parent"))return b.child(c(),
|
||||
"child").show(),!0}else{if(b.child.isShown())return b.child(!1),a(b.node()).removeClass("parent"),!1;b.child(c(),"child").show();a(b.node()).addClass("parent");return!0}},childRowImmediate:function(b,d,c){if(!d&&b.child.isShown()||!b.responsive.hasHidden())return b.child(!1),a(b.node()).removeClass("parent"),!1;b.child(c(),"child").show();a(b.node()).addClass("parent");return!0},modal:function(b){return function(d,c,e){if(c)a("div.dtr-modal-content").empty().append(e());else{var f=function(){k.remove();
|
||||
a(g).off("keypress.dtr")},k=a('<div class="dtr-modal"/>').append(a('<div class="dtr-modal-display"/>').append(a('<div class="dtr-modal-content"/>').append(e())).append(a('<div class="dtr-modal-close">×</div>').click(function(){f()}))).append(a('<div class="dtr-modal-background"/>').click(function(){f()})).appendTo("body");a(g).on("keyup.dtr",function(a){27===a.keyCode&&(a.stopPropagation(),f())})}b&&b.header&&a("div.dtr-modal-content").prepend("<h2>"+b.header(d)+"</h2>")}}};var q={};m.renderer=
|
||||
{listHiddenNodes:function(){return function(b,d,c){var e=a('<ul data-dtr-index="'+d+'" class="dtr-details"/>'),f=!1;a.each(c,function(c,d){d.hidden&&(a("<li "+(d.className?'class="'+d.className+'"':"")+' data-dtr-index="'+d.columnIndex+'" data-dt-row="'+d.rowIndex+'" data-dt-column="'+d.columnIndex+'"><span class="dtr-title">'+d.title+"</span> </li>").append(a('<span class="dtr-data"/>').append(p(b,d.rowIndex,d.columnIndex))).appendTo(e),f=!0)});return f?e:!1}},listHidden:function(){return function(b,
|
||||
d,c){return(b=a.map(c,function(a){var b=a.className?'class="'+a.className+'"':"";return a.hidden?"<li "+b+' data-dtr-index="'+a.columnIndex+'" data-dt-row="'+a.rowIndex+'" data-dt-column="'+a.columnIndex+'"><span class="dtr-title">'+a.title+'</span> <span class="dtr-data">'+a.data+"</span></li>":""}).join(""))?a('<ul data-dtr-index="'+d+'" class="dtr-details"/>').append(b):!1}},tableAll:function(b){b=a.extend({tableClass:""},b);return function(d,c,e){d=a.map(e,function(a){return"<tr "+(a.className?
|
||||
'class="'+a.className+'"':"")+' data-dt-row="'+a.rowIndex+'" data-dt-column="'+a.columnIndex+'"><td>'+a.title+":</td> <td>"+a.data+"</td></tr>"}).join("");return a('<table class="'+b.tableClass+' dtr-details" width="100%"/>').append(d)}}};m.defaults={breakpoints:m.breakpoints,auto:!0,details:{display:m.display.childRow,renderer:m.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var u=a.fn.dataTable.Api;u.register("responsive()",function(){return this});u.register("responsive.index()",
|
||||
function(b){b=a(b);return{column:b.data("dtr-index"),row:b.parent().data("dtr-index")}});u.register("responsive.rebuild()",function(){return this.iterator("table",function(a){a._responsive&&a._responsive._classLogic()})});u.register("responsive.recalc()",function(){return this.iterator("table",function(a){a._responsive&&(a._responsive._resizeAuto(),a._responsive._resize())})});u.register("responsive.hasHidden()",function(){var b=this.context[0];return b._responsive?-1!==a.inArray(!1,b._responsive._responsiveOnlyHidden()):
|
||||
!1});u.registerPlural("columns().responsiveHidden()","column().responsiveHidden()",function(){return this.iterator("column",function(a,d){return a._responsive?a._responsive._responsiveOnlyHidden()[d]:!1},1)});m.version="2.2.5";a.fn.dataTable.Responsive=m;a.fn.DataTable.Responsive=m;a(g).on("preInit.dt.dtr",function(b,d,c){"dt"===b.namespace&&(a(d.nTable).hasClass("responsive")||a(d.nTable).hasClass("dt-responsive")||d.oInit.responsive||t.defaults.responsive)&&(b=d.oInit.responsive,!1!==b&&new m(d,
|
||||
a.isPlainObject(b)?b:{}))});return m});
|
||||
@@ -1,41 +0,0 @@
|
||||
/*!
|
||||
Copyright 2011-2020 SpryMedia Ltd.
|
||||
|
||||
This source file is free software, available under the following license:
|
||||
MIT license - http://datatables.net/license/mit
|
||||
|
||||
This source file is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
||||
|
||||
For details please refer to: http://www.datatables.net
|
||||
Scroller 2.0.2
|
||||
©2011-2020 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,e,g){c instanceof String&&(c=String(c));for(var k=c.length,l=0;l<k;l++){var h=c[l];if(e.call(g,h,l,c))return{i:l,v:h}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
|
||||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,e,g){c!=Array.prototype&&c!=Object.prototype&&(c[e]=g.value)};$jscomp.getGlobal=function(c){c=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,c];for(var e=0;e<c.length;++e){var g=c[e];if(g&&g.Math==Math)return g}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(c,e,g,k){if(e){g=$jscomp.global;c=c.split(".");for(k=0;k<c.length-1;k++){var l=c[k];l in g||(g[l]={});g=g[l]}c=c[c.length-1];k=g[c];e=e(k);e!=k&&null!=e&&$jscomp.defineProperty(g,c,{configurable:!0,writable:!0,value:e})}};$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(c,g){return $jscomp.findInternal(this,c,g).v}},"es6","es3");
|
||||
(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return c(e,window,document)}):"object"===typeof exports?module.exports=function(e,g){e||(e=window);g&&g.fn.dataTable||(g=require("datatables.net")(e,g).$);return c(g,e,e.document)}:c(jQuery,window,document)})(function(c,e,g,k){var l=c.fn.dataTable,h=function(a,b){this instanceof h?(b===k&&(b={}),a=c.fn.dataTable.Api(a),this.s={dt:a.settings()[0],dtApi:a,tableTop:0,tableBottom:0,redrawTop:0,redrawBottom:0,
|
||||
autoHeight:!0,viewportRows:0,stateTO:null,stateSaveThrottle:function(){},drawTO:null,heights:{jump:null,page:null,virtual:null,scroll:null,row:null,viewport:null,labelFactor:1},topRowFloat:0,scrollDrawDiff:null,loaderVisible:!1,forceReposition:!1,baseRowTop:0,baseScrollTop:0,mousedown:!1,lastScrollTop:0},this.s=c.extend(this.s,h.oDefaults,b),this.s.heights.row=this.s.rowHeight,this.dom={force:g.createElement("div"),label:c('<div class="dts_label">0</div>'),scroller:null,table:null,loader:null},this.s.dt.oScroller||
|
||||
(this.s.dt.oScroller=this,this.construct())):alert("Scroller warning: Scroller must be initialised with the 'new' keyword.")};c.extend(h.prototype,{measure:function(a){this.s.autoHeight&&this._calcRowHeight();var b=this.s.heights;b.row&&(b.viewport=this._parseHeight(c(this.dom.scroller).css("max-height")),this.s.viewportRows=parseInt(b.viewport/b.row,10)+1,this.s.dt._iDisplayLength=this.s.viewportRows*this.s.displayBuffer);var d=this.dom.label.outerHeight();b.labelFactor=(b.viewport-d)/b.scroll;(a===
|
||||
k||a)&&this.s.dt.oInstance.fnDraw(!1)},pageInfo:function(){var a=this.dom.scroller.scrollTop,b=this.s.dt.fnRecordsDisplay(),d=Math.ceil(this.pixelsToRow(a+this.s.heights.viewport,!1,this.s.ani));return{start:Math.floor(this.pixelsToRow(a,!1,this.s.ani)),end:b<d?b-1:d-1}},pixelsToRow:function(a,b,d){a-=this.s.baseScrollTop;d=d?(this._domain("physicalToVirtual",this.s.baseScrollTop)+a)/this.s.heights.row:a/this.s.heights.row+this.s.baseRowTop;return b||b===k?parseInt(d,10):d},rowToPixels:function(a,
|
||||
b,d){a-=this.s.baseRowTop;d=d?this._domain("virtualToPhysical",this.s.baseScrollTop):this.s.baseScrollTop;d+=a*this.s.heights.row;return b||b===k?parseInt(d,10):d},scrollToRow:function(a,b){var d=this,f=!1,e=this.rowToPixels(a),g=a-(this.s.displayBuffer-1)/2*this.s.viewportRows;0>g&&(g=0);(e>this.s.redrawBottom||e<this.s.redrawTop)&&this.s.dt._iDisplayStart!==g&&(f=!0,e=this._domain("virtualToPhysical",a*this.s.heights.row),this.s.redrawTop<e&&e<this.s.redrawBottom&&(this.s.forceReposition=!0,b=!1));
|
||||
b===k||b?(this.s.ani=f,c(this.dom.scroller).animate({scrollTop:e},function(){setTimeout(function(){d.s.ani=!1},250)})):c(this.dom.scroller).scrollTop(e)},construct:function(){var a=this,b=this.s.dtApi;if(this.s.dt.oFeatures.bPaginate){this.dom.force.style.position="relative";this.dom.force.style.top="0px";this.dom.force.style.left="0px";this.dom.force.style.width="1px";this.dom.scroller=c("div."+this.s.dt.oClasses.sScrollBody,this.s.dt.nTableWrapper)[0];this.dom.scroller.appendChild(this.dom.force);
|
||||
this.dom.scroller.style.position="relative";this.dom.table=c(">table",this.dom.scroller)[0];this.dom.table.style.position="absolute";this.dom.table.style.top="0px";this.dom.table.style.left="0px";c(b.table().container()).addClass("dts DTS");this.s.loadingIndicator&&(this.dom.loader=c('<div class="dataTables_processing dts_loading">'+this.s.dt.oLanguage.sLoadingRecords+"</div>").css("display","none"),c(this.dom.scroller.parentNode).css("position","relative").append(this.dom.loader));this.dom.label.appendTo(this.dom.scroller);
|
||||
this.s.heights.row&&"auto"!=this.s.heights.row&&(this.s.autoHeight=!1);this.s.ingnoreScroll=!0;c(this.dom.scroller).on("scroll.dt-scroller",function(b){a._scroll.call(a)});c(this.dom.scroller).on("touchstart.dt-scroller",function(){a._scroll.call(a)});c(this.dom.scroller).on("mousedown.dt-scroller",function(){a.s.mousedown=!0}).on("mouseup.dt-scroller",function(){a.s.labelVisible=!1;a.s.mousedown=!1;a.dom.label.css("display","none")});c(e).on("resize.dt-scroller",function(){a.measure(!1);a._info()});
|
||||
var d=!0,f=b.state.loaded();b.on("stateSaveParams.scroller",function(b,c,e){d?(e.scroller=f.scroller,d=!1):e.scroller={topRow:a.s.topRowFloat,baseScrollTop:a.s.baseScrollTop,baseRowTop:a.s.baseRowTop,scrollTop:a.s.lastScrollTop}});f&&f.scroller&&(this.s.topRowFloat=f.scroller.topRow,this.s.baseScrollTop=f.scroller.baseScrollTop,this.s.baseRowTop=f.scroller.baseRowTop);this.measure(!1);a.s.stateSaveThrottle=a.s.dt.oApi._fnThrottle(function(){a.s.dtApi.state.save()},500);b.on("init.scroller",function(){a.measure(!1);
|
||||
a.s.scrollType="jump";a._draw();b.on("draw.scroller",function(){a._draw()})});b.on("preDraw.dt.scroller",function(){a._scrollForce()});b.on("destroy.scroller",function(){c(e).off("resize.dt-scroller");c(a.dom.scroller).off(".dt-scroller");c(a.s.dt.nTable).off(".scroller");c(a.s.dt.nTableWrapper).removeClass("DTS");c("div.DTS_Loading",a.dom.scroller.parentNode).remove();a.dom.table.style.position="";a.dom.table.style.top="";a.dom.table.style.left=""})}else this.s.dt.oApi._fnLog(this.s.dt,0,"Pagination must be enabled for Scroller")},
|
||||
_calcRowHeight:function(){var a=this.s.dt,b=a.nTable,d=b.cloneNode(!1),f=c("<tbody/>").appendTo(d),e=c('<div class="'+a.oClasses.sWrapper+' DTS"><div class="'+a.oClasses.sScrollWrapper+'"><div class="'+a.oClasses.sScrollBody+'"></div></div></div>');c("tbody tr:lt(4)",b).clone().appendTo(f);var g=c("tr",f).length;if(1===g)f.prepend("<tr><td> </td></tr>"),f.append("<tr><td> </td></tr>");else for(;3>g;g++)f.append("<tr><td> </td></tr>");c("div."+a.oClasses.sScrollBody,e).append(d);a=this.s.dt.nHolding||
|
||||
b.parentNode;c(a).is(":visible")||(a="body");e.find("input").removeAttr("name");e.appendTo(a);this.s.heights.row=c("tr",f).eq(1).outerHeight();e.remove()},_draw:function(){var a=this,b=this.s.heights,d=this.dom.scroller.scrollTop,f=c(this.s.dt.nTable).height(),e=this.s.dt._iDisplayStart,g=this.s.dt._iDisplayLength,k=this.s.dt.fnRecordsDisplay();this.s.skip=!0;!this.s.dt.bSorted&&!this.s.dt.bFiltered||0!==e||this.s.dt._drawHold||(this.s.topRowFloat=0);d="jump"===this.s.scrollType?this._domain("virtualToPhysical",
|
||||
this.s.topRowFloat*b.row):d;this.s.baseScrollTop=d;this.s.baseRowTop=this.s.topRowFloat;var h=d-(this.s.topRowFloat-e)*b.row;0===e?h=0:e+g>=k&&(h=b.scroll-f);this.dom.table.style.top=h+"px";this.s.tableTop=h;this.s.tableBottom=f+this.s.tableTop;f=(d-this.s.tableTop)*this.s.boundaryScale;this.s.redrawTop=d-f;this.s.redrawBottom=d+f>b.scroll-b.viewport-b.row?b.scroll-b.viewport-b.row:d+f;this.s.skip=!1;this.s.dt.oFeatures.bStateSave&&null!==this.s.dt.oLoadedState&&"undefined"!=typeof this.s.dt.oLoadedState.scroller?
|
||||
((b=!this.s.dt.sAjaxSource&&!a.s.dt.ajax||this.s.dt.oFeatures.bServerSide?!1:!0)&&2==this.s.dt.iDraw||!b&&1==this.s.dt.iDraw)&&setTimeout(function(){c(a.dom.scroller).scrollTop(a.s.dt.oLoadedState.scroller.scrollTop);setTimeout(function(){a.s.ingnoreScroll=!1},0)},0):a.s.ingnoreScroll=!1;this.s.dt.oFeatures.bInfo&&setTimeout(function(){a._info.call(a)},0);this.dom.loader&&this.s.loaderVisible&&(this.dom.loader.css("display","none"),this.s.loaderVisible=!1)},_domain:function(a,b){var d=this.s.heights;
|
||||
if(d.virtual===d.scroll||1E4>b)return b;if("virtualToPhysical"===a&&b>=d.virtual-1E4)return a=d.virtual-b,d.scroll-a;if("physicalToVirtual"===a&&b>=d.scroll-1E4)return a=d.scroll-b,d.virtual-a;d=(d.virtual-1E4-1E4)/(d.scroll-1E4-1E4);var c=1E4-1E4*d;return"virtualToPhysical"===a?(b-c)/d:d*b+c},_info:function(){if(this.s.dt.oFeatures.bInfo){var a=this.s.dt,b=a.oLanguage,d=this.dom.scroller.scrollTop,f=Math.floor(this.pixelsToRow(d,!1,this.s.ani)+1),e=a.fnRecordsTotal(),g=a.fnRecordsDisplay();d=Math.ceil(this.pixelsToRow(d+
|
||||
this.s.heights.viewport,!1,this.s.ani));d=g<d?g:d;var h=a.fnFormatNumber(f),k=a.fnFormatNumber(d),l=a.fnFormatNumber(e),m=a.fnFormatNumber(g);h=0===a.fnRecordsDisplay()&&a.fnRecordsDisplay()==a.fnRecordsTotal()?b.sInfoEmpty+b.sInfoPostFix:0===a.fnRecordsDisplay()?b.sInfoEmpty+" "+b.sInfoFiltered.replace("_MAX_",l)+b.sInfoPostFix:a.fnRecordsDisplay()==a.fnRecordsTotal()?b.sInfo.replace("_START_",h).replace("_END_",k).replace("_MAX_",l).replace("_TOTAL_",m)+b.sInfoPostFix:b.sInfo.replace("_START_",
|
||||
h).replace("_END_",k).replace("_MAX_",l).replace("_TOTAL_",m)+" "+b.sInfoFiltered.replace("_MAX_",a.fnFormatNumber(a.fnRecordsTotal()))+b.sInfoPostFix;(b=b.fnInfoCallback)&&(h=b.call(a.oInstance,a,f,d,e,g,h));f=a.aanFeatures.i;if("undefined"!=typeof f)for(e=0,g=f.length;e<g;e++)c(f[e]).html(h);c(a.nTable).triggerHandler("info.dt")}},_parseHeight:function(a){var b,d=/^([+-]?(?:\d+(?:\.\d+)?|\.\d+))(px|em|rem|vh)$/.exec(a);if(null===d)return 0;a=parseFloat(d[1]);d=d[2];"px"===d?b=a:"vh"===d?b=a/100*
|
||||
c(e).height():"rem"===d?b=a*parseFloat(c(":root").css("font-size")):"em"===d&&(b=a*parseFloat(c("body").css("font-size")));return b?b:0},_scroll:function(){var a=this,b=this.s.heights,d=this.dom.scroller.scrollTop;if(!this.s.skip&&!this.s.ingnoreScroll&&d!==this.s.lastScrollTop)if(this.s.dt.bFiltered||this.s.dt.bSorted)this.s.lastScrollTop=0;else{this._info();clearTimeout(this.s.stateTO);this.s.stateTO=setTimeout(function(){a.s.dtApi.state.save()},250);this.s.scrollType=Math.abs(d-this.s.lastScrollTop)>
|
||||
b.viewport?"jump":"cont";this.s.topRowFloat="cont"===this.s.scrollType?this.pixelsToRow(d,!1,!1):this._domain("physicalToVirtual",d)/b.row;0>this.s.topRowFloat&&(this.s.topRowFloat=0);if(this.s.forceReposition||d<this.s.redrawTop||d>this.s.redrawBottom){var f=Math.ceil((this.s.displayBuffer-1)/2*this.s.viewportRows);f=parseInt(this.s.topRowFloat,10)-f;this.s.forceReposition=!1;0>=f?f=0:f+this.s.dt._iDisplayLength>this.s.dt.fnRecordsDisplay()?(f=this.s.dt.fnRecordsDisplay()-this.s.dt._iDisplayLength,
|
||||
0>f&&(f=0)):0!==f%2&&f++;this.s.targetTop=f;f!=this.s.dt._iDisplayStart&&(this.s.tableTop=c(this.s.dt.nTable).offset().top,this.s.tableBottom=c(this.s.dt.nTable).height()+this.s.tableTop,f=function(){a.s.dt._iDisplayStart=a.s.targetTop;a.s.dt.oApi._fnDraw(a.s.dt)},this.s.dt.oFeatures.bServerSide?(this.s.forceReposition=!0,clearTimeout(this.s.drawTO),this.s.drawTO=setTimeout(f,this.s.serverWait)):f(),this.dom.loader&&!this.s.loaderVisible&&(this.dom.loader.css("display","block"),this.s.loaderVisible=
|
||||
!0))}else this.s.topRowFloat=this.pixelsToRow(d,!1,!0);this.s.lastScrollTop=d;this.s.stateSaveThrottle();"jump"===this.s.scrollType&&this.s.mousedown&&(this.s.labelVisible=!0);this.s.labelVisible&&this.dom.label.html(this.s.dt.fnFormatNumber(parseInt(this.s.topRowFloat,10)+1)).css("top",d+d*b.labelFactor).css("display","block")}},_scrollForce:function(){var a=this.s.heights;a.virtual=a.row*this.s.dt.fnRecordsDisplay();a.scroll=a.virtual;1E6<a.scroll&&(a.scroll=1E6);this.dom.force.style.height=a.scroll>
|
||||
this.s.heights.row?a.scroll+"px":this.s.heights.row+"px"}});h.defaults={boundaryScale:.5,displayBuffer:9,loadingIndicator:!1,rowHeight:"auto",serverWait:200};h.oDefaults=h.defaults;h.version="2.0.2";c(g).on("preInit.dt.dtscroller",function(a,b){if("dt"===a.namespace){a=b.oInit.scroller;var d=l.defaults.scroller;if(a||d)d=c.extend({},a,d),!1!==a&&new h(b,d)}});c.fn.dataTable.Scroller=h;c.fn.DataTable.Scroller=h;var m=c.fn.dataTable.Api;m.register("scroller()",function(){return this});m.register("scroller().rowToPixels()",
|
||||
function(a,b,d){var c=this.context;if(c.length&&c[0].oScroller)return c[0].oScroller.rowToPixels(a,b,d)});m.register("scroller().pixelsToRow()",function(a,b,d){var c=this.context;if(c.length&&c[0].oScroller)return c[0].oScroller.pixelsToRow(a,b,d)});m.register(["scroller().scrollToRow()","scroller.toPosition()"],function(a,b){this.iterator("table",function(d){d.oScroller&&d.oScroller.scrollToRow(a,b)});return this});m.register("row().scrollTo()",function(a){var b=this;this.iterator("row",function(d,
|
||||
c){d.oScroller&&(c=b.rows({order:"applied",search:"applied"}).indexes().indexOf(c),d.oScroller.scrollToRow(c,a))});return this});m.register("scroller.measure()",function(a){this.iterator("table",function(b){b.oScroller&&b.oScroller.measure(a)});return this});m.register("scroller.page()",function(){var a=this.context;if(a.length&&a[0].oScroller)return a[0].oScroller.pageInfo()});return h});
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+3
-6
File diff suppressed because one or more lines are too long
@@ -61,7 +61,8 @@
|
||||
If the caption data is user submitted or from some other untrusted source, then set this to true
|
||||
to prevent xss and other injection attacks.
|
||||
*/
|
||||
sanitizeTitle: false
|
||||
sanitizeTitle: false,
|
||||
onClose: function(){}//gnips
|
||||
};
|
||||
|
||||
Lightbox.prototype.option = function(options) {
|
||||
@@ -548,6 +549,10 @@
|
||||
if (this.options.disableScrolling) {
|
||||
$('body').removeClass('lb-disable-scrolling');
|
||||
}
|
||||
//gnips
|
||||
if ($.isFunction(this.options.onClose)) {
|
||||
this.options.onClose.call();
|
||||
}
|
||||
};
|
||||
|
||||
return new Lightbox();
|
||||
|
||||
+6
-4600
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
-3
@@ -49,11 +49,11 @@ var cPDF = function(url, options){
|
||||
var _proto = window.location.protocol + '//';
|
||||
var _src = _proto + FoniaJS.WEB_HOST + vars.url + '?' + (FoniaJS.RequestParam(vars.param)).join('&') + '#zoom='+vars.zoom+',0,0&page=1';
|
||||
var _wtxt =
|
||||
'<div class="modal fade" id="winAPPPDF" tabindex="-1" role="dialog" data-keyboard="false" data-show="false" data-backdrop="static" aria-labelledby="winAPPPDFLabel" aria-hidden="true">'+
|
||||
'<div class="modal fade" id="winAPPPDF" tabindex="-1" role="dialog" data-coreui-keyboard="false" data-coreui-show="false" data-coreui-backdrop="static" aria-labelledby="winAPPPDFLabel" aria-hidden="true">'+
|
||||
'<div class="modal-dialog modal-dialog-centered modal-fs" role="document">'+
|
||||
'<div class="modal-content">'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="winAPPPDFLabel">Preview PDF</h5><button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div>'+
|
||||
'<div class="modal-body mb-0 p-0"><div class="embed-responsive embed-responsive-21by9"><object class="embed-responsive-item" type="application/pdf" data="'+_src+'"><p>Tidak Mendukung Preview PDF</p></object></div></div>'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="winAPPPDFLabel">Preview PDF</h5><button class="btn-close" type="button" data-coreui-dismiss="modal" aria-label="Close"></button></div>'+
|
||||
'<div class="modal-body mb-0 p-0"><div class="ratio ratio-21x9"><object type="application/pdf" data="'+_src+'"><p>Tidak Mendukung Preview PDF</p></object></div></div>'+
|
||||
'</div></div></div>';
|
||||
if ($('#winAPPPDF')) $('#winAPPPDF').modal('dispose').remove();
|
||||
$(_wtxt).on('shown.coreui.modal', function(e){
|
||||
|
||||
@@ -1,519 +0,0 @@
|
||||
/*!
|
||||
* perfect-scrollbar v1.4.0
|
||||
* (c) 2018 Hyunje Jun
|
||||
* @license MIT
|
||||
*/
|
||||
! function(t, e) {
|
||||
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.PerfectScrollbar = e()
|
||||
}(this, function() {
|
||||
"use strict";
|
||||
|
||||
function t(t) {
|
||||
return getComputedStyle(t)
|
||||
}
|
||||
|
||||
function e(t, e) {
|
||||
for (var i in e) {
|
||||
var r = e[i];
|
||||
"number" == typeof r && (r += "px"), t.style[i] = r
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
function i(t) {
|
||||
var e = document.createElement("div");
|
||||
return e.className = t, e
|
||||
}
|
||||
|
||||
function r(t, e) {
|
||||
if (!v) throw new Error("No element matching method supported");
|
||||
return v.call(t, e)
|
||||
}
|
||||
|
||||
function l(t) {
|
||||
t.remove ? t.remove() : t.parentNode && t.parentNode.removeChild(t)
|
||||
}
|
||||
|
||||
function n(t, e) {
|
||||
return Array.prototype.filter.call(t.children, function(t) {
|
||||
return r(t, e)
|
||||
})
|
||||
}
|
||||
|
||||
function o(t, e) {
|
||||
var i = t.element.classList,
|
||||
r = m.state.scrolling(e);
|
||||
i.contains(r) ? clearTimeout(Y[e]) : i.add(r)
|
||||
}
|
||||
|
||||
function s(t, e) {
|
||||
Y[e] = setTimeout(function() {
|
||||
return t.isAlive && t.element.classList.remove(m.state.scrolling(e))
|
||||
}, t.settings.scrollingThreshold)
|
||||
}
|
||||
|
||||
function a(t, e) {
|
||||
o(t, e), s(t, e)
|
||||
}
|
||||
|
||||
function c(t) {
|
||||
if ("function" == typeof window.CustomEvent) return new CustomEvent(t);
|
||||
var e = document.createEvent("CustomEvent");
|
||||
return e.initCustomEvent(t, !1, !1, void 0), e
|
||||
}
|
||||
|
||||
function h(t, e, i, r, l) {
|
||||
var n = i[0],
|
||||
o = i[1],
|
||||
s = i[2],
|
||||
h = i[3],
|
||||
u = i[4],
|
||||
d = i[5];
|
||||
void 0 === r && (r = !0), void 0 === l && (l = !1);
|
||||
var f = t.element;
|
||||
t.reach[h] = null, f[s] < 1 && (t.reach[h] = "start"), f[s] > t[n] - t[o] - 1 && (t.reach[h] = "end"), e && (f.dispatchEvent(c("ps-scroll-" + h)), e < 0 ? f.dispatchEvent(c("ps-scroll-" + u)) : e > 0 && f.dispatchEvent(c("ps-scroll-" + d)), r && a(t, h)), t.reach[h] && (e || l) && f.dispatchEvent(c("ps-" + h + "-reach-" + t.reach[h]))
|
||||
}
|
||||
|
||||
function u(t) {
|
||||
return parseInt(t, 10) || 0
|
||||
}
|
||||
|
||||
function d(t) {
|
||||
return r(t, "input,[contenteditable]") || r(t, "select,[contenteditable]") || r(t, "textarea,[contenteditable]") || r(t, "button,[contenteditable]")
|
||||
}
|
||||
|
||||
function f(e) {
|
||||
var i = t(e);
|
||||
return u(i.width) + u(i.paddingLeft) + u(i.paddingRight) + u(i.borderLeftWidth) + u(i.borderRightWidth)
|
||||
}
|
||||
|
||||
function p(t, e) {
|
||||
return t.settings.minScrollbarLength && (e = Math.max(e, t.settings.minScrollbarLength)), t.settings.maxScrollbarLength && (e = Math.min(e, t.settings.maxScrollbarLength)), e
|
||||
}
|
||||
|
||||
function b(t, i) {
|
||||
var r = {
|
||||
width: i.railXWidth
|
||||
},
|
||||
l = Math.floor(t.scrollTop);
|
||||
i.isRtl ? r.left = i.negativeScrollAdjustment + t.scrollLeft + i.containerWidth - i.contentWidth : r.left = t.scrollLeft, i.isScrollbarXUsingBottom ? r.bottom = i.scrollbarXBottom - l : r.top = i.scrollbarXTop + l, e(i.scrollbarXRail, r);
|
||||
var n = {
|
||||
top: l,
|
||||
height: i.railYHeight
|
||||
};
|
||||
i.isScrollbarYUsingRight ? i.isRtl ? n.right = i.contentWidth - (i.negativeScrollAdjustment + t.scrollLeft) - i.scrollbarYRight - i.scrollbarYOuterWidth : n.right = i.scrollbarYRight - t.scrollLeft : i.isRtl ? n.left = i.negativeScrollAdjustment + t.scrollLeft + 2 * i.containerWidth - i.contentWidth - i.scrollbarYLeft - i.scrollbarYOuterWidth : n.left = i.scrollbarYLeft + t.scrollLeft, e(i.scrollbarYRail, n), e(i.scrollbarX, {
|
||||
left: i.scrollbarXLeft,
|
||||
width: i.scrollbarXWidth - i.railBorderXWidth
|
||||
}), e(i.scrollbarY, {
|
||||
top: i.scrollbarYTop,
|
||||
height: i.scrollbarYHeight - i.railBorderYWidth
|
||||
})
|
||||
}
|
||||
|
||||
function g(t, e) {
|
||||
function i(e) {
|
||||
b[d] = g + Y * (e[a] - v), o(t, f), R(t), e.stopPropagation(), e.preventDefault()
|
||||
}
|
||||
|
||||
function r() {
|
||||
s(t, f), t[p].classList.remove(m.state.clicking), t.event.unbind(t.ownerDocument, "mousemove", i)
|
||||
}
|
||||
var l = e[0],
|
||||
n = e[1],
|
||||
a = e[2],
|
||||
c = e[3],
|
||||
h = e[4],
|
||||
u = e[5],
|
||||
d = e[6],
|
||||
f = e[7],
|
||||
p = e[8],
|
||||
b = t.element,
|
||||
g = null,
|
||||
v = null,
|
||||
Y = null;
|
||||
t.event.bind(t[h], "mousedown", function(e) {
|
||||
g = b[d], v = e[a], Y = (t[n] - t[l]) / (t[c] - t[u]), t.event.bind(t.ownerDocument, "mousemove", i), t.event.once(t.ownerDocument, "mouseup", r), t[p].classList.add(m.state.clicking), e.stopPropagation(), e.preventDefault()
|
||||
})
|
||||
}
|
||||
var v = "undefined" != typeof Element && (Element.prototype.matches || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector),
|
||||
m = {
|
||||
main: "ps",
|
||||
element: {
|
||||
thumb: function(t) {
|
||||
return "ps__thumb-" + t
|
||||
},
|
||||
rail: function(t) {
|
||||
return "ps__rail-" + t
|
||||
},
|
||||
consuming: "ps__child--consume"
|
||||
},
|
||||
state: {
|
||||
focus: "ps--focus",
|
||||
clicking: "ps--clicking",
|
||||
active: function(t) {
|
||||
return "ps--active-" + t
|
||||
},
|
||||
scrolling: function(t) {
|
||||
return "ps--scrolling-" + t
|
||||
}
|
||||
}
|
||||
},
|
||||
Y = {
|
||||
x: null,
|
||||
y: null
|
||||
},
|
||||
X = function(t) {
|
||||
this.element = t, this.handlers = {}
|
||||
},
|
||||
w = {
|
||||
isEmpty: {
|
||||
configurable: !0
|
||||
}
|
||||
};
|
||||
X.prototype.bind = function(t, e) {
|
||||
void 0 === this.handlers[t] && (this.handlers[t] = []), this.handlers[t].push(e), this.element.addEventListener(t, e, !1)
|
||||
}, X.prototype.unbind = function(t, e) {
|
||||
var i = this;
|
||||
this.handlers[t] = this.handlers[t].filter(function(r) {
|
||||
return !(!e || r === e) || (i.element.removeEventListener(t, r, !1), !1)
|
||||
})
|
||||
}, X.prototype.unbindAll = function() {
|
||||
var t = this;
|
||||
for (var e in t.handlers) t.unbind(e)
|
||||
}, w.isEmpty.get = function() {
|
||||
var t = this;
|
||||
return Object.keys(this.handlers).every(function(e) {
|
||||
return 0 === t.handlers[e].length
|
||||
})
|
||||
}, Object.defineProperties(X.prototype, w);
|
||||
var y = function() {
|
||||
this.eventElements = []
|
||||
};
|
||||
y.prototype.eventElement = function(t) {
|
||||
var e = this.eventElements.filter(function(e) {
|
||||
return e.element === t
|
||||
})[0];
|
||||
return e || (e = new X(t), this.eventElements.push(e)), e
|
||||
}, y.prototype.bind = function(t, e, i) {
|
||||
this.eventElement(t).bind(e, i)
|
||||
}, y.prototype.unbind = function(t, e, i) {
|
||||
var r = this.eventElement(t);
|
||||
r.unbind(e, i), r.isEmpty && this.eventElements.splice(this.eventElements.indexOf(r), 1)
|
||||
}, y.prototype.unbindAll = function() {
|
||||
this.eventElements.forEach(function(t) {
|
||||
return t.unbindAll()
|
||||
}), this.eventElements = []
|
||||
}, y.prototype.once = function(t, e, i) {
|
||||
var r = this.eventElement(t),
|
||||
l = function(t) {
|
||||
r.unbind(e, l), i(t)
|
||||
};
|
||||
r.bind(e, l)
|
||||
};
|
||||
var W = function(t, e, i, r, l) {
|
||||
void 0 === r && (r = !0), void 0 === l && (l = !1);
|
||||
var n;
|
||||
if ("top" === e) n = ["contentHeight", "containerHeight", "scrollTop", "y", "up", "down"];
|
||||
else {
|
||||
if ("left" !== e) throw new Error("A proper axis should be provided");
|
||||
n = ["contentWidth", "containerWidth", "scrollLeft", "x", "left", "right"]
|
||||
}
|
||||
h(t, i, n, r, l)
|
||||
},
|
||||
L = {
|
||||
isWebKit: "undefined" != typeof document && "WebkitAppearance" in document.documentElement.style,
|
||||
supportsTouch: "undefined" != typeof window && ("ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch),
|
||||
supportsIePointer: "undefined" != typeof navigator && navigator.msMaxTouchPoints,
|
||||
isChrome: "undefined" != typeof navigator && /Chrome/i.test(navigator && navigator.userAgent)
|
||||
},
|
||||
R = function(t) {
|
||||
var e = t.element,
|
||||
i = Math.floor(e.scrollTop);
|
||||
t.containerWidth = e.clientWidth, t.containerHeight = e.clientHeight, t.contentWidth = e.scrollWidth, t.contentHeight = e.scrollHeight, e.contains(t.scrollbarXRail) || (n(e, m.element.rail("x")).forEach(function(t) {
|
||||
return l(t)
|
||||
}), e.appendChild(t.scrollbarXRail)), e.contains(t.scrollbarYRail) || (n(e, m.element.rail("y")).forEach(function(t) {
|
||||
return l(t)
|
||||
}), e.appendChild(t.scrollbarYRail)), !t.settings.suppressScrollX && t.containerWidth + t.settings.scrollXMarginOffset < t.contentWidth ? (t.scrollbarXActive = !0, t.railXWidth = t.containerWidth - t.railXMarginWidth, t.railXRatio = t.containerWidth / t.railXWidth, t.scrollbarXWidth = p(t, u(t.railXWidth * t.containerWidth / t.contentWidth)), t.scrollbarXLeft = u((t.negativeScrollAdjustment + e.scrollLeft) * (t.railXWidth - t.scrollbarXWidth) / (t.contentWidth - t.containerWidth))) : t.scrollbarXActive = !1, !t.settings.suppressScrollY && t.containerHeight + t.settings.scrollYMarginOffset < t.contentHeight ? (t.scrollbarYActive = !0, t.railYHeight = t.containerHeight - t.railYMarginHeight, t.railYRatio = t.containerHeight / t.railYHeight, t.scrollbarYHeight = p(t, u(t.railYHeight * t.containerHeight / t.contentHeight)), t.scrollbarYTop = u(i * (t.railYHeight - t.scrollbarYHeight) / (t.contentHeight - t.containerHeight))) : t.scrollbarYActive = !1, t.scrollbarXLeft >= t.railXWidth - t.scrollbarXWidth && (t.scrollbarXLeft = t.railXWidth - t.scrollbarXWidth), t.scrollbarYTop >= t.railYHeight - t.scrollbarYHeight && (t.scrollbarYTop = t.railYHeight - t.scrollbarYHeight), b(e, t), t.scrollbarXActive ? e.classList.add(m.state.active("x")) : (e.classList.remove(m.state.active("x")), t.scrollbarXWidth = 0, t.scrollbarXLeft = 0, e.scrollLeft = 0), t.scrollbarYActive ? e.classList.add(m.state.active("y")) : (e.classList.remove(m.state.active("y")), t.scrollbarYHeight = 0, t.scrollbarYTop = 0, e.scrollTop = 0)
|
||||
},
|
||||
T = {
|
||||
"click-rail": function(t) {
|
||||
t.event.bind(t.scrollbarY, "mousedown", function(t) {
|
||||
return t.stopPropagation()
|
||||
}), t.event.bind(t.scrollbarYRail, "mousedown", function(e) {
|
||||
var i = e.pageY - window.pageYOffset - t.scrollbarYRail.getBoundingClientRect().top > t.scrollbarYTop ? 1 : -1;
|
||||
t.element.scrollTop += i * t.containerHeight, R(t), e.stopPropagation()
|
||||
}), t.event.bind(t.scrollbarX, "mousedown", function(t) {
|
||||
return t.stopPropagation()
|
||||
}), t.event.bind(t.scrollbarXRail, "mousedown", function(e) {
|
||||
var i = e.pageX - window.pageXOffset - t.scrollbarXRail.getBoundingClientRect().left > t.scrollbarXLeft ? 1 : -1;
|
||||
t.element.scrollLeft += i * t.containerWidth, R(t), e.stopPropagation()
|
||||
})
|
||||
},
|
||||
"drag-thumb": function(t) {
|
||||
g(t, ["containerWidth", "contentWidth", "pageX", "railXWidth", "scrollbarX", "scrollbarXWidth", "scrollLeft", "x", "scrollbarXRail"]), g(t, ["containerHeight", "contentHeight", "pageY", "railYHeight", "scrollbarY", "scrollbarYHeight", "scrollTop", "y", "scrollbarYRail"])
|
||||
},
|
||||
keyboard: function(t) {
|
||||
function e(e, r) {
|
||||
var l = Math.floor(i.scrollTop);
|
||||
if (0 === e) {
|
||||
if (!t.scrollbarYActive) return !1;
|
||||
if (0 === l && r > 0 || l >= t.contentHeight - t.containerHeight && r < 0) return !t.settings.wheelPropagation
|
||||
}
|
||||
var n = i.scrollLeft;
|
||||
if (0 === r) {
|
||||
if (!t.scrollbarXActive) return !1;
|
||||
if (0 === n && e < 0 || n >= t.contentWidth - t.containerWidth && e > 0) return !t.settings.wheelPropagation
|
||||
}
|
||||
return !0
|
||||
}
|
||||
var i = t.element,
|
||||
l = function() {
|
||||
return r(i, ":hover")
|
||||
},
|
||||
n = function() {
|
||||
return r(t.scrollbarX, ":focus") || r(t.scrollbarY, ":focus")
|
||||
};
|
||||
t.event.bind(t.ownerDocument, "keydown", function(r) {
|
||||
if (!(r.isDefaultPrevented && r.isDefaultPrevented() || r.defaultPrevented) && (l() || n())) {
|
||||
var o = document.activeElement ? document.activeElement : t.ownerDocument.activeElement;
|
||||
if (o) {
|
||||
if ("IFRAME" === o.tagName) o = o.contentDocument.activeElement;
|
||||
else
|
||||
for (; o.shadowRoot;) o = o.shadowRoot.activeElement;
|
||||
if (d(o)) return
|
||||
}
|
||||
var s = 0,
|
||||
a = 0;
|
||||
switch (r.which) {
|
||||
case 37:
|
||||
s = r.metaKey ? -t.contentWidth : r.altKey ? -t.containerWidth : -30;
|
||||
break;
|
||||
case 38:
|
||||
a = r.metaKey ? t.contentHeight : r.altKey ? t.containerHeight : 30;
|
||||
break;
|
||||
case 39:
|
||||
s = r.metaKey ? t.contentWidth : r.altKey ? t.containerWidth : 30;
|
||||
break;
|
||||
case 40:
|
||||
a = r.metaKey ? -t.contentHeight : r.altKey ? -t.containerHeight : -30;
|
||||
break;
|
||||
case 32:
|
||||
a = r.shiftKey ? t.containerHeight : -t.containerHeight;
|
||||
break;
|
||||
case 33:
|
||||
a = t.containerHeight;
|
||||
break;
|
||||
case 34:
|
||||
a = -t.containerHeight;
|
||||
break;
|
||||
case 36:
|
||||
a = t.contentHeight;
|
||||
break;
|
||||
case 35:
|
||||
a = -t.contentHeight;
|
||||
break;
|
||||
default:
|
||||
return
|
||||
}
|
||||
t.settings.suppressScrollX && 0 !== s || t.settings.suppressScrollY && 0 !== a || (i.scrollTop -= a, i.scrollLeft += s, R(t), e(s, a) && r.preventDefault())
|
||||
}
|
||||
})
|
||||
},
|
||||
wheel: function(e) {
|
||||
function i(t, i) {
|
||||
var r = Math.floor(o.scrollTop),
|
||||
l = 0 === o.scrollTop,
|
||||
n = r + o.offsetHeight === o.scrollHeight,
|
||||
s = 0 === o.scrollLeft,
|
||||
a = o.scrollLeft + o.offsetWidth === o.scrollWidth;
|
||||
return !(Math.abs(i) > Math.abs(t) ? l || n : s || a) || !e.settings.wheelPropagation
|
||||
}
|
||||
|
||||
function r(t) {
|
||||
var e = t.deltaX,
|
||||
i = -1 * t.deltaY;
|
||||
return void 0 !== e && void 0 !== i || (e = -1 * t.wheelDeltaX / 6, i = t.wheelDeltaY / 6), t.deltaMode && 1 === t.deltaMode && (e *= 10, i *= 10), e !== e && i !== i && (e = 0, i = t.wheelDelta), t.shiftKey ? [-i, -e] : [e, i]
|
||||
}
|
||||
|
||||
function l(e, i, r) {
|
||||
if (!L.isWebKit && o.querySelector("select:focus")) return !0;
|
||||
if (!o.contains(e)) return !1;
|
||||
for (var l = e; l && l !== o;) {
|
||||
if (l.classList.contains(m.element.consuming)) return !0;
|
||||
var n = t(l);
|
||||
if ([n.overflow, n.overflowX, n.overflowY].join("").match(/(scroll|auto)/)) {
|
||||
var s = l.scrollHeight - l.clientHeight;
|
||||
if (s > 0 && !(0 === l.scrollTop && r > 0 || l.scrollTop === s && r < 0)) return !0;
|
||||
var a = l.scrollWidth - l.clientWidth;
|
||||
if (a > 0 && !(0 === l.scrollLeft && i < 0 || l.scrollLeft === a && i > 0)) return !0
|
||||
}
|
||||
l = l.parentNode
|
||||
}
|
||||
return !1
|
||||
}
|
||||
|
||||
function n(t) {
|
||||
var n = r(t),
|
||||
s = n[0],
|
||||
a = n[1];
|
||||
if (!l(t.target, s, a)) {
|
||||
var c = !1;
|
||||
e.settings.useBothWheelAxes ? e.scrollbarYActive && !e.scrollbarXActive ? (a ? o.scrollTop -= a * e.settings.wheelSpeed : o.scrollTop += s * e.settings.wheelSpeed, c = !0) : e.scrollbarXActive && !e.scrollbarYActive && (s ? o.scrollLeft += s * e.settings.wheelSpeed : o.scrollLeft -= a * e.settings.wheelSpeed, c = !0) : (o.scrollTop -= a * e.settings.wheelSpeed, o.scrollLeft += s * e.settings.wheelSpeed), R(e), (c = c || i(s, a)) && !t.ctrlKey && (t.stopPropagation(), t.preventDefault())
|
||||
}
|
||||
}
|
||||
var o = e.element;
|
||||
void 0 !== window.onwheel ? e.event.bind(o, "wheel", n) : void 0 !== window.onmousewheel && e.event.bind(o, "mousewheel", n)
|
||||
},
|
||||
touch: function(e) {
|
||||
function i(t, i) {
|
||||
var r = Math.floor(h.scrollTop),
|
||||
l = h.scrollLeft,
|
||||
n = Math.abs(t),
|
||||
o = Math.abs(i);
|
||||
if (o > n) {
|
||||
if (i < 0 && r === e.contentHeight - e.containerHeight || i > 0 && 0 === r) return 0 === window.scrollY && i > 0 && L.isChrome
|
||||
} else if (n > o && (t < 0 && l === e.contentWidth - e.containerWidth || t > 0 && 0 === l)) return !0;
|
||||
return !0
|
||||
}
|
||||
|
||||
function r(t, i) {
|
||||
h.scrollTop -= i, h.scrollLeft -= t, R(e)
|
||||
}
|
||||
|
||||
function l(t) {
|
||||
return t.targetTouches ? t.targetTouches[0] : t
|
||||
}
|
||||
|
||||
function n(t) {
|
||||
return !(t.pointerType && "pen" === t.pointerType && 0 === t.buttons || (!t.targetTouches || 1 !== t.targetTouches.length) && (!t.pointerType || "mouse" === t.pointerType || t.pointerType === t.MSPOINTER_TYPE_MOUSE))
|
||||
}
|
||||
|
||||
function o(t) {
|
||||
if (n(t)) {
|
||||
var e = l(t);
|
||||
u.pageX = e.pageX, u.pageY = e.pageY, d = (new Date).getTime(), null !== p && clearInterval(p)
|
||||
}
|
||||
}
|
||||
|
||||
function s(e, i, r) {
|
||||
if (!h.contains(e)) return !1;
|
||||
for (var l = e; l && l !== h;) {
|
||||
if (l.classList.contains(m.element.consuming)) return !0;
|
||||
var n = t(l);
|
||||
if ([n.overflow, n.overflowX, n.overflowY].join("").match(/(scroll|auto)/)) {
|
||||
var o = l.scrollHeight - l.clientHeight;
|
||||
if (o > 0 && !(0 === l.scrollTop && r > 0 || l.scrollTop === o && r < 0)) return !0;
|
||||
var s = l.scrollLeft - l.clientWidth;
|
||||
if (s > 0 && !(0 === l.scrollLeft && i < 0 || l.scrollLeft === s && i > 0)) return !0
|
||||
}
|
||||
l = l.parentNode
|
||||
}
|
||||
return !1
|
||||
}
|
||||
|
||||
function a(t) {
|
||||
if (n(t)) {
|
||||
var e = l(t),
|
||||
o = {
|
||||
pageX: e.pageX,
|
||||
pageY: e.pageY
|
||||
},
|
||||
a = o.pageX - u.pageX,
|
||||
c = o.pageY - u.pageY;
|
||||
if (s(t.target, a, c)) return;
|
||||
r(a, c), u = o;
|
||||
var h = (new Date).getTime(),
|
||||
p = h - d;
|
||||
p > 0 && (f.x = a / p, f.y = c / p, d = h), i(a, c) && t.preventDefault()
|
||||
}
|
||||
}
|
||||
|
||||
function c() {
|
||||
e.settings.swipeEasing && (clearInterval(p), p = setInterval(function() {
|
||||
e.isInitialized ? clearInterval(p) : f.x || f.y ? Math.abs(f.x) < .01 && Math.abs(f.y) < .01 ? clearInterval(p) : (r(30 * f.x, 30 * f.y), f.x *= .8, f.y *= .8) : clearInterval(p)
|
||||
}, 10))
|
||||
}
|
||||
if (L.supportsTouch || L.supportsIePointer) {
|
||||
var h = e.element,
|
||||
u = {},
|
||||
d = 0,
|
||||
f = {},
|
||||
p = null;
|
||||
L.supportsTouch ? (e.event.bind(h, "touchstart", o), e.event.bind(h, "touchmove", a), e.event.bind(h, "touchend", c)) : L.supportsIePointer && (window.PointerEvent ? (e.event.bind(h, "pointerdown", o), e.event.bind(h, "pointermove", a), e.event.bind(h, "pointerup", c)) : window.MSPointerEvent && (e.event.bind(h, "MSPointerDown", o), e.event.bind(h, "MSPointerMove", a), e.event.bind(h, "MSPointerUp", c)))
|
||||
}
|
||||
}
|
||||
},
|
||||
H = function(r, l) {
|
||||
var n = this;
|
||||
if (void 0 === l && (l = {}), "string" == typeof r && (r = document.querySelector(r)), !r || !r.nodeName) throw new Error("no element is specified to initialize PerfectScrollbar");
|
||||
this.element = r, r.classList.add(m.main), this.settings = {
|
||||
handlers: ["click-rail", "drag-thumb", "keyboard", "wheel", "touch"],
|
||||
maxScrollbarLength: null,
|
||||
minScrollbarLength: null,
|
||||
scrollingThreshold: 1e3,
|
||||
scrollXMarginOffset: 0,
|
||||
scrollYMarginOffset: 0,
|
||||
suppressScrollX: !1,
|
||||
suppressScrollY: !1,
|
||||
swipeEasing: !0,
|
||||
useBothWheelAxes: !1,
|
||||
wheelPropagation: !0,
|
||||
wheelSpeed: 1
|
||||
};
|
||||
for (var o in l) n.settings[o] = l[o];
|
||||
this.containerWidth = null, this.containerHeight = null, this.contentWidth = null, this.contentHeight = null;
|
||||
var s = function() {
|
||||
return r.classList.add(m.state.focus)
|
||||
},
|
||||
a = function() {
|
||||
return r.classList.remove(m.state.focus)
|
||||
};
|
||||
this.isRtl = "rtl" === t(r).direction, this.isNegativeScroll = function() {
|
||||
var t = r.scrollLeft,
|
||||
e = null;
|
||||
return r.scrollLeft = -1, e = r.scrollLeft < 0, r.scrollLeft = t, e
|
||||
}(), this.negativeScrollAdjustment = this.isNegativeScroll ? r.scrollWidth - r.clientWidth : 0, this.event = new y, this.ownerDocument = r.ownerDocument || document, this.scrollbarXRail = i(m.element.rail("x")), r.appendChild(this.scrollbarXRail), this.scrollbarX = i(m.element.thumb("x")), this.scrollbarXRail.appendChild(this.scrollbarX), this.scrollbarX.setAttribute("tabindex", 0), this.event.bind(this.scrollbarX, "focus", s), this.event.bind(this.scrollbarX, "blur", a), this.scrollbarXActive = null, this.scrollbarXWidth = null, this.scrollbarXLeft = null;
|
||||
var c = t(this.scrollbarXRail);
|
||||
this.scrollbarXBottom = parseInt(c.bottom, 10), isNaN(this.scrollbarXBottom) ? (this.isScrollbarXUsingBottom = !1, this.scrollbarXTop = u(c.top)) : this.isScrollbarXUsingBottom = !0, this.railBorderXWidth = u(c.borderLeftWidth) + u(c.borderRightWidth), e(this.scrollbarXRail, {
|
||||
display: "block"
|
||||
}), this.railXMarginWidth = u(c.marginLeft) + u(c.marginRight), e(this.scrollbarXRail, {
|
||||
display: ""
|
||||
}), this.railXWidth = null, this.railXRatio = null, this.scrollbarYRail = i(m.element.rail("y")), r.appendChild(this.scrollbarYRail), this.scrollbarY = i(m.element.thumb("y")), this.scrollbarYRail.appendChild(this.scrollbarY), this.scrollbarY.setAttribute("tabindex", 0), this.event.bind(this.scrollbarY, "focus", s), this.event.bind(this.scrollbarY, "blur", a), this.scrollbarYActive = null, this.scrollbarYHeight = null, this.scrollbarYTop = null;
|
||||
var h = t(this.scrollbarYRail);
|
||||
this.scrollbarYRight = parseInt(h.right, 10), isNaN(this.scrollbarYRight) ? (this.isScrollbarYUsingRight = !1, this.scrollbarYLeft = u(h.left)) : this.isScrollbarYUsingRight = !0, this.scrollbarYOuterWidth = this.isRtl ? f(this.scrollbarY) : null, this.railBorderYWidth = u(h.borderTopWidth) + u(h.borderBottomWidth), e(this.scrollbarYRail, {
|
||||
display: "block"
|
||||
}), this.railYMarginHeight = u(h.marginTop) + u(h.marginBottom), e(this.scrollbarYRail, {
|
||||
display: ""
|
||||
}), this.railYHeight = null, this.railYRatio = null, this.reach = {
|
||||
x: r.scrollLeft <= 0 ? "start" : r.scrollLeft >= this.contentWidth - this.containerWidth ? "end" : null,
|
||||
y: r.scrollTop <= 0 ? "start" : r.scrollTop >= this.contentHeight - this.containerHeight ? "end" : null
|
||||
}, this.isAlive = !0, this.settings.handlers.forEach(function(t) {
|
||||
return T[t](n)
|
||||
}), this.lastScrollTop = Math.floor(r.scrollTop), this.lastScrollLeft = r.scrollLeft, this.event.bind(this.element, "scroll", function(t) {
|
||||
return n.onScroll(t)
|
||||
}), R(this)
|
||||
};
|
||||
return H.prototype.update = function() {
|
||||
this.isAlive && (this.negativeScrollAdjustment = this.isNegativeScroll ? this.element.scrollWidth - this.element.clientWidth : 0, e(this.scrollbarXRail, {
|
||||
display: "block"
|
||||
}), e(this.scrollbarYRail, {
|
||||
display: "block"
|
||||
}), this.railXMarginWidth = u(t(this.scrollbarXRail).marginLeft) + u(t(this.scrollbarXRail).marginRight), this.railYMarginHeight = u(t(this.scrollbarYRail).marginTop) + u(t(this.scrollbarYRail).marginBottom), e(this.scrollbarXRail, {
|
||||
display: "none"
|
||||
}), e(this.scrollbarYRail, {
|
||||
display: "none"
|
||||
}), R(this), W(this, "top", 0, !1, !0), W(this, "left", 0, !1, !0), e(this.scrollbarXRail, {
|
||||
display: ""
|
||||
}), e(this.scrollbarYRail, {
|
||||
display: ""
|
||||
}))
|
||||
}, H.prototype.onScroll = function(t) {
|
||||
this.isAlive && (R(this), W(this, "top", this.element.scrollTop - this.lastScrollTop), W(this, "left", this.element.scrollLeft - this.lastScrollLeft), this.lastScrollTop = Math.floor(this.element.scrollTop), this.lastScrollLeft = this.element.scrollLeft)
|
||||
}, H.prototype.destroy = function() {
|
||||
this.isAlive && (this.event.unbindAll(), l(this.scrollbarX), l(this.scrollbarY), l(this.scrollbarXRail), l(this.scrollbarYRail), this.removePsClasses(), this.element = null, this.scrollbarX = null, this.scrollbarY = null, this.scrollbarXRail = null, this.scrollbarYRail = null, this.isAlive = !1)
|
||||
}, H.prototype.removePsClasses = function() {
|
||||
this.element.className = this.element.className.split(" ").filter(function(t) {
|
||||
return !t.match(/^ps([-_].+|)$/)
|
||||
}).join(" ")
|
||||
}, H
|
||||
});
|
||||
File diff suppressed because one or more lines are too long
+2
-2
@@ -65,10 +65,10 @@ var cPRINTER = function(url, options){
|
||||
return false;
|
||||
}
|
||||
var _wtxt =
|
||||
'<div class="modal fade" id="winAPPPrint" tabindex="-1" role="dialog" data-keyboard="false" data-show="false" data-backdrop="static" aria-labelledby="winAPPPrintLabel" aria-hidden="true">'+
|
||||
'<div class="modal fade" id="winAPPPrint" tabindex="-1" role="dialog" data-coreui-keyboard="false" data-coreui-show="false" data-coreui-backdrop="static" aria-labelledby="winAPPPrintLabel" aria-hidden="true">'+
|
||||
'<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-fs" role="document">'+
|
||||
'<div class="modal-content">'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="winAPPPrintLabel">Preview Laporan</h5><div class="ml-auto"><button class="btn btn-cetak" id="tombCetak" type="button" aria-label="Cetak"><i class="cui-print"></i><span aria-hidden="true"> Cetak</span></button><button class="btn btn-cetak" type="button" data-dismiss="modal" aria-label="Tutup"><i class="cui-x"></i><span aria-hidden="true"> Tutup</span></button></div></div>'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="winAPPPrintLabel">Preview Laporan</h5><div class="ml-auto"><button class="btn btn-cetak" id="tombCetak" type="button" aria-label="Cetak"><i class="cui-print"></i><span aria-hidden="true"> Cetak</span></button><button class="btn btn-cetak" type="button" data-coreui-dismiss="modal" aria-label="Tutup"><i class="cui-x"></i><span aria-hidden="true"> Tutup</span></button></div></div>'+
|
||||
'<div class="modal-body print-body" id="divPrintP">'+txt+'</div>'+
|
||||
'</div></div></div>';
|
||||
if ($('#winAPPPrint')) $('#winAPPPrint').modal('dispose').remove();
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Vendored
+2
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,9 @@
|
||||
Desc. : JS Class Simulator Data dalam Code
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : March 18th, 2021.
|
||||
Last Modified : April 9th, 2021.
|
||||
Last Modified : April 5th, 2022.
|
||||
|
||||
(c) 2021, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2021 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
@@ -43,10 +43,10 @@ var cSIMULATOR = function(url, options){
|
||||
_divd += '<div class="sim-code px-2 py-2 mb-1 border border-info">' + data[no] + '</div>';
|
||||
}
|
||||
var _wtxt =
|
||||
'<div class="modal fade" id="winAPPSim" tabindex="-1" role="dialog" data-keyboard="false" data-show="false" data-backdrop="static" aria-labelledby="winAPPSimLabel" aria-hidden="true">'+
|
||||
'<div class="modal fade" id="winAPPSim" tabindex="-1" role="dialog" data-coreui-keyboard="false" data-coreui-show="false" data-coreui-backdrop="static" aria-labelledby="winAPPSimLabel" aria-hidden="true">'+
|
||||
'<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-fs" role="document">'+
|
||||
'<div class="modal-content">'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="winAPPSimLabel">Code Simulator</h5><div class="ml-auto"><button class="btn btn-cetak" id="tombSalin" type="button" aria-label="Salin Semua"><i class="cui-copy"></i><span aria-hidden="true"> Salin Semua</span></button><button class="btn btn-cetak" type="button" data-dismiss="modal" aria-label="Tutup"><i class="cui-x"></i><span aria-hidden="true"> Tutup</span></button></div></div>'+
|
||||
'<div class="modal-header"><h5 class="modal-title" id="winAPPSimLabel">Code Simulator</h5><div class="ml-auto"><button class="btn btn-cetak" id="tombSalin" type="button" aria-label="Salin Semua"><i class="icon cui-copy"></i><span aria-hidden="true"> Salin Semua</span></button><button class="btn btn-cetak" type="button" data-coreui-dismiss="modal" aria-label="Tutup"><i class="icon cui-x"></i><span aria-hidden="true"> Tutup</span></button></div></div>'+
|
||||
'<div class="modal-body">'+_divd+'</div>'+
|
||||
'</div></div></div>';
|
||||
if ($('#winAPPSim')) $('#winAPPSim').modal('dispose').remove();
|
||||
|
||||
@@ -1,442 +0,0 @@
|
||||
(function(define) {
|
||||
define(['jquery'], function($) {
|
||||
return (function() {
|
||||
var $container;
|
||||
var listener;
|
||||
var toastId = 0;
|
||||
var toastType = {
|
||||
error: 'error',
|
||||
info: 'info',
|
||||
success: 'success',
|
||||
warning: 'warning'
|
||||
};
|
||||
var toastr = {
|
||||
clear: clear,
|
||||
remove: remove,
|
||||
error: error,
|
||||
getContainer: getContainer,
|
||||
info: info,
|
||||
options: {},
|
||||
subscribe: subscribe,
|
||||
success: success,
|
||||
version: '2.1.4',
|
||||
warning: warning
|
||||
};
|
||||
var previousToast;
|
||||
return toastr;
|
||||
|
||||
function error(message, title, optionsOverride) {
|
||||
return notify({
|
||||
type: toastType.error,
|
||||
iconClass: getOptions().iconClasses.error,
|
||||
message: message,
|
||||
optionsOverride: optionsOverride,
|
||||
title: title
|
||||
});
|
||||
}
|
||||
|
||||
function getContainer(options, create) {
|
||||
if (!options) {
|
||||
options = getOptions();
|
||||
}
|
||||
$container = $('#' + options.containerId);
|
||||
if ($container.length) {
|
||||
return $container;
|
||||
}
|
||||
if (create) {
|
||||
$container = createContainer(options);
|
||||
}
|
||||
return $container;
|
||||
}
|
||||
|
||||
function info(message, title, optionsOverride) {
|
||||
return notify({
|
||||
type: toastType.info,
|
||||
iconClass: getOptions().iconClasses.info,
|
||||
message: message,
|
||||
optionsOverride: optionsOverride,
|
||||
title: title
|
||||
});
|
||||
}
|
||||
|
||||
function subscribe(callback) {
|
||||
listener = callback;
|
||||
}
|
||||
|
||||
function success(message, title, optionsOverride) {
|
||||
return notify({
|
||||
type: toastType.success,
|
||||
iconClass: getOptions().iconClasses.success,
|
||||
message: message,
|
||||
optionsOverride: optionsOverride,
|
||||
title: title
|
||||
});
|
||||
}
|
||||
|
||||
function warning(message, title, optionsOverride) {
|
||||
return notify({
|
||||
type: toastType.warning,
|
||||
iconClass: getOptions().iconClasses.warning,
|
||||
message: message,
|
||||
optionsOverride: optionsOverride,
|
||||
title: title
|
||||
});
|
||||
}
|
||||
|
||||
function clear($toastElement, clearOptions) {
|
||||
var options = getOptions();
|
||||
if (!$container) {
|
||||
getContainer(options);
|
||||
}
|
||||
if (!clearToast($toastElement, options, clearOptions)) {
|
||||
clearContainer(options);
|
||||
}
|
||||
}
|
||||
|
||||
function remove($toastElement) {
|
||||
var options = getOptions();
|
||||
if (!$container) {
|
||||
getContainer(options);
|
||||
}
|
||||
if ($toastElement && $(':focus', $toastElement).length === 0) {
|
||||
removeToast($toastElement);
|
||||
return;
|
||||
}
|
||||
if ($container.children().length) {
|
||||
$container.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function clearContainer(options) {
|
||||
var toastsToClear = $container.children();
|
||||
for (var i = toastsToClear.length - 1; i >= 0; i--) {
|
||||
clearToast($(toastsToClear[i]), options);
|
||||
}
|
||||
}
|
||||
|
||||
function clearToast($toastElement, options, clearOptions) {
|
||||
var force = clearOptions && clearOptions.force ? clearOptions.force : false;
|
||||
if ($toastElement && (force || $(':focus', $toastElement).length === 0)) {
|
||||
$toastElement[options.hideMethod]({
|
||||
duration: options.hideDuration,
|
||||
easing: options.hideEasing,
|
||||
complete: function() {
|
||||
removeToast($toastElement);
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function createContainer(options) {
|
||||
$container = $('<div/>').attr('id', options.containerId).addClass(options.positionClass);
|
||||
$container.appendTo($(options.target));
|
||||
return $container;
|
||||
}
|
||||
|
||||
function getDefaults() {
|
||||
return {
|
||||
tapToDismiss: true,
|
||||
toastClass: 'toast',
|
||||
containerId: 'toast-container',
|
||||
debug: false,
|
||||
showMethod: 'fadeIn',
|
||||
showDuration: 300,
|
||||
showEasing: 'swing',
|
||||
onShown: undefined,
|
||||
hideMethod: 'fadeOut',
|
||||
hideDuration: 1000,
|
||||
hideEasing: 'swing',
|
||||
onHidden: undefined,
|
||||
closeMethod: false,
|
||||
closeDuration: false,
|
||||
closeEasing: false,
|
||||
closeOnHover: true,
|
||||
extendedTimeOut: 1000,
|
||||
iconClasses: {
|
||||
error: 'toast-error',
|
||||
info: 'toast-info',
|
||||
success: 'toast-success',
|
||||
warning: 'toast-warning'
|
||||
},
|
||||
iconClass: 'toast-info',
|
||||
positionClass: 'toast-top-right',
|
||||
timeOut: 5000,
|
||||
titleClass: 'toast-title',
|
||||
messageClass: 'toast-message',
|
||||
escapeHtml: false,
|
||||
target: 'body',
|
||||
closeHtml: '<button type="button">×</button>',
|
||||
closeClass: 'toast-close-button',
|
||||
newestOnTop: true,
|
||||
preventDuplicates: false,
|
||||
progressBar: false,
|
||||
progressClass: 'toast-progress',
|
||||
rtl: false
|
||||
};
|
||||
}
|
||||
|
||||
function publish(args) {
|
||||
if (!listener) {
|
||||
return;
|
||||
}
|
||||
listener(args);
|
||||
}
|
||||
|
||||
function notify(map) {
|
||||
var options = getOptions();
|
||||
var iconClass = map.iconClass || options.iconClass;
|
||||
if (typeof(map.optionsOverride) !== 'undefined') {
|
||||
options = $.extend(options, map.optionsOverride);
|
||||
iconClass = map.optionsOverride.iconClass || iconClass;
|
||||
}
|
||||
if (shouldExit(options, map)) {
|
||||
return;
|
||||
}
|
||||
toastId++;
|
||||
$container = getContainer(options, true);
|
||||
var intervalId = null;
|
||||
var $toastElement = $('<div/>');
|
||||
var $titleElement = $('<div/>');
|
||||
var $messageElement = $('<div/>');
|
||||
var $progressElement = $('<div/>');
|
||||
var $closeElement = $(options.closeHtml);
|
||||
var progressBar = {
|
||||
intervalId: null,
|
||||
hideEta: null,
|
||||
maxHideTime: null
|
||||
};
|
||||
var response = {
|
||||
toastId: toastId,
|
||||
state: 'visible',
|
||||
startTime: new Date(),
|
||||
options: options,
|
||||
map: map
|
||||
};
|
||||
personalizeToast();
|
||||
displayToast();
|
||||
handleEvents();
|
||||
publish(response);
|
||||
if (options.debug && console) {
|
||||
console.log(response);
|
||||
}
|
||||
return $toastElement;
|
||||
|
||||
function escapeHtml(source) {
|
||||
if (source == null) {
|
||||
source = '';
|
||||
}
|
||||
return source.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>');
|
||||
}
|
||||
|
||||
function personalizeToast() {
|
||||
setIcon();
|
||||
setTitle();
|
||||
setMessage();
|
||||
setCloseButton();
|
||||
setProgressBar();
|
||||
setRTL();
|
||||
setSequence();
|
||||
setAria();
|
||||
}
|
||||
|
||||
function setAria() {
|
||||
var ariaValue = '';
|
||||
switch (map.iconClass) {
|
||||
case 'toast-success':
|
||||
case 'toast-info':
|
||||
ariaValue = 'polite';
|
||||
break;
|
||||
default:
|
||||
ariaValue = 'assertive';
|
||||
}
|
||||
$toastElement.attr('aria-live', ariaValue);
|
||||
}
|
||||
|
||||
function handleEvents() {
|
||||
if (options.closeOnHover) {
|
||||
$toastElement.hover(stickAround, delayedHideToast);
|
||||
}
|
||||
if (!options.onclick && options.tapToDismiss) {
|
||||
$toastElement.click(hideToast);
|
||||
}
|
||||
if (options.closeButton && $closeElement) {
|
||||
$closeElement.click(function(event) {
|
||||
if (event.stopPropagation) {
|
||||
event.stopPropagation();
|
||||
} else if (event.cancelBubble !== undefined && event.cancelBubble !== true) {
|
||||
event.cancelBubble = true;
|
||||
}
|
||||
if (options.onCloseClick) {
|
||||
options.onCloseClick(event);
|
||||
}
|
||||
hideToast(true);
|
||||
});
|
||||
}
|
||||
if (options.onclick) {
|
||||
$toastElement.click(function(event) {
|
||||
options.onclick(event);
|
||||
hideToast();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function displayToast() {
|
||||
$toastElement.hide();
|
||||
$toastElement[options.showMethod]({
|
||||
duration: options.showDuration,
|
||||
easing: options.showEasing,
|
||||
complete: options.onShown
|
||||
});
|
||||
if (options.timeOut > 0) {
|
||||
intervalId = setTimeout(hideToast, options.timeOut);
|
||||
progressBar.maxHideTime = parseFloat(options.timeOut);
|
||||
progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime;
|
||||
if (options.progressBar) {
|
||||
progressBar.intervalId = setInterval(updateProgress, 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setIcon() {
|
||||
if (map.iconClass) {
|
||||
$toastElement.addClass(options.toastClass).addClass(iconClass);
|
||||
}
|
||||
}
|
||||
|
||||
function setSequence() {
|
||||
if (options.newestOnTop) {
|
||||
$container.prepend($toastElement);
|
||||
} else {
|
||||
$container.append($toastElement);
|
||||
}
|
||||
}
|
||||
|
||||
function setTitle() {
|
||||
if (map.title) {
|
||||
var suffix = map.title;
|
||||
if (options.escapeHtml) {
|
||||
suffix = escapeHtml(map.title);
|
||||
}
|
||||
$titleElement.append(suffix).addClass(options.titleClass);
|
||||
$toastElement.append($titleElement);
|
||||
}
|
||||
}
|
||||
|
||||
function setMessage() {
|
||||
if (map.message) {
|
||||
var suffix = map.message;
|
||||
if (options.escapeHtml) {
|
||||
suffix = escapeHtml(map.message);
|
||||
}
|
||||
$messageElement.append(suffix).addClass(options.messageClass);
|
||||
$toastElement.append($messageElement);
|
||||
}
|
||||
}
|
||||
|
||||
function setCloseButton() {
|
||||
if (options.closeButton) {
|
||||
$closeElement.addClass(options.closeClass).attr('role', 'button');
|
||||
$toastElement.prepend($closeElement);
|
||||
}
|
||||
}
|
||||
|
||||
function setProgressBar() {
|
||||
if (options.progressBar) {
|
||||
$progressElement.addClass(options.progressClass);
|
||||
$toastElement.prepend($progressElement);
|
||||
}
|
||||
}
|
||||
|
||||
function setRTL() {
|
||||
if (options.rtl) {
|
||||
$toastElement.addClass('rtl');
|
||||
}
|
||||
}
|
||||
|
||||
function shouldExit(options, map) {
|
||||
if (options.preventDuplicates) {
|
||||
if (map.message === previousToast) {
|
||||
return true;
|
||||
} else {
|
||||
previousToast = map.message;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function hideToast(override) {
|
||||
var method = override && options.closeMethod !== false ? options.closeMethod : options.hideMethod;
|
||||
var duration = override && options.closeDuration !== false ? options.closeDuration : options.hideDuration;
|
||||
var easing = override && options.closeEasing !== false ? options.closeEasing : options.hideEasing;
|
||||
if ($(':focus', $toastElement).length && !override) {
|
||||
return;
|
||||
}
|
||||
clearTimeout(progressBar.intervalId);
|
||||
return $toastElement[method]({
|
||||
duration: duration,
|
||||
easing: easing,
|
||||
complete: function() {
|
||||
removeToast($toastElement);
|
||||
clearTimeout(intervalId);
|
||||
if (options.onHidden && response.state !== 'hidden') {
|
||||
options.onHidden();
|
||||
}
|
||||
response.state = 'hidden';
|
||||
response.endTime = new Date();
|
||||
publish(response);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function delayedHideToast() {
|
||||
if (options.timeOut > 0 || options.extendedTimeOut > 0) {
|
||||
intervalId = setTimeout(hideToast, options.extendedTimeOut);
|
||||
progressBar.maxHideTime = parseFloat(options.extendedTimeOut);
|
||||
progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime;
|
||||
}
|
||||
}
|
||||
|
||||
function stickAround() {
|
||||
clearTimeout(intervalId);
|
||||
progressBar.hideEta = 0;
|
||||
$toastElement.stop(true, true)[options.showMethod]({
|
||||
duration: options.showDuration,
|
||||
easing: options.showEasing
|
||||
});
|
||||
}
|
||||
|
||||
function updateProgress() {
|
||||
var percentage = ((progressBar.hideEta - (new Date().getTime())) / progressBar.maxHideTime) * 100;
|
||||
$progressElement.width(percentage + '%');
|
||||
}
|
||||
}
|
||||
|
||||
function getOptions() {
|
||||
return $.extend({}, getDefaults(), toastr.options);
|
||||
}
|
||||
|
||||
function removeToast($toastElement) {
|
||||
if (!$container) {
|
||||
$container = getContainer();
|
||||
}
|
||||
if ($toastElement.is(':visible')) {
|
||||
return;
|
||||
}
|
||||
$toastElement.remove();
|
||||
$toastElement = null;
|
||||
if ($container.children().length === 0) {
|
||||
$container.remove();
|
||||
previousToast = undefined;
|
||||
}
|
||||
}
|
||||
})();
|
||||
});
|
||||
}(typeof define === 'function' && define.amd ? define : function(deps, factory) {
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = factory(require('jquery'));
|
||||
} else {
|
||||
window.toastr = factory(window.jQuery);
|
||||
}
|
||||
}));
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
|
||||
name: [File.Upload, Request.File]
|
||||
description: Ajax file upload with MooTools.
|
||||
license: MIT-style license
|
||||
author: Matthew Loberg
|
||||
requires: [Request]
|
||||
provides: [File.Upload, Request.File]
|
||||
credits: Based off of MooTools-Form-Upload (https://github.com/arian/mootools-form-upload/) by Arian Stolwijk
|
||||
|
||||
*/
|
||||
|
||||
File.Upload = new Class({
|
||||
|
||||
Implements: [Options, Events],
|
||||
|
||||
options: {
|
||||
onComplete: function(){}
|
||||
},
|
||||
|
||||
initialize: function(options){
|
||||
var self = this;
|
||||
this.setOptions(options);
|
||||
this.uploadReq = new Request.File({
|
||||
onComplete: function(){
|
||||
self.fireEvent('complete', arguments);
|
||||
this.reset();
|
||||
}
|
||||
});
|
||||
if(this.options.data) this.data(this.options.data);
|
||||
if(this.options.images) this.addMultiple(this.options.images);
|
||||
},
|
||||
|
||||
data: function(data){
|
||||
var self = this;
|
||||
if(this.options.url.indexOf('?') < 0) this.options.url += '?';
|
||||
Object.each(data, function(value, key){
|
||||
if(self.options.url.charAt(self.options.url.length - 1) != '?') self.options.url += '&';
|
||||
self.options.url += encodeURIComponent(key) + '=' + encodeURIComponent(value);
|
||||
});
|
||||
},
|
||||
|
||||
addMultiple: function(inputs){
|
||||
var self = this;
|
||||
inputs.each(function(input){
|
||||
self.add(input);
|
||||
});
|
||||
},
|
||||
|
||||
add: function(input){
|
||||
var input = document.id(input),
|
||||
name = input.get('name'),
|
||||
file = input.files[0];
|
||||
this.uploadReq.append(name, file);
|
||||
},
|
||||
|
||||
send: function(input){
|
||||
if(input) this.add(input);
|
||||
this.uploadReq.send({
|
||||
url: this.options.url
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Request.File = new Class({
|
||||
|
||||
Extends: Request,
|
||||
|
||||
options: {
|
||||
emulation: false,
|
||||
urlEncoded: false
|
||||
},
|
||||
|
||||
initialize: function(options){
|
||||
this.xhr = new Browser.Request();
|
||||
this.formData = new FormData();
|
||||
this.setOptions(options);
|
||||
this.headers = this.options.headers;
|
||||
},
|
||||
|
||||
append: function(key, value){
|
||||
this.formData.append(key, value);
|
||||
return this.formData;
|
||||
},
|
||||
|
||||
reset: function(){
|
||||
this.formData = new FormData();
|
||||
},
|
||||
|
||||
send: function(options){
|
||||
var url = options.url || this.options.url;
|
||||
|
||||
this.options.isSuccess = this.options.isSuccess || this.isSuccess;
|
||||
this.running = true;
|
||||
|
||||
var xhr = this.xhr;
|
||||
xhr.open('POST', url, true);
|
||||
xhr.onreadystatechange = this.onStateChange.bind(this);
|
||||
|
||||
Object.each(this.headers, function(value, key){
|
||||
try{
|
||||
xhr.setRequestHeader(key, value);
|
||||
}catch(e){
|
||||
this.fireEvent('exception', [key, value]);
|
||||
}
|
||||
}, this);
|
||||
|
||||
this.fireEvent('request');
|
||||
xhr.send(this.formData);
|
||||
|
||||
if(!this.options.async) this.onStateChange();
|
||||
if(this.options.timeout) this.timer = this.timeout.delay(this.options.timeout, this);
|
||||
return this;
|
||||
}
|
||||
|
||||
});
|
||||
+29
-16
@@ -3,31 +3,33 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /App.php
|
||||
Desc. : v3 - HTML5 Page Generator v3 (jQuery & CoreUI)
|
||||
Desc. : v4 - HTML5 Page Generator (jQuery & CoreUI)
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : January 10th, 2008.
|
||||
Last Modified : May 8th, 2021.
|
||||
Last Modified : October 17th, 2022.
|
||||
|
||||
(c) 2008 - 2021, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2008 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3;
|
||||
namespace siaupheng\fonia4;
|
||||
|
||||
final class App {
|
||||
public $version = "3.0.0";
|
||||
public $version = "4.0.0";
|
||||
private $apps = array();
|
||||
private $auser = array();
|
||||
private $cache = null;
|
||||
private $menu = null;
|
||||
private $reg = null;
|
||||
protected $__db = null;
|
||||
protected $__form = null;
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
else { $this->__db = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
$this->__form = new \siaupheng\fonia4\Web\Form($this->__db);
|
||||
|
||||
$this->apps = $_SESSION['__WEB_APP'];
|
||||
$this->apps['TEMPLATE'] = "index.php";
|
||||
@@ -39,9 +41,9 @@ final class App {
|
||||
$this->auser['user_img'] = $this->auser['ID'].".webp";
|
||||
}
|
||||
}
|
||||
$this->reg = new \siaupheng\fonia3\Web\Register($this->__db);
|
||||
$this->cache = new \siaupheng\fonia3\Data\Cache($this->__db);
|
||||
$this->menu = new \siaupheng\fonia3\Web\Menu($this->__db);
|
||||
$this->reg = new \siaupheng\fonia4\Web\Register($this->__db);
|
||||
$this->cache = new \siaupheng\fonia4\Data\Cache($this->__db);
|
||||
$this->menu = new \siaupheng\fonia4\Web\Menu($this->__db);
|
||||
}
|
||||
|
||||
public function TampilApp($aoption = array()) {
|
||||
@@ -97,10 +99,10 @@ final class App {
|
||||
$buffer = str_replace($asrc, $adst, $buffer);
|
||||
|
||||
if (isset($this->auser) && is_array($this->auser)) {
|
||||
$buffer = str_replace("[_USER_ID_]", $this->auser['UserID'], $buffer);
|
||||
$buffer = str_replace("[_USER_USER_]", $this->auser['Username'], $buffer);
|
||||
$buffer = str_replace("[_USER_NAME_]", $this->auser['Nama'], $buffer);
|
||||
$buffer = str_replace("[_USER_POSISI_]", $this->auser['Posisi'], $buffer);
|
||||
$buffer = str_replace("[_USER_ID_]", $this->auser['UserID']??"", $buffer);
|
||||
$buffer = str_replace("[_USER_USER_]", $this->auser['Username']??"", $buffer);
|
||||
$buffer = str_replace("[_USER_NAME_]", $this->auser['Nama']??"", $buffer);
|
||||
$buffer = str_replace("[_USER_POSISI_]", $this->auser['Posisi']??"", $buffer);
|
||||
|
||||
// menu modul
|
||||
$t_modul = "";
|
||||
@@ -122,7 +124,15 @@ final class App {
|
||||
foreach ($this->auser['MENU_MODUL'] as $modul) {
|
||||
$href = $href1.$modul['APP_PATH'].$href2;
|
||||
$href .= '/?auth='.$_SESSION['APP_TOKEN'];
|
||||
$t_modul .= '<a class="dropdown-item slink" href="'.$href.'"><i class="c-icon mr-2 '.$modul['Icon'].'"></i> '.$modul['Judul'].'</a>';
|
||||
$t_modul .= '<a class="dropdown-item slink" href="'.$href.'"><i class="icon me-2 '.$modul['Icon'].'"></i> '.$modul['Judul'].'</a>';
|
||||
}
|
||||
}
|
||||
// menu extra
|
||||
$amodul_ext = $aoption['MENU_MODUL'] ?? [];
|
||||
if (count($amodul_ext) > 0) {
|
||||
$t_modul .= '<div class="dropdown-divider"></div>';
|
||||
foreach ($amodul_ext as $modul) {
|
||||
$t_modul .= '<a class="dropdown-item slink" id="'.$modul['Id'].'"><i class="icon me-2 '.$modul['Icon'].'"></i> '.$modul['Judul'].'</a>';
|
||||
}
|
||||
}
|
||||
$buffer = str_replace("[_MENU_MODUL_]", $t_modul, $buffer);
|
||||
@@ -141,10 +151,13 @@ final class App {
|
||||
if (count($aoption) > 0) {
|
||||
foreach ($aoption as $__key => $val) {
|
||||
if (strpos($__key, "OPTION")!==false) {
|
||||
$opt_var = (new cFORM())->option("Pilihan", $__key, $val['value'], true, $val['option']);
|
||||
$opt_var = $this->__form->option("_", $__key, $val['value'], true, true, $val['option']);
|
||||
$buffer = str_replace("[_".$__key."_]", $opt_var, $buffer);
|
||||
} else if (strpos($__key, "RADIO")!==false) {
|
||||
$opt_var = $this->__form->radio("_", $__key, $val['value'], true, true, $val['radio']);
|
||||
$buffer = str_replace("[_".$__key."_]", $opt_var, $buffer);
|
||||
} else if (strpos($__key, "PICKDATE")!==false) {
|
||||
$txt_var = (new cFORM())->datebox("Tanggal", $__key, $val['value'], true);
|
||||
$txt_var = $this->__form->datebox("_", $__key, $val['value'], true, true);
|
||||
$buffer = str_replace("[_".$__key."_]", $txt_var, $buffer);
|
||||
} else if (strpos($__key, "CUSTOM")!==false) {
|
||||
$buffer = str_replace("[_".$__key."_]", $val['value'], $buffer);
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /DB/CheckSQL.php
|
||||
Desc. : v3 - Class Check SQL / Repair Database
|
||||
Desc. : v4 - Class Check SQL / Repair Database
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : May 11th, 2011.
|
||||
Last Modified : May 8th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\DB;
|
||||
namespace siaupheng\fonia4\DB;
|
||||
|
||||
final class CheckSQL {
|
||||
private $__atabel = array();
|
||||
@@ -23,7 +23,7 @@ final class CheckSQL {
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
else { $this->__db = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
|
||||
$this->__db->Query("SELECT TABLE_NAME,ENGINE,TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='".$this->__db->getDBName()."' AND TABLE_TYPE='BASE TABLE'");
|
||||
while ($this->__db->Next()) {
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /DB/DumpSQL.php
|
||||
Desc. : v3 - Class Dump Data SQL
|
||||
Desc. : v4 - Class Dump Data SQL
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : May 11th, 2011.
|
||||
Last Modified : May 8th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\DB;
|
||||
namespace siaupheng\fonia4\DB;
|
||||
|
||||
final class DumpSQL {
|
||||
private $__adata = array();
|
||||
@@ -23,7 +23,7 @@ final class DumpSQL {
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
else { $this->__db = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
|
||||
$this->__adata = $this->__db->getConfig();
|
||||
}
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /DB/MySQL.php
|
||||
Desc. : v3 - Class database MySQL / MariaDB
|
||||
Desc. : v4 - Class database MySQL / MariaDB
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : February 2nd, 2007.
|
||||
Last Modified : May 8th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\DB;
|
||||
namespace siaupheng\fonia4\DB;
|
||||
|
||||
final class MySQL {
|
||||
private $cnn;
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /DB/SQL.php
|
||||
Desc. : v3 - Class Query database
|
||||
Desc. : v4 - Class Query database
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : February 2nd, 2007.
|
||||
Last Modified : May 8th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\DB;
|
||||
namespace siaupheng\fonia4\DB;
|
||||
|
||||
final class SQL {
|
||||
private $__ttable = "";
|
||||
@@ -26,7 +26,7 @@ final class SQL {
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
else { $this->__db = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
}
|
||||
|
||||
public function SafeSQL($ttext = "") {
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Data/CSV.php
|
||||
Desc. : v3 - Class pembuatan file CSV
|
||||
Desc. : v4 - Class pembuatan file CSV
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : April 2rd, 2011.
|
||||
Last Modified : May 6th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Data;
|
||||
namespace siaupheng\fonia4\Data;
|
||||
|
||||
define( DELI_CSV, ";" );
|
||||
define( CRLF_CSV, "\r\n" );
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Data/Cache.php
|
||||
Desc. : v3 - Class cache aplikasi
|
||||
Desc. : v4 - Class cache aplikasi
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : March 16th, 2008.
|
||||
Last Modified : May 8th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Data;
|
||||
namespace siaupheng\fonia4\Data;
|
||||
|
||||
use MatthiasMullie\Minify;
|
||||
|
||||
@@ -31,7 +31,7 @@ final class Cache {
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
else $this->__db = new \siaupheng\fonia4\DB\MySQL();
|
||||
|
||||
$rootdir = $_SESSION['__WEB_APP']['REAL_PATH'];
|
||||
$this->__cachedir = $rootdir . 'cache/';
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Data/PDF.php
|
||||
Desc. : v3 - Class pembuatan file PDF
|
||||
Desc. : v4 - Class pembuatan file PDF
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : April 18th, 2015.
|
||||
Last Modified : May 8th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Data;
|
||||
namespace siaupheng\fonia4\Data;
|
||||
|
||||
use Mpdf;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Function/Auth.php
|
||||
Desc. : Fungsi Custom Auth
|
||||
Desc. : v4 - Fungsi Custom Auth
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : January 27th, 2008.
|
||||
Last Modified : May 6th, 2021.
|
||||
|
||||
+10
-3
@@ -3,17 +3,24 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Function/JSON.php
|
||||
Desc. : Fungsi Custom JSON
|
||||
Desc. : v4 - Fungsi Custom JSON
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : April 14th, 2012.
|
||||
Last Modified : May 6th, 2021.
|
||||
Last Modified : April 29th, 2022.
|
||||
|
||||
(c) 2012 - 2021, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2012 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
if (!function_exists('is_json')) {
|
||||
function is_json($string) {
|
||||
json_decode($string);
|
||||
return json_last_error() === JSON_ERROR_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('send_json')) {
|
||||
function send_json($ajson = array(), $bempty = false) {
|
||||
if (count($ajson) > 0 || $bempty == true) {
|
||||
|
||||
+12
-2
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Function/Misc.php
|
||||
Desc. : Fungsi Custom Lain Lain
|
||||
Desc. : v4 - Fungsi Custom Lain Lain
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : January 27th, 2008.
|
||||
Last Modified : May 6th, 2021.
|
||||
@@ -135,7 +135,7 @@ if (!function_exists('abjad')) {
|
||||
if (!function_exists('checkbox')) {
|
||||
function checkbox($nilai = 0) {
|
||||
$bhasil = ((is_string($nilai) && ($nilai=="N" || $nilai=="0")) or (is_numeric($nilai) && $nilai==0) or (is_bool($nilai) && $nilai==false)) ? true : false;
|
||||
return '<input type="checkbox" '.(($bhasil)?"":"checked").' readonly />';
|
||||
return '<input class="form-check-input" type="checkbox" '.(($bhasil)?"":"checked").' readonly />';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -323,4 +323,14 @@ if (!function_exists('potong')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('format_bytes')) {
|
||||
function format_bytes($bytes) {
|
||||
if ($bytes < 1024) return $bytes.' B';
|
||||
elseif ($bytes < 1048576) return uang2($bytes / 1024).' KB';
|
||||
elseif ($bytes < 1073741824) return uang2($bytes / 1048576).' MB';
|
||||
elseif ($bytes < 1099511627776) return uang2($bytes / 1073741824).' GB';
|
||||
else return uang2($bytes / 1099511627776).' TB';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+5
-6
@@ -3,18 +3,18 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Auth.php
|
||||
Desc. : v3 - Fungsi login dan user checking
|
||||
Desc. : v4 - Fungsi login dan user checking
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : March 16th, 2008.
|
||||
Last Modified : May 8th, 2021.
|
||||
Last Modified : April 3rd, 2022.
|
||||
|
||||
(c) 2008 - 2021, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2008 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class Auth {
|
||||
private $__id_reg = 0;
|
||||
@@ -22,8 +22,7 @@ final class Auth {
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
|
||||
else { $this->__db = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
$this->__id_reg = $_SESSION['__WEB_APP']['REG_ID'];
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Button.php
|
||||
Desc. : v4 - Button Generator (jQuery & CoreUI)
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : February 27th, 2008.
|
||||
Last Modified : April 4th, 2022.
|
||||
|
||||
(c) 2008 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
class Button {
|
||||
private $__abutton = array();
|
||||
private $__bsepa = false;
|
||||
|
||||
public function __construct() {}
|
||||
private function add($type="info", $id="", $label="", $bmiss=false) {
|
||||
if ($id=="") $id = "random".rand(1000, 10000);
|
||||
$this->__abutton[] = array('type'=>$type, 'id'=>$id, 'label'=>$label, 'bmiss'=>$bmiss);
|
||||
}
|
||||
|
||||
public function separator() {
|
||||
$this->__abutton[] = array('type'=>"separator");
|
||||
$this->__bsepa = true;
|
||||
}
|
||||
public function primary($id="", $label="", $bmiss=false) {
|
||||
$this->add("primary", $id, $label, $bmiss);
|
||||
}
|
||||
public function info($id="", $label="", $bmiss=false) {
|
||||
$this->add("info", $id, $label, $bmiss);
|
||||
}
|
||||
public function danger($id="", $label="", $bmiss=false) {
|
||||
$this->add("danger", $id, $label, $bmiss);
|
||||
}
|
||||
public function warning($id="", $label="", $bmiss=false) {
|
||||
$this->add("warning", $id, $label, $bmiss);
|
||||
}
|
||||
public function success($id="", $label="", $bmiss=false) {
|
||||
$this->add("success", $id, $label, $bmiss);
|
||||
}
|
||||
public function secondary($id="", $label="", $bmiss=false) {
|
||||
$this->add("secondary", $id, $label, $bmiss);
|
||||
}
|
||||
|
||||
public function Button($size=2) {
|
||||
if (0==count($this->__abutton)) return "";
|
||||
$items = count($this->__abutton) - ($this->__bsepa==true ? 1 : 0);
|
||||
$sepa_size = (12 == $items*$size) ? 0 : 12 - ($items*$size);
|
||||
$_out = '<div class="row mb-2">';
|
||||
foreach ($this->__abutton as $item) {
|
||||
if ("separator" == $item['type']) {
|
||||
if (0 < $sepa_size) $_out .= '<div class="d-none d-lg-block col-lg-'.$sepa_size.'"> </div>';
|
||||
} else {
|
||||
$_out .= '<div class="col-md-'.floor($size*2).' col-lg-'.$size.' mb-sm-0"><button type="button" class="btn btn-block btn-'.$item['type'].' shadow-none" id="'.$item['id'].'"'.(true==$item['bmiss']?' data-coreui-dismiss="modal"':'').'>'.$item['label'].'</button></div>';
|
||||
}
|
||||
}
|
||||
$_out .= '</div>';
|
||||
return $_out;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
+48
-92
@@ -3,18 +3,18 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Form.php
|
||||
Desc. : v3 - Form Generator v3 (jQuery & CoreUI)
|
||||
Desc. : v4 - Form Generator (jQuery & CoreUI)
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : February 27th, 2008.
|
||||
Last Modified : May 22nd, 2021.
|
||||
Last Modified : April 17th, 2022.
|
||||
|
||||
(c) 2008 - 2021, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2008 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class Form {
|
||||
private $__aform = array();
|
||||
@@ -25,17 +25,16 @@ final class Form {
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
|
||||
else { $this->__db = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
$this->__button = new Button();
|
||||
}
|
||||
|
||||
public function option($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $aarr=array(), $thelp="", $tchange=null, $bmulti=false) {//oke
|
||||
public function option($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $aarr=array(), $thelp="", $tchange=null, $bmulti=false) {
|
||||
$_enab = ($benable==true) ? "" : ' disabled=true';
|
||||
$_req = ($breq==true) ? " required=true" : "";
|
||||
$_change = ($tchange==null) ? "" : ' onchange="'.$tchange.'"';
|
||||
$_multi = ($bmulti==true) ? ' multiple=true' : "";
|
||||
$tout = '<select class="form-control option-tags" id="'.$tfield.'" name="'.$tfield.'"'.$_enab.$_change.$_req.$_multi.' >';
|
||||
$_change = ($tchange==null) ? '' : ' onchange="'.$tchange.'"';
|
||||
$_multi = ($bmulti==true) ? ' multiple' : '';
|
||||
$tout = '<select class="form-select option-tags" id="'.$tfield.'" name="'.$tfield.'"'.$_enab.$_change.$_req.$_multi.' >';
|
||||
if (count($aarr)>0) {
|
||||
foreach ($aarr as $key => $val) {
|
||||
$_val2 = $val; $olabel = "";
|
||||
@@ -55,7 +54,7 @@ final class Form {
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function option_db($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $ttable=null, $afield=null, $twhere=null, $addarray=null, $thelp="", $tchange=null, $bmulti=false) {//oke
|
||||
public function option_db($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $ttable=null, $afield=null, $twhere=null, $addarray=null, $thelp=null, $tchange=null, $bmulti=false) {
|
||||
$afield = ($afield==null) ? array("ID", "Nama", "Label") : $afield;
|
||||
$_twhere = ($twhere==null) ? "" : " WHERE ".$twhere;
|
||||
$_twhere .= ($twhere===null || stripos($twhere,"ORDER BY")===false) ? " ORDER BY ".$afield[1] : "";
|
||||
@@ -71,7 +70,7 @@ final class Form {
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function option_que($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $tquery=null, $afield=null, $addarray=null, $thelp="", $tchange=null) {//oke
|
||||
public function option_que($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $tquery=null, $afield=null, $addarray=null, $thelp="", $tchange=null) {
|
||||
$afield = ($afield==null) ? array("ID", "Nama", "Label") : $afield;
|
||||
$ahasil = array();
|
||||
if (is_array($addarray)) $ahasil[$addarray[0]] = (!isset($afield[2])) ? $addarray[1] : array($addarray[1], $addarray[2]);
|
||||
@@ -85,18 +84,18 @@ final class Form {
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function option_jkl($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tchange=null) {//oke
|
||||
public function option_jkl($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tchange=null) {
|
||||
$akel = array("L" => "Laki-Laki", "P" => "Perempuan");
|
||||
$tout = $this->option($tlabel, $tfield, $tvalue, $benable, $breq, $akel, $thelp, $tchange);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function option_ulevel($tlabel="", $tfield, $tvalue=9, $benable=true, $breq=false, $thelp="", $tchange=null) {//oke
|
||||
public function option_ulevel($tlabel="", $tfield, $tvalue=9, $benable=true, $breq=false, $thelp="", $tchange=null) {
|
||||
$tout = $this->option($tlabel, $tfield, $tvalue, $benable, $breq, $_SESSION['__WEB_APP']['USER_LEVEL'], $thelp, $tchange);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function radio($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $aarr=array(), $thelp="", $tchange=null) {//oke
|
||||
public function radio($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $aarr=array(), $thelp="", $tchange=null) {
|
||||
if ($tvalue == null) {
|
||||
$tmp_key = array_keys($aarr);
|
||||
$tvalue = $tmp_key[0];
|
||||
@@ -117,42 +116,43 @@ final class Form {
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function radio_jkl($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tchange=null) {//oke
|
||||
public function radio_jkl($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tchange=null) {
|
||||
$tout = $this->radio($tlabel, $tfield, $tvalue, $benable, $breq, array("L" => "Laki-Laki", "P" => "Perempuan"), $thelp, $tchange);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function radio_gd($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tchange=null) {//oke
|
||||
public function radio_gd($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tchange=null) {
|
||||
$tvalue = ($tvalue=="") ? "X" : $tvalue;
|
||||
$tout = $this->radio($tlabel, $tfield, $tvalue, $benable, $breq, array("A"=>"A", "B"=>"B", "AB"=>"AB", "O"=>"O", "X"=>"NONE"), $thelp, $tchange);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function checkbox($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $avalue=array(), $thelp="", $tchange=null) {//oke
|
||||
public function checkbox($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $avalue=array(), $thelp="", $tchange=null) {
|
||||
$bhasil = ((is_string($tvalue) && in_array($tvalue,array("N","T","0"))) or (is_numeric($tvalue) && $tvalue==0) or (is_bool($tvalue) && $tvalue===false) or empty($tvalue)) ? true : false;
|
||||
$_enab = ($benable==true) ? "" : ' disabled=true';
|
||||
$_req = ($breq==true) ? " required=true" : "";
|
||||
$_change = ($tchange==null) ? ' onchange="this.value=(this.checked)?\''.$avalue[0].'\':\''.$avalue[1].'\';"' : ' onchange="this.value=(this.checked)?\''.$avalue[0].'\':\''.$avalue[1].'\';'.$tchange.'"';
|
||||
$tout .= '<div class="form-check form-check-inline mr-1"><input type="checkbox" class="form-check-input" id="'.$tfield.'" name="'.$tfield.'" value="'.($bhasil?$avalue[1]:$avalue[0]).'"'.$_enab.$_change.$_req;
|
||||
$tout = '<div class="form-check form-check-inline mr-1"><input type="checkbox" class="form-check-input" id="'.$tfield.'" name="'.$tfield.'" value="'.($bhasil?$avalue[1]:$avalue[0]).'"'.$_enab.$_change.$_req;
|
||||
$tout .= ($bhasil==false) ? ' checked="checked"' : '';
|
||||
$tout .= '></div>';
|
||||
$this->__aform[$tfield] = array('label'=>$tlabel, 'help'=>$thelp, 'form'=>$tout);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function switch_sq($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $aarr=array(), $thelp="", $tchange=null) {//oke
|
||||
//todo: perlu test lagi !!
|
||||
public function switch_sq($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $aarr=array(), $thelp="", $tchange=null) {
|
||||
$_key = array_keys($aarr); $_val = array_values($aarr);
|
||||
$_enab = ($benable==true) ? "" : ' disabled=true';
|
||||
$_req = ($breq==true) ? " required=true" : "";
|
||||
$_change = ($tchange==null) ? ' onchange="this.value=(this.checked)?\''.$_key[0].'\':\''.$_key[1].'\';"' : ' onchange="this.value=(this.checked)?\''.$_key[0].'\':\''.$_key[1].'\';'.$tchange.'"';
|
||||
$tout = '<label class="c-switch c-switch-label c-switch-info"><input class="c-switch-input" type="checkbox" id="'.$tfield.'" name="'.$tfield.'" value="'.$tvalue.'"'.$_enab.$_change.$_req;
|
||||
$tout = '<div class="form-check form-switch form-switch-lg"><input class="form-check-input me-0" id="'.$tfield.'" name="'.$tfield.'" type="checkbox" value="'.$tvalue.'"'.$_enab.$_change.$_req;
|
||||
$tout .= ($_key[0] == $tvalue) ? ' checked="checked"' : '';
|
||||
$tout .= '><span class="c-switch-slider" data-checked="'.$_val[0].'" data-unchecked="'.$_val[1].'"></span></label>';
|
||||
$tout .= '><label class="form-check-label fw-semibold small" for="'.$tfield.'"> </label></div>';
|
||||
$this->__aform[$tfield] = array('label'=>$tlabel, 'help'=>$thelp, 'form'=>$tout);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
/* belum diupgrade !! */
|
||||
//todo: belum diupgrade !!
|
||||
public function form_group_cbox($tfield, $tkey=null, $tclass=null, $ttable=null, $afield=null, $ncol=2) {
|
||||
if ($ttable==null) return;
|
||||
$avalue = explode(",", $tkey);
|
||||
@@ -182,7 +182,7 @@ final class Form {
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function textbox($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $ttype="text", $holdtxt=null, $nmaxsize=null, $thelp="", $tkeyup=null, $tblur=null) {//oke
|
||||
public function textbox($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $ttype="text", $holdtxt=null, $nmaxsize=null, $thelp="", $tkeyup=null, $tblur=null) {
|
||||
$_enab = ($benable==true) ? "" : ' readonly';
|
||||
$_req = ($breq==true) ? " required=true" : "";
|
||||
$_max = ($nmaxsize==null) ? "" : ' maxlength="'.$nmaxsize.'"';
|
||||
@@ -203,7 +203,7 @@ final class Form {
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function textauto($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $holdtxt=null, $nmaxsize=null, $thelp="") {//oke
|
||||
public function textauto($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $holdtxt=null, $nmaxsize=null, $thelp="") {
|
||||
$tvalue = ($tvalue==null) ? array('value'=>0, 'text'=>"") : $tvalue;
|
||||
$_enab = ($benable==true) ? "" : ' disabled=true';
|
||||
$_req = ($breq==true) ? " required=true" : "";
|
||||
@@ -214,21 +214,21 @@ final class Form {
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function datebox($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tkeyup=null, $tblur=null) {//oke
|
||||
public function datebox($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tkeyup=null, $tblur=null) {
|
||||
if ($tvalue<>null) $tvalue = tgl_sql2str($tvalue);
|
||||
$tout = '<div class="input-group">';
|
||||
$tout .= $this->textbox($tlabel, $tfield, $tvalue, $benable, $breq, "pickdate", "dd-mm-yyyy", 12, $thelp, $tkeyup, $tblur);
|
||||
$tout .= '<div class="input-group-append"><span class="input-group-text"><i class="cui-calendar"></i></span></div></div>';
|
||||
$tout .= '<span class="input-group-text"><i class="cui-calendar"></i></span></div>';
|
||||
$this->__aform[$tfield] = array('label'=>$tlabel, 'help'=>$thelp, 'form'=>$tout);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function timebox($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tkeyup=null, $tblur=null) {//oke
|
||||
public function timebox($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $thelp="", $tkeyup=null, $tblur=null) {
|
||||
$tout = $this->textbox($tlabel, $tfield, $tvalue, $benable, $breq, "picktime", "hh:mm:ss", 10, $thelp, $tkeyup, $tblur);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function textarea($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $nrows=1, $holdtxt=null, $thelp="", $tkeyup=null, $tblur=null) {//oke
|
||||
public function textarea($tlabel="", $tfield, $tvalue=null, $benable=true, $breq=false, $nrows=1, $holdtxt=null, $thelp="", $tkeyup=null, $tblur=null) {
|
||||
$_enab = ($benable==true) ? "" : ' disabled=true';
|
||||
$_req = ($breq==true) ? " required=true" : "";
|
||||
$_rows = ($nrows==null) ? "" : ' rows="'.$nrows.'"';
|
||||
@@ -240,24 +240,30 @@ final class Form {
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function password($tlabel="", $tfield, $tvalue="", $benable=true, $breq=false, $holdtxt=null, $nmaxsize=null, $thelp="", $tkeyup=null) {//oke
|
||||
public function plaintext($tlabel="", $tfield, $tvalue=null) {
|
||||
$tout = '<input type="text" class="form-control-plaintext" id="'.$tfield.'" name="'.$tfield.'" value="'.$tvalue.'" readonly />';
|
||||
$this->__aform[$tfield] = array('label'=>$tlabel, 'help'=>"", 'form'=>$tout);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function password($tlabel="", $tfield, $tvalue="", $benable=true, $breq=false, $holdtxt=null, $nmaxsize=null, $thelp="", $tkeyup=null) {
|
||||
$tout = $this->textbox($tlabel, $tfield, $tvalue, $benable, $breq, "password", $holdtxt, $nmaxsize, $thelp, $tkeyup, $tblur);
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function hidden($tfield, $tvalue="", $tclass="text") {//oke
|
||||
public function hidden($tfield, $tvalue="", $tclass="text") {
|
||||
$tout = '<input type="hidden" id="'.$tfield.'" value="'.$tvalue.'" class="'.$tclass.'" />';
|
||||
$this->__ahide[$tfield] = $tout;
|
||||
return $tout;
|
||||
}
|
||||
|
||||
public function clear() {//oke
|
||||
public function clear() {
|
||||
$this->__aform = array();
|
||||
}
|
||||
|
||||
public function show($tstr) {//oke
|
||||
public function show($tstr) {
|
||||
foreach ($this->__aform as $_key => $_val) {
|
||||
$tval = '<div class="form-row mb-1"><label class="col-sm-5 col-lg-4 col-form-label" for="'.$_key.'">'.$_val['label'].'</label><div class="col-sm-7 col-lg-8">'.$_val['form'].($_val['help']==""?'':'<span class="help-block"><small>'.$_val['help'].'</small></span>').'</div></div>';
|
||||
$tval = '<div class="row mb-1"><label class="col-sm-5 col-lg-4 col-form-label" for="'.$_key.'">'.$_val['label'].'</label><div class="col-sm-7 col-lg-8">'.$_val['form'].($_val['help']==""?'':'<span class="help-block"><small>'.$_val['help'].'</small></span>').'</div></div>';
|
||||
$tstr = str_replace("_".$_key."_", $tval, $tstr);
|
||||
}
|
||||
$txtbtn = $this->__button->Button($this->__nbtnsize);
|
||||
@@ -273,80 +279,30 @@ final class Form {
|
||||
echo $tstr;
|
||||
}
|
||||
|
||||
public function btn_separator() {//oke
|
||||
public function btn_separator() {
|
||||
$this->__button->separator();
|
||||
}
|
||||
public function btn_primary($id="", $label="", $bmiss=false) {//oke
|
||||
public function btn_primary($id="", $label="", $bmiss=false) {
|
||||
$this->__button->primary($id, $label, $bmiss);
|
||||
}
|
||||
public function btn_info($id="", $label="", $bmiss=false) {//oke
|
||||
public function btn_info($id="", $label="", $bmiss=false) {
|
||||
$this->__button->info($id, $label, $bmiss);
|
||||
}
|
||||
public function btn_danger($id="", $label="", $bmiss=false) {//oke
|
||||
public function btn_danger($id="", $label="", $bmiss=false) {
|
||||
$this->__button->danger($id, $label, $bmiss);
|
||||
}
|
||||
public function btn_warning($id="", $label="", $bmiss=false) {//oke
|
||||
public function btn_warning($id="", $label="", $bmiss=false) {
|
||||
$this->__button->warning($id, $label, $bmiss);
|
||||
}
|
||||
public function btn_success($id="", $label="", $bmiss=false) {//oke
|
||||
public function btn_success($id="", $label="", $bmiss=false) {
|
||||
$this->__button->success($id, $label, $bmiss);
|
||||
}
|
||||
public function btn_secondary($id="", $label="", $bmiss=false) {//oke
|
||||
public function btn_secondary($id="", $label="", $bmiss=false) {
|
||||
$this->__button->secondary($id, $label, $bmiss);
|
||||
}
|
||||
public function Button($size=2) {//oke
|
||||
public function Button($size=2) {
|
||||
$this->__nbtnsize = $size;
|
||||
}
|
||||
}
|
||||
|
||||
class Button {
|
||||
private $__abutton = array();
|
||||
private $__bsepa = false;
|
||||
|
||||
public function __construct() {}
|
||||
private function add($type="info", $id="", $label="", $bmiss=false) {//oke
|
||||
if ($id=="") $id = "random".rand(1000, 10000);
|
||||
$this->__abutton[] = array('type'=>$type, 'id'=>$id, 'label'=>$label, 'bmiss'=>$bmiss);
|
||||
}
|
||||
|
||||
public function separator() {//oke
|
||||
$this->__abutton[] = array('type'=>"separator");
|
||||
$this->__bsepa = true;
|
||||
}
|
||||
public function primary($id="", $label="", $bmiss=false) {//oke
|
||||
$this->add("primary", $id, $label, $bmiss);
|
||||
}
|
||||
public function info($id="", $label="", $bmiss=false) {//oke
|
||||
$this->add("info", $id, $label, $bmiss);
|
||||
}
|
||||
public function danger($id="", $label="", $bmiss=false) {//oke
|
||||
$this->add("danger", $id, $label, $bmiss);
|
||||
}
|
||||
public function warning($id="", $label="", $bmiss=false) {//oke
|
||||
$this->add("warning", $id, $label, $bmiss);
|
||||
}
|
||||
public function success($id="", $label="", $bmiss=false) {//oke
|
||||
$this->add("success", $id, $label, $bmiss);
|
||||
}
|
||||
public function secondary($id="", $label="", $bmiss=false) {//oke
|
||||
$this->add("secondary", $id, $label, $bmiss);
|
||||
}
|
||||
|
||||
public function Button($size=2) {//oke
|
||||
if (0==count($this->__abutton)) return "";
|
||||
$items = count($this->__abutton) - ($this->__bsepa==true ? 1 : 0);
|
||||
$sepa_size = (12 == $items*$size) ? 0 : 12 - ($items*$size);
|
||||
$_out = '<div class="row mb-3">';
|
||||
foreach ($this->__abutton as $item) {
|
||||
if ("separator" == $item['type']) {
|
||||
if (0 < $sepa_size) $_out .= '<div class="d-none d-lg-block col-lg-'.$sepa_size.'"> </div>';
|
||||
} else {
|
||||
$_out .= '<div class="col-md-'.floor($size*2).' col-lg-'.$size.' mb-1 mb-sm-0"><button type="button" class="btn btn-block btn-'.$item['type'].'" id="'.$item['id'].'"'.(true==$item['bmiss']?' data-dismiss="modal"':'').'>'.$item['label'].'</button></div>';
|
||||
}
|
||||
}
|
||||
$_out .= '</div>';
|
||||
return $_out;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+8
-37
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/HTMLPrint.php
|
||||
Desc. : v3 - Class cetak HTML
|
||||
Desc. : v4 - Class cetak HTML
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : June 15th, 2008.
|
||||
Last Modified : May 6th, 2021.
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class HTMLPrint {
|
||||
private $__avalue = array();
|
||||
private $__astyle = array();
|
||||
private $__atabel = array();
|
||||
private $__css = "pnormal";
|
||||
private $__css = "table";
|
||||
|
||||
public function __construct() {//
|
||||
}
|
||||
@@ -56,9 +56,9 @@ final class HTMLPrint {
|
||||
$tmp_out = "<tr>";
|
||||
for ($i=0; $i<count($this->__atabel); $i++) {
|
||||
$tmp_val = $tmp_arr[$i];
|
||||
if (is_array($this->__atabel[$i][2]) && trim($tmp_val)<>"") { //up 2010-05-28
|
||||
if (is_array($this->__atabel[$i][2]) && trim("".$tmp_val)<>"") { //up 2010-05-28
|
||||
$tmp_val = $this->__atabel[$i][2][$tmp_val];
|
||||
} else if (function_exists($this->__atabel[$i][2]) && trim($tmp_val)<>"") {
|
||||
} else if (function_exists($this->__atabel[$i][2]) && trim("".$tmp_val)<>"") {
|
||||
$tmp_val = call_user_func($this->__atabel[$i][2], $tmp_val);
|
||||
}
|
||||
$tmp_val = $this->set_align($tmp_val, $this->__atabel[$i][1], $this->__atabel[$i][3]);
|
||||
@@ -78,7 +78,7 @@ final class HTMLPrint {
|
||||
if (!isset($tmp_val[2])) $tmp_val[2] = "L";
|
||||
if (!isset($tmp_val[4])) $tmp_val[4] = "";
|
||||
if (isset($tmp_val[3])) {
|
||||
if (function_exists($tmp_val[3]) && trim($tmp_val[0])<>"") {
|
||||
if (function_exists($tmp_val[3]) && trim("".$tmp_val[0])<>"") {
|
||||
$tmp_val[0] = call_user_func($tmp_val[3], $tmp_val[0]);
|
||||
}
|
||||
}
|
||||
@@ -90,40 +90,11 @@ final class HTMLPrint {
|
||||
$this->__astyle[] = "L";
|
||||
}
|
||||
|
||||
public function add($ttext = "", $tstyle = "L") {//todo:delete
|
||||
$this->__avalue[] = $ttext;
|
||||
$this->__astyle[] = $tstyle;
|
||||
}
|
||||
|
||||
public function addl($ttext = "") {//todo:delete
|
||||
$this->add($ttext);
|
||||
}
|
||||
|
||||
public function addr($ttext = "") {//todo:delete
|
||||
$this->add($ttext, "R");
|
||||
}
|
||||
|
||||
public function addc($ttext = "") {//todo:delete
|
||||
$this->add($ttext, "C");
|
||||
}
|
||||
|
||||
public function add_line() {//todo:delete
|
||||
$this->add("__LINE ");
|
||||
}
|
||||
|
||||
public function add_empty($nrep = 1) {//todo:delete
|
||||
for ($i=0;$i<$nrep;$i++) $this->add(" ");
|
||||
}
|
||||
|
||||
public function add_pagebreak() {//up 2012-10-11
|
||||
$this->add("</tbody></table><p id=\"linebreak\">................ page break ................</p>", "PB");
|
||||
$this->add("<p id=\"pagebreak\"> </p><table class=\"".$this->__css."\" border=\"0\" width=\"100%\" cellspading=\"0\" cellspacing=\"0\"><tbody>", "PB");
|
||||
}
|
||||
|
||||
public function show_pagebreak() {//del
|
||||
echo "<p id=\"linebreak\">................ page break ................</p><p id=\"pagebreak\"> </p>";
|
||||
}
|
||||
|
||||
public function add_stamp($ctk_ke=1, $bnama=false) {//up 2011-03-25
|
||||
$this->add($_SESSION['__WEB_APP']['APP_NAME']."v".$_SESSION['__WEB_APP']['APP_VER'].date("\@ymd.His")."-".user_id(3).(($bnama==true)?"/".strtoupper(user_user()):"").(($ctk_ke>0)?"#".isi_nol($ctk_ke,2):""), "NB");
|
||||
}
|
||||
@@ -153,7 +124,7 @@ final class HTMLPrint {
|
||||
|
||||
public function set_align($ttext, $nlen, $tdir="L", $bline=false, $bhead=false, $ncol=1, $textra="") {//up 2011-04-14
|
||||
$tstyle = $this->create_style($tdir);
|
||||
if (strpos(strtolower($ttext), "<tr>")===false) { //jika tidak ada <tr> up 2011-04-14
|
||||
if (strpos(strtolower("".$ttext), "<tr>")===false) { //jika tidak ada <tr> up 2011-04-14
|
||||
if ($bline===true) {
|
||||
return "<tr><td colspan=\"".count($this->__atabel)."\" class=\"".$tstyle." ".$textra."\">".$ttext."</td></tr>";
|
||||
} else {
|
||||
@@ -166,7 +137,7 @@ final class HTMLPrint {
|
||||
|
||||
private function create_style($tstyle="L") { //up 2014-10-12
|
||||
// style = Left Right Center No-Border No-Left No-Right Bold Italic
|
||||
$apad = array("L"=>"left", "R"=>"right", "C"=>"center", "NB"=>"nb", "NL"=>"noleft", "NR"=>"noright", "B"=>"bold", "I"=>"italic");
|
||||
$apad = array("L"=>"l", "R"=>"r", "C"=>"c", "NB"=>"nb", "NL"=>"noleft", "NR"=>"noright", "B"=>"b", "I"=>"i");
|
||||
$_astyle = explode(",", $tstyle);
|
||||
$thasil = "";
|
||||
foreach ($_astyle as $_key => $_val) {
|
||||
|
||||
+20
-37
@@ -3,25 +3,24 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Menu.php
|
||||
Desc. : v3 - Class menu
|
||||
Desc. : v4 - Class menu
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : January 16th, 2008.
|
||||
Last Modified : May 8th, 2021.
|
||||
Last Modified : May 1st, 2022.
|
||||
|
||||
(c) 2008 - 2021, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2008 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class Menu {
|
||||
protected $__db = null;
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
$this->__db = $db ?? new \siaupheng\fonia4\DB\MySQL();
|
||||
}
|
||||
|
||||
private function Menu_Query($qry = "", $order = "Kode") {
|
||||
@@ -34,7 +33,7 @@ final class Menu {
|
||||
return $ahasil;
|
||||
}
|
||||
|
||||
public function Menu_Sidebar() {
|
||||
public function Menu_Sidebar() {//oke
|
||||
$a_modul = array();
|
||||
$is_modul = (isset($_SESSION['__WEB_APP']['APP_MODULE']) && $_SESSION['__WEB_APP']['APP_MODULE'] <> "") ? true : false;
|
||||
if ($is_modul == true) {
|
||||
@@ -61,11 +60,11 @@ final class Menu {
|
||||
}
|
||||
if (($amodul[$i]['Level']>=0) && (isset($amodul[$i+1]) && ($amodul[$i+1]['Level']>$amodul[$i]['Level']))) {
|
||||
$ticon = ($amodul[$i]['Icon']) ? $amodul[$i]['Icon'] : "cui-puzzle";
|
||||
$thasil .= '<li class="c-nav-item c-nav-dropdown '.($i==0?'c-open':'').'"><a class="c-nav-link c-nav-dropdown-toggle" title="'.$amodul[$i]['Judul'].'"><i class="c-nav-icon '.$ticon.'"></i> '.$amodul[$i]['Menu'].'</a><ul class="c-nav-dropdown-items">';
|
||||
$thasil .= '<li class="nav-group '.($i==0?'show':'').'"><a class="nav-link nav-group-toggle" title="'.$amodul[$i]['Judul'].'"><i class="nav-icon '.$ticon.'"></i> '.$amodul[$i]['Menu'].'</a><ul class="nav-group-items">';
|
||||
} else if (trim($amodul[$i]['Menu'])=="-") {
|
||||
$thasil .= '<li class="c-nav-divider"></li>';
|
||||
$thasil .= '<li class="nav-divider"></li>';
|
||||
} else {
|
||||
$thasil .= '<li class="c-nav-item"><a class="c-nav-link mlink" id="'.$amodul[$i]['Kode'].'Link" title="'.$amodul[$i]['Judul'].'"><span class="c-nav-icon"></span> '.$amodul[$i]['Menu'].'</a></li>';
|
||||
$thasil .= '<li class="nav-item"><a class="nav-link mlink" id="'.$amodul[$i]['Kode'].'Link" title="'.$amodul[$i]['Judul'].'"><span class="nav-icon"></span> '.$amodul[$i]['Menu'].'</a></li>';
|
||||
}
|
||||
$last_level = $amodul[$i]['Level'];
|
||||
}
|
||||
@@ -73,7 +72,7 @@ final class Menu {
|
||||
return $thasil;
|
||||
}
|
||||
|
||||
public function Menu_Header() {
|
||||
public function Menu_Header() {//oke
|
||||
$a_modul = array();
|
||||
$is_modul = (isset($_SESSION['__WEB_APP']['APP_MODULE']) && $_SESSION['__WEB_APP']['APP_MODULE'] <> "") ? true : false;
|
||||
$mulai_level = 0;
|
||||
@@ -102,18 +101,18 @@ final class Menu {
|
||||
}
|
||||
if (isset($amodul[$i+1]) && ($amodul[$i+1]['Level']>$amodul[$i]['Level'])) {
|
||||
if ($amodul[$i]['Level']==$mulai_level) {
|
||||
$ticon = ($amodul[$i]['Icon']) ? " mr-1 ".$amodul[$i]['Icon'] : "";
|
||||
$thasil .= '<li class="c-header-nav-item px-3"><a class="c-header-nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="'.$amodul[$i]['Judul'].'"><i class="c-nav-icon'.$ticon.'"></i> '.$amodul[$i]['Menu'].'<b class="caret"></b></a><ul class="dropdown-menu multi-level">';
|
||||
} else if ($amodul[$i]['Level']==($mulai_level+1)) {
|
||||
$thasil .= '<li class="dropdown-submenu"><a class="dropdown-item dropdown-toggle slink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="'.$amodul[$i]['Judul'].'"><i class="c-nav-icon"></i> '.$amodul[$i]['Menu'].'</a><ul class="dropdown-menu">';
|
||||
$ticon = ($amodul[$i]['Icon']) ? " me-1 ".$amodul[$i]['Icon'] : "";
|
||||
$thasil .= '<li class="nav-item pe-3"><a class="nav-link dropdown-toggle" data-coreui-toggle="dropdown" aria-expanded="false" title="'.$amodul[$i]['Judul'].'"><i class="nav-icon'.$ticon.'"></i> '.$amodul[$i]['Menu'].'</a><ul class="dropdown-menu multi-level">';
|
||||
} else {
|
||||
$thasil .= '<li class="nav-item dropdown-submenu"><a class="nav-link dropdown-toggle slink" data-coreui-toggle="dropdown" aria-expanded="false" title="'.$amodul[$i]['Judul'].'"><i class="nav-icon"></i> '.$amodul[$i]['Menu'].'</i></a><ul class="dropdown-menu">';
|
||||
}
|
||||
} else if (trim($amodul[$i]['Menu'])=="-" && $amodul[$i]['Level']>$mulai_level) {
|
||||
$thasil .= '<li class="dropdown-divider"></li>';
|
||||
} else if ($amodul[$i]['Level']==$mulai_level) {
|
||||
$ticon = ($amodul[$i]['Icon']) ? " mr-1 ".$amodul[$i]['Icon'] : "";
|
||||
$thasil .= '<li class="c-header-nav-item px-3"><a class="c-header-nav-link mlink" id="'.$amodul[$i]['Kode'].'Link" title="'.$amodul[$i]['Judul'].'"><span class="c-nav-icon'.$ticon.'"></span> '.$amodul[$i]['Menu'].'</a></li>';
|
||||
$thasil .= '<li class="nav-item pe-3"><a class="nav-link mlink" id="'.$amodul[$i]['Kode'].'Link" title="'.$amodul[$i]['Judul'].'"><span class="nav-icon'.$ticon.'"></span> '.$amodul[$i]['Menu'].'</a></li>';
|
||||
} else {
|
||||
$thasil .= '<li><a class="dropdown-item mlink" data-toggle="collapse" data-target=".dropdown-menu.show" id="'.$amodul[$i]['Kode'].'Link" title="'.$amodul[$i]['Judul'].'">'.$amodul[$i]['Menu'].'</a></li>';
|
||||
$thasil .= '<li class="nav-item"><a class="nav-link dropdown-item mlink" id="'.$amodul[$i]['Kode'].'Link" title="'.$amodul[$i]['Judul'].'">'.$amodul[$i]['Menu'].'</a></li>';
|
||||
}
|
||||
$last_level = $amodul[$i]['Level'];
|
||||
}
|
||||
@@ -122,15 +121,14 @@ final class Menu {
|
||||
}
|
||||
|
||||
static function MenuJSON($db = null, $page = "", $tquery = "") {
|
||||
if (is_resource($db)) { $_mdb = $db; }
|
||||
else $_mdb = new \siaupheng\fonia3\DB\MySQL();
|
||||
$_mdb = $db ?? new \siaupheng\fonia4\DB\MySQL();
|
||||
$_query = ($tquery=="") ? "" : ",'".$tquery."'";
|
||||
$ajson = array('login' => true);
|
||||
$apage = array('Link' => "");
|
||||
|
||||
$acus_page = array(
|
||||
'SYSP' => array('Kode'=>"SYSP", 'Judul'=>"Profil Pengguna", 'Link'=>"sys/profile.php", 'JS'=>"SYSProfileJS", 'Width'=>600, 'Button'=>"_,C,S"),
|
||||
'SYSC' => array('Kode'=>"SYSC", 'Judul'=>"Ubah Password", 'Link'=>"sys/chpasswd.php", 'JS'=>"SYSChpasswdJS", 'Width'=>400, 'Button'=>"_,C,S")
|
||||
'SYSP' => array('Kode'=>"SYSP", 'Judul'=>"Profil Pengguna", 'Link'=>"sys/profile.php", 'JS'=>"SYSProfileJS", 'Width'=>600, 'Button'=>'[{},{"i":"butBatal"},{"i":"butSave","v":"Simpan","c":"success"}]'),
|
||||
'SYSC' => array('Kode'=>"SYSC", 'Judul'=>"Ubah Password", 'Link'=>"sys/chpasswd.php", 'JS'=>"SYSChpasswdJS", 'Width'=>500, 'Button'=>'[{},{"i":"butBatal"},{"i":"butSave","v":"Simpan","c":"success"}]')
|
||||
);
|
||||
|
||||
if ($acus_page[$page]) {
|
||||
@@ -143,26 +141,11 @@ final class Menu {
|
||||
$ajson['iswindow'] = ($apage['Width'] > 0) ? true : false;
|
||||
$ajson['width'] = $apage['Width'];
|
||||
$ajson['title'] = $apage['Judul'];
|
||||
$ajson['button'] = $apage['Button'];
|
||||
$ajson['button'] = is_json($apage['Button']) ? json_decode($apage['Button']) : $apage['Button'];
|
||||
$ajson['php'] = $apage['Link'];
|
||||
$ajson['func'] = $apage['JS'];
|
||||
$ajson['kode'] = $apage['Kode'];
|
||||
|
||||
if ($ajson['iswindow'] == false) {
|
||||
$tsql = (isset($_SESSION['__WEB_APP']['APP_MODULE']) && $_SESSION['__WEB_APP']['APP_MODULE'] <> "") ? " AND Modul='".$_SESSION['__WEB_APP']['APP_MODULE']."' AND Level>0" : "";
|
||||
$a_bread = array(); $i_level = null;
|
||||
$_mdb->Query("SELECT Kode,Level,Menu FROM app_menu WHERE Kode<='".$page."'".$tsql." ORDER BY Kode DESC");
|
||||
while ($_mdb->Next()) {
|
||||
if ($page == $_mdb->Row("Kode") || $i_level > $_mdb->Row("Level")) {
|
||||
$a_bread[] = $_mdb->Row("Menu");
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
$i_level = $_mdb->Row("Level");
|
||||
}
|
||||
$a_bread[] = "Beranda";
|
||||
$ajson['bread'] = $a_bread;
|
||||
}
|
||||
if (!file_exists($_SESSION['__WEB_APP']['REAL_PATH']."apps/php/".$apage['Link'])) $ajson['php'] = "";
|
||||
return $ajson;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/POSPrint.php
|
||||
Desc. : v3 - Class cetak POS
|
||||
Desc. : v4 - Class cetak POS
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : June 15th, 2008.
|
||||
Last Modified : May 6th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
/* VERSI BARU DENGAN MULTI SHEET */
|
||||
class POSPrint {//up: 20180108
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Param.php
|
||||
Desc. : Class akses data parameter dari client side
|
||||
Desc. : v4 - Class data parameter dari client side
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : November 14th, 2013.
|
||||
Last Modified : May 8th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class Param {
|
||||
private static $__ahasil = array();
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/RAWPrint.php
|
||||
Desc. : v3 - Class cetak RAW
|
||||
Desc. : v4 - Class cetak RAW
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : June 15th, 2008.
|
||||
Last Modified : May 6th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
class RAWPrint {
|
||||
private $_header = array();
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Register.php
|
||||
Desc. : v3 - Class Registrasi Aplikasi
|
||||
Desc. : v4 - Class Registrasi Aplikasi
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : November 23th, 2011.
|
||||
Last Modified : May 6th, 2021.
|
||||
@@ -14,14 +14,14 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class Register {
|
||||
protected $__db = null;
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__db = $db; }
|
||||
else $this->__db = new \siaupheng\fonia3\DB\MySQL();
|
||||
else { $this->__db = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
}
|
||||
|
||||
static public function reg_id() {
|
||||
|
||||
+25
-17
@@ -3,18 +3,18 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Table.php
|
||||
Desc. : v3 - HTML Table v3 (jQuery & CoreUI)
|
||||
Desc. : v4 - HTML Table (jQuery & CoreUI)
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : January 16th, 2008.
|
||||
Last Modified : May 8th, 2021.
|
||||
Last Modified : May 3rd, 2022.
|
||||
|
||||
(c) 2008 - 2021, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2008 - 2022, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class Table {
|
||||
private $__tquery = "";
|
||||
@@ -24,6 +24,7 @@ final class Table {
|
||||
private $__astyle = array();
|
||||
private $__aformat = array();
|
||||
private $__afooter = array();
|
||||
private $__aotype = array();
|
||||
private $__arowcol = array();
|
||||
private $__arow_func = array();
|
||||
private $__tfunc_select = "";
|
||||
@@ -34,7 +35,7 @@ final class Table {
|
||||
private $__acontrol = array('field'=>false, 'value'=>"");
|
||||
private $__acbox = array();
|
||||
private $__aoption = array();
|
||||
private $__npage_rec = 10; //baris per halaman
|
||||
private $__npage_rec = 10;
|
||||
private $__nreclimit = 0;
|
||||
private $__nscrollheight = 0;
|
||||
private $__ord_field = "";
|
||||
@@ -44,7 +45,7 @@ final class Table {
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__cdb = $db; }
|
||||
else $this->__cdb = new \siaupheng\fonia3\DB\MySQL();
|
||||
else { $this->__cdb = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
}
|
||||
|
||||
public function set_query($tquery = "") {
|
||||
@@ -99,8 +100,12 @@ final class Table {
|
||||
$this->__acontrol['value'] = $tvalue;
|
||||
}
|
||||
|
||||
public function add_row_btn($ticon = "", $tlabel = "", $tfunc = "", $tfield = "", $tvalue = "") {
|
||||
$this->__aoption[] = array('type' => "button", 'func' => $tfunc, 'icon' => $ticon, 'label' => $tlabel, 'field' => $tfield, 'value' => $tvalue);
|
||||
public function add_row_form($tlabel = "", $tfunc = "", $tfield = "", $tvalue = "") {
|
||||
$this->__aoption[] = array('type' => "button", 'func' => $tfunc, 'icon' => "fon-tabel-dt", 'label' => $tlabel, 'field' => $tfield, 'value' => $tvalue);
|
||||
}
|
||||
|
||||
public function add_row_btn($ticon = "", $tlabel = "", $tfunc = "", $tfield = "", $tvalue = "", $tfield_css = "", $avalue_css = array()) {
|
||||
$this->__aoption[] = array('type' => "button", 'func' => $tfunc, 'icon' => $ticon, 'label' => $tlabel, 'field' => $tfield, 'value' => $tvalue, 'field_css' => $tfield_css, 'avalue_css' => $avalue_css);
|
||||
}
|
||||
|
||||
public function add_row_del($tlabel = "", $tfunc = "", $tfield = "Unix", $tvalue = "") {
|
||||
@@ -122,21 +127,21 @@ final class Table {
|
||||
$this->__bnobutton = true;
|
||||
}
|
||||
|
||||
public function add_field($tfield = "", $theader = "", $tstyle = "left", $tformat = "", $tfooter = "") {
|
||||
public function add_field($tfield = "", $theader = "", $tstyle = "left", $tformat = "", $tfooter = "", $totype = "") {
|
||||
$this->__aheader[] = $theader;
|
||||
$this->__afield[] = $tfield;
|
||||
$this->__astyle[] = $tstyle;
|
||||
$this->__aformat[] = $tformat;
|
||||
$this->__afooter[] = $tfooter;
|
||||
$this->__aotype[] = $totype;
|
||||
}
|
||||
|
||||
public function json_table($nama_tabel = "tabel_", $baris_tabel = 10) {
|
||||
$adata = array();
|
||||
$dbpage = intval(\siaupheng\fonia3\Web\Param::Get($nama_tabel.'_pg', 0));
|
||||
|
||||
// adding header
|
||||
for ($i=0; $i<count($this->__afield); $i++) {
|
||||
$adata['header'][] = array('f'=>$this->__astyle[$i], 'o'=>$this->__afield[$i], 'c'=>$this->__aheader[$i]);//add width later
|
||||
$adata['header'][] = array('f'=>$this->__astyle[$i], 'o'=>$this->__afield[$i], 'c'=>$this->__aheader[$i], 's'=>$this->__aotype[$i]);
|
||||
$njml_kol += ($this->__astyle[$i]=="hidden") ? 0 : 1;
|
||||
}
|
||||
|
||||
@@ -168,7 +173,7 @@ final class Table {
|
||||
for ($i=0; $i<count($this->__aoption); $i++) {
|
||||
if ($this->__aoption[$i]['type']=="button") {
|
||||
if (($this->__aoption[$i]['field']!="") && ($this->__cdb->Row($this->__aoption[$i]['field'])<>(trim("".$this->__aoption[$i]['value'])!="" ? $this->__aoption[$i]['value'] : $_SESSION['__WEB_USER']['UNIX']))) {} else {
|
||||
$aoption['button'][] = $this->__aoption[$i]['icon'];
|
||||
$aoption['button'][] = array($this->__aoption[$i]['icon'], (empty($this->__aoption[$i]['field_css'])?'':$this->__aoption[$i]['avalue_css'][$this->__cdb->Row($this->__aoption[$i]['field_css'])]??''));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -202,16 +207,19 @@ final class Table {
|
||||
|
||||
$adata['type'] = "table";
|
||||
$adata['id'] = $nama_tabel;
|
||||
$adata['config'] = array('css' => $this->__tcss, 'page' => $dbpage, 'row_count' => $baris_tabel, 'func_select' => $this->__tfunc_select, 'nobutton' => $this->__bnobutton, 'txtbutton' => $this->__btxtbutton, 'scrollbar' => $this->__bscrollbar, 'scroll_height' => $this->__nscrollheight, 'sort_col' => $this->__ord_field, 'sort_dir' => $this->__ord_dir);
|
||||
$adata['option'] = $this->__aoption;
|
||||
$adata['config'] = array('css' => $this->__tcss, 'row_count' => $baris_tabel, 'func_select' => $this->__tfunc_select, 'nobutton' => $this->__bnobutton, 'txtbutton' => $this->__btxtbutton, 'scrollbar' => $this->__bscrollbar, 'scroll_height' => $this->__nscrollheight, 'sort_col' => $this->__ord_field, 'sort_dir' => $this->__ord_dir);
|
||||
$adata['option'] = array();
|
||||
foreach ($this->__aoption as $aval) {
|
||||
if ($aval['type']!=="checkbox") unset($aval['field']); unset($aval['value']); unset($aval['field_css']); unset($aval['value_css']); $adata['option'][] = $aval;
|
||||
}
|
||||
$adata['navi'] = $anavi;
|
||||
$adata['content'] = $acontent;
|
||||
return $adata;
|
||||
}
|
||||
|
||||
public function json_table_db($nama_tabel = "tabel_", $baris_tabel = 10) {//new
|
||||
/*public function json_table_db($nama_tabel = "tabel_", $baris_tabel = 10) {//new
|
||||
$adata = array();
|
||||
$dbpage = \siaupheng\fonia3\Web\Param::Get($nama_tabel.'_pg', 0);
|
||||
$dbpage = \siaupheng\fonia4\Web\Param::Get($nama_tabel.'_pg', 0);
|
||||
|
||||
// adding header
|
||||
for ($i=0; $i<count($this->__afield); $i++) {
|
||||
@@ -286,7 +294,7 @@ final class Table {
|
||||
$adata['navi'] = $anavi;
|
||||
$adata['content'] = $acontent;
|
||||
return $adata;
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Terbilang.php
|
||||
Desc. : Class Format Angka & Terbilang
|
||||
Desc. : v4 - Class Format Angka & Terbilang
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : February 12th, 2009.
|
||||
Last Modified : May 6th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class Terbilang {
|
||||
private $numb = array("","Satu","Dua","Tiga","Empat","Lima","Enam","Tujuh","Delapan","Sembilan");
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
/*******************************************************************
|
||||
|
||||
Module : /Web/Update.php
|
||||
Desc. : Class Update Aplikasi Otomatis
|
||||
Desc. : v4 - Class Update Aplikasi Otomatis
|
||||
Created By : Siau Pheng (siaupheng@3fonia.com).
|
||||
Created Date : June 14th, 2013.
|
||||
Last Modified : May 6th, 2021.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace siaupheng\fonia3\Web;
|
||||
namespace siaupheng\fonia4\Web;
|
||||
|
||||
final class Update {
|
||||
private $__amysql = array();
|
||||
@@ -22,7 +22,7 @@ final class Update {
|
||||
|
||||
public function __construct($db = null){
|
||||
if (is_resource($db)) { $this->__linkdb = $db; }
|
||||
else $this->__linkdb = new \siaupheng\fonia3\DB\MySQL();
|
||||
else { $this->__linkdb = new \siaupheng\fonia4\DB\MySQL(); }
|
||||
|
||||
$this->__amysql = $this->__linkdb->getConfig();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user